; ; cocos2d::CCFileUtilsWin32::addSearchPath from 0x18007a220 to 0x18007a2b3 (147 bytes) ; ; 3 xrefs: ; > @ 0x1801010d0 ; > @ 0x1801438a8 ; > @ 0x1801b4c8c ; ; 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 ; push rbx ; +0x0, 0x18007a220 sub rsp, 50h ; +0x2, 0x18007a222 mov rax, cs:__security_cookie ; +0x6, 0x18007a226 xor rax, rsp ; +0xd, 0x18007a22d mov [rsp+58h+var_18], rax ; +0x10, 0x18007a230 mov rbx, rcx ; +0x15, 0x18007a235 mov r8, rdx ; +0x18, 0x18007a238 lea rdx, [rsp+58h+Block] ; +0x1b, 0x18007a23b call ?utf8Togbk@CCFileUtilsWin32@cocos2d@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z; cocos2d::CCFileUtilsWin32::utf8Togbk(char const *) ; +0x20, 0x18007a240 nop ; +0x25, 0x18007a245 lea rdx, [rsp+58h+Block] ; +0x26, 0x18007a246 cmp [rsp+58h+var_20], 0Fh ; +0x2b, 0x18007a24b cmova rdx, [rsp+58h+Block]; char * ; +0x31, 0x18007a251 mov rcx, rbx; this ; +0x37, 0x18007a257 call ?addSearchPath@CCFileUtils@cocos2d@@UEAAXPEBD@Z; cocos2d::CCFileUtils::addSearchPath(char const *) ; +0x3a, 0x18007a25a nop ; +0x3f, 0x18007a25f mov rdx, [rsp+58h+var_20] ; +0x40, 0x18007a260 cmp rdx, 0Fh ; +0x45, 0x18007a265 jbe short loc_18007A2A0 ; +0x49, 0x18007a269 inc rdx ; +0x4b, 0x18007a26b mov rcx, [rsp+58h+Block]; Block ; +0x4e, 0x18007a26e mov rax, rcx ; +0x53, 0x18007a273 cmp rdx, 1000h ; +0x56, 0x18007a276 jb short loc_18007A29B ; +0x5d, 0x18007a27d add rdx, 27h ; ''' ; +0x5f, 0x18007a27f mov rcx, [rcx-8] ; +0x63, 0x18007a283 sub rax, rcx ; +0x67, 0x18007a287 add rax, 0FFFFFFFFFFFFFFF8h ; +0x6a, 0x18007a28a cmp rax, 1Fh ; +0x6e, 0x18007a28e jbe short loc_18007A29B ; +0x72, 0x18007a292 call cs:_invalid_parameter_noinfo_noreturn ; +0x74, 0x18007a294 db 0CCh ; +0x7a, 0x18007a29a call j_j_free_0 ; +0x7b, 0x18007a29b mov rcx, [rsp+58h+var_18] ; +0x80, 0x18007a2a0 xor rcx, rsp; StackCookie ; +0x85, 0x18007a2a5 call __security_check_cookie ; +0x88, 0x18007a2a8 add rsp, 50h ; +0x8d, 0x18007a2ad pop rbx ; +0x91, 0x18007a2b1 retn ; +0x92, 0x18007a2b2