; ; cocos2d::CCImage::_initWithRawData from 0x18007b920 to 0x18007b9b7 (151 bytes) ; ; 6 xrefs: ; > cocos2d::CCImage::initWithImageData @ 0x18007ca55 ; > @ 0x18013c050 ; > @ 0x18013c064 ; > @ 0x18013c074 ; > @ 0x1801438a8 ; > @ 0x1801b4d4c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x18007b920 push rsi ; +0x5, 0x18007b925 sub rsp, 20h ; +0x6, 0x18007b926 mov rsi, rdx ; +0xa, 0x18007b92a mov rbx, rcx ; +0xd, 0x18007b92d test r9d, r9d ; +0x10, 0x18007b930 jz short loc_18007B9AA ; +0x13, 0x18007b933 mov ecx, [rsp+28h+arg_20] ; +0x15, 0x18007b935 test ecx, ecx ; +0x19, 0x18007b939 jz short loc_18007B9AA ; +0x1b, 0x18007b93b mov eax, [rsp+28h+arg_28] ; +0x1d, 0x18007b93d mov [rbx+38h], r9w ; +0x21, 0x18007b941 imul r9d, ecx ; +0x26, 0x18007b946 mov [rbx+3Ch], eax ; +0x2a, 0x18007b94a movzx eax, [rsp+28h+arg_30] ; +0x2d, 0x18007b94d mov [rbx+3Ah], cx ; +0x32, 0x18007b952 mov [rsp+28h+arg_0], rdi ; +0x36, 0x18007b956 shl r9d, 2 ; +0x3b, 0x18007b95b movsxd rdi, r9d ; +0x3f, 0x18007b95f mov rcx, rdi; Size ; +0x42, 0x18007b962 mov byte ptr [rbx+48h], 1 ; +0x45, 0x18007b965 mov [rbx+49h], al ; +0x49, 0x18007b969 call j_??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x4c, 0x18007b96c mov [rbx+40h], rax ; +0x51, 0x18007b971 test rax, rax ; +0x55, 0x18007b975 jz short loc_18007B99A ; +0x58, 0x18007b978 mov r8, rdi; Size ; +0x5a, 0x18007b97a mov rdx, rsi; Src ; +0x5d, 0x18007b97d mov rcx, rax; void * ; +0x60, 0x18007b980 call memcpy ; +0x63, 0x18007b983 mov rdi, [rsp+28h+arg_0] ; +0x68, 0x18007b988 mov al, 1 ; +0x6d, 0x18007b98d mov rbx, [rsp+28h+arg_8] ; +0x6f, 0x18007b98f add rsp, 20h ; +0x74, 0x18007b994 pop rsi ; +0x78, 0x18007b998 retn ; +0x79, 0x18007b999 mov rdi, [rsp+28h+arg_0] ; +0x7a, 0x18007b99a mov rbx, [rsp+28h+arg_8] ; +0x7f, 0x18007b99f add rsp, 20h ; +0x84, 0x18007b9a4 pop rsi ; +0x88, 0x18007b9a8 retn ; +0x89, 0x18007b9a9 mov rbx, [rsp+28h+arg_8] ; +0x8a, 0x18007b9aa xor al, al ; +0x8f, 0x18007b9af add rsp, 20h ; +0x91, 0x18007b9b1 pop rsi ; +0x95, 0x18007b9b5 retn ; +0x96, 0x18007b9b6