; ; sub_180018420 from 0x180018420 to 0x1800184a1 (129 bytes) ; ; 4 xrefs: ; > cocos2d::extension::CCHttpClient::~CCHttpClient @ 0x180017764 ; > int `std::locale::_Locimp::_Makeloc @ 0x180020da5 ; > @ 0x18002f106 ; > @ 0x18004aad0 ; ; 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, 0x180018420 sub rsp, 20h ; +0x2, 0x180018422 mov rbx, rcx ; +0x6, 0x180018426 mov rcx, [rcx] ; +0x9, 0x180018429 test rcx, rcx ; +0xc, 0x18001842c jz short loc_18001848D ; +0xf, 0x18001842f mov rdx, [rbx+8] ; +0x11, 0x180018431 mov rax, rcx ; +0x15, 0x180018435 cmp rcx, rdx ; +0x18, 0x180018438 jz short loc_18001844F ; +0x1b, 0x18001843b nop dword ptr [rax] ; +0x1d, 0x18001843d cmp dword ptr [rax+8], 0 ; +0x20, 0x180018440 jnz short loc_180018493 ; +0x24, 0x180018444 add rax, 10h ; +0x26, 0x180018446 cmp rax, rdx ; +0x2a, 0x18001844a jnz short loc_180018440 ; +0x2d, 0x18001844d mov rdx, [rbx+10h] ; +0x2f, 0x18001844f sub rdx, rcx ; +0x33, 0x180018453 and rdx, 0FFFFFFFFFFFFFFF0h ; +0x36, 0x180018456 cmp rdx, 1000h ; +0x3a, 0x18001845a jb short loc_18001847B ; +0x41, 0x180018461 mov r8, [rcx-8] ; +0x43, 0x180018463 add rdx, 27h ; ''' ; +0x47, 0x180018467 sub rcx, r8 ; +0x4b, 0x18001846b lea rax, [rcx-8] ; +0x4e, 0x18001846e cmp rax, 1Fh ; +0x52, 0x180018472 ja short loc_18001849A ; +0x56, 0x180018476 mov rcx, r8; Block ; +0x58, 0x180018478 call j_j_free ; +0x5b, 0x18001847b xor eax, eax ; +0x60, 0x180018480 mov [rbx], rax ; +0x62, 0x180018482 mov [rbx+8], rax ; +0x65, 0x180018485 mov [rbx+10h], rax ; +0x69, 0x180018489 add rsp, 20h ; +0x6d, 0x18001848d pop rbx ; +0x71, 0x180018491 retn ; +0x72, 0x180018492 call cs:__imp_terminate ; +0x73, 0x180018493 align 2 ; +0x79, 0x180018499 call cs:_invalid_parameter_noinfo_noreturn ; +0x7a, 0x18001849a db 0CCh ; +0x80, 0x1800184a0