; ; cocos2d::extension::AssetsManager::update from 0x180001af0 to 0x180001c07 (279 bytes) ; ; 5 xrefs: ; > @ 0x1800259e8 ; > @ 0x18002f588 ; > @ 0x18002f5bc ; > @ 0x180032408 ; > @ 0x18004b0a8 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:15:34 +0000 ; push rdi ; +0x0, 0x180001af0 sub rsp, 50h ; +0x2, 0x180001af2 mov rax, cs:__security_cookie ; +0x6, 0x180001af6 xor rax, rsp ; +0xd, 0x180001afd mov [rsp+58h+var_18], rax ; +0x10, 0x180001b00 cmp qword ptr [rcx+0B8h], 0 ; +0x15, 0x180001b05 mov rdi, rcx ; +0x1d, 0x180001b0d jnz loc_180001BF4 ; +0x20, 0x180001b10 cmp qword ptr [rcx+78h], 0 ; +0x26, 0x180001b16 jz loc_180001BF4 ; +0x2b, 0x180001b1b cmp qword ptr [rcx+58h], 0 ; +0x31, 0x180001b21 jz loc_180001BF4 ; +0x36, 0x180001b26 cmp qword ptr [rcx+60h], 0Fh ; +0x3c, 0x180001b2c mov [rsp+58h+arg_10], rsi ; +0x41, 0x180001b31 lea rsi, [rcx+48h] ; +0x46, 0x180001b36 jbe short loc_180001B40 ; +0x4a, 0x180001b3a mov rsi, [rcx+48h] ; +0x4c, 0x180001b3c mov rcx, [rcx+58h] ; +0x50, 0x180001b40 cmp rcx, 4 ; +0x54, 0x180001b44 jb loc_180001BEF ; +0x58, 0x180001b48 mov [rsp+58h+arg_8], rbx ; +0x5e, 0x180001b4e lea r8, aZip; ".zip" ; +0x63, 0x180001b53 lea rbx, [rcx+rsi] ; +0x6a, 0x180001b5a mov r9d, 4 ; +0x6e, 0x180001b5e mov rdx, rbx ; +0x74, 0x180001b64 mov rcx, rsi ; +0x77, 0x180001b67 call sub_18001F000 ; +0x7a, 0x180001b6a cmp rax, rbx ; +0x7f, 0x180001b6f mov rbx, [rsp+58h+arg_8] ; +0x82, 0x180001b72 jz short loc_180001BEF ; +0x87, 0x180001b77 sub rax, rsi ; +0x89, 0x180001b79 cmp rax, 0FFFFFFFFFFFFFFFFh ; +0x8c, 0x180001b7c jz short loc_180001BEF ; +0x90, 0x180001b80 mov rax, [rdi] ; +0x92, 0x180001b82 mov rcx, rdi ; +0x95, 0x180001b85 call qword ptr [rax+8] ; +0x98, 0x180001b88 test al, al ; +0x9b, 0x180001b8b jz short loc_180001BEF ; +0x9d, 0x180001b8d call cs:?sharedUserDefault@CCUserDefault@cocos2d@@SAPEAV12@XZ; cocos2d::CCUserDefault::sharedUserDefault(void) ; +0x9f, 0x180001b8f mov rcx, rax ; +0xa5, 0x180001b95 lea r8, aDownloadedVers; "downloaded-version-code" ; +0xa8, 0x180001b98 lea rdx, [rsp+58h+var_38] ; +0xaf, 0x180001b9f call cs:?getStringForKey@CCUserDefault@cocos2d@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z; cocos2d::CCUserDefault::getStringForKey(char const *) ; +0xb4, 0x180001ba4 mov rdx, rax ; +0xba, 0x180001baa lea rcx, [rdi+88h] ; +0xbd, 0x180001bad call sub_180003300 ; +0xc4, 0x180001bb4 lea rcx, [rsp+58h+var_38] ; +0xc9, 0x180001bb9 call sub_180003700 ; +0xce, 0x180001bbe mov ecx, 10h; Size ; +0xd3, 0x180001bc3 call sub_18001F040 ; +0xd8, 0x180001bc8 xorps xmm0, xmm0 ; +0xdd, 0x180001bcd lea r8, sub_1800019C0 ; +0xe0, 0x180001bd0 mov r9, rdi ; +0xe7, 0x180001bd7 xor edx, edx ; +0xea, 0x180001bda mov rcx, rax ; +0xec, 0x180001bdc movups xmmword ptr [rax], xmm0 ; +0xef, 0x180001bdf mov [rdi+0B8h], rax ; +0xf2, 0x180001be2 call cs:pthread_create ; +0xf9, 0x180001be9 mov rsi, [rsp+58h+arg_10] ; +0xff, 0x180001bef mov rcx, [rsp+58h+var_18] ; +0x104, 0x180001bf4 xor rcx, rsp; StackCookie ; +0x109, 0x180001bf9 call __security_check_cookie ; +0x10c, 0x180001bfc add rsp, 50h ; +0x111, 0x180001c01 pop rdi ; +0x115, 0x180001c05 retn ; +0x116, 0x180001c06