; ; cocos2d::CCFileUtilsWin32::removeSearchPath from 0x18007afc0 to 0x18007b053 (147 bytes) ; ; 4 xrefs: ; > @ 0x1801010d8 ; > @ 0x1801438a8 ; > @ 0x1801b4ce0 ; > @ 0x1801b4cec ; ; 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, 0x18007afc0 sub rsp, 50h ; +0x2, 0x18007afc2 mov rax, cs:__security_cookie ; +0x6, 0x18007afc6 xor rax, rsp ; +0xd, 0x18007afcd mov [rsp+58h+var_18], rax ; +0x10, 0x18007afd0 mov rbx, rcx ; +0x15, 0x18007afd5 mov r8, rdx ; +0x18, 0x18007afd8 lea rdx, [rsp+58h+Block] ; +0x1b, 0x18007afdb 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, 0x18007afe0 nop ; +0x25, 0x18007afe5 lea rdx, [rsp+58h+Block] ; +0x26, 0x18007afe6 cmp [rsp+58h+var_20], 0Fh ; +0x2b, 0x18007afeb cmova rdx, [rsp+58h+Block]; char * ; +0x31, 0x18007aff1 mov rcx, rbx; this ; +0x37, 0x18007aff7 call ?removeSearchPath@CCFileUtils@cocos2d@@UEAAXPEBD@Z; cocos2d::CCFileUtils::removeSearchPath(char const *) ; +0x3a, 0x18007affa nop ; +0x3f, 0x18007afff mov rdx, [rsp+58h+var_20] ; +0x40, 0x18007b000 cmp rdx, 0Fh ; +0x45, 0x18007b005 jbe short loc_18007B040 ; +0x49, 0x18007b009 inc rdx ; +0x4b, 0x18007b00b mov rcx, [rsp+58h+Block]; Block ; +0x4e, 0x18007b00e mov rax, rcx ; +0x53, 0x18007b013 cmp rdx, 1000h ; +0x56, 0x18007b016 jb short loc_18007B03B ; +0x5d, 0x18007b01d add rdx, 27h ; ''' ; +0x5f, 0x18007b01f mov rcx, [rcx-8] ; +0x63, 0x18007b023 sub rax, rcx ; +0x67, 0x18007b027 add rax, 0FFFFFFFFFFFFFFF8h ; +0x6a, 0x18007b02a cmp rax, 1Fh ; +0x6e, 0x18007b02e jbe short loc_18007B03B ; +0x72, 0x18007b032 call cs:_invalid_parameter_noinfo_noreturn ; +0x74, 0x18007b034 db 0CCh ; +0x7a, 0x18007b03a call j_j_free_0 ; +0x7b, 0x18007b03b mov rcx, [rsp+58h+var_18] ; +0x80, 0x18007b040 xor rcx, rsp; StackCookie ; +0x85, 0x18007b045 call __security_check_cookie ; +0x88, 0x18007b048 add rsp, 50h ; +0x8d, 0x18007b04d pop rbx ; +0x91, 0x18007b051 retn ; +0x92, 0x18007b052