; ; DS_Dictionary::loadRootSubDictFromFile from 0x18001bc70 to 0x18001bf22 (690 bytes) ; ; 3 xrefs: ; > CCContentManager::addDictDS @ 0x180005fd9 ; > @ 0x18014cf68 ; > @ 0x1801b8ae8 ; ; 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 11:21:26 +0000 ; mov [rsp-8+arg_10], rbx ; +0x0, 0x18001bc70 mov [rsp-8+arg_18], rsi ; +0x5, 0x18001bc75 push rbp ; +0xa, 0x18001bc7a push rdi ; +0xb, 0x18001bc7b push r14 ; +0xc, 0x18001bc7c lea rbp, [rsp-47h] ; +0xe, 0x18001bc7e sub rsp, 0C0h ; +0x13, 0x18001bc83 mov rax, cs:__security_cookie ; +0x1a, 0x18001bc8a xor rax, rsp ; +0x21, 0x18001bc91 mov [rbp+57h+var_18], rax ; +0x24, 0x18001bc94 mov rsi, rdx ; +0x28, 0x18001bc98 mov rdi, rcx ; +0x2b, 0x18001bc9b mov rax, [rcx+0D0h] ; +0x2e, 0x18001bc9e cmp rax, [rcx+0D8h] ; +0x35, 0x18001bca5 jz short loc_18001BCB5 ; +0x3c, 0x18001bcac mov [rcx+0D8h], rax ; +0x3e, 0x18001bcae lea rcx, [rbp+57h+var_98]; this ; +0x45, 0x18001bcb5 call ??0CCThread@cocos2d@@QEAA@XZ; cocos2d::CCThread::CCThread(void) ; +0x49, 0x18001bcb9 mov rdx, rax ; +0x4e, 0x18001bcbe lea rcx, [rdi+0D0h] ; +0x51, 0x18001bcc1 call sub_18001C710 ; +0x58, 0x18001bcc8 call ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x5d, 0x18001bccd mov rcx, [rax] ; +0x62, 0x18001bcd2 mov r10, [rcx+28h] ; +0x65, 0x18001bcd5 xor r9d, r9d ; +0x69, 0x18001bcd9 mov r8, rsi ; +0x6c, 0x18001bcdc lea rdx, [rbp+57h+var_38] ; +0x6f, 0x18001bcdf mov rcx, rax ; +0x73, 0x18001bce3 call r10 ; +0x76, 0x18001bce6 nop ; +0x79, 0x18001bce9 xor r14d, r14d ; +0x7a, 0x18001bcea mov [rbp+57h+var_A0], r14d ; +0x7d, 0x18001bced call ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x81, 0x18001bcf1 lea rdx, [rbp+57h+var_38] ; +0x86, 0x18001bcf6 cmp [rbp+57h+var_20], 0Fh ; +0x8a, 0x18001bcfa cmova rdx, [rbp+57h+var_38] ; +0x8f, 0x18001bcff mov rcx, [rax] ; +0x94, 0x18001bd04 mov r10, [rcx+18h] ; +0x97, 0x18001bd07 lea r9, [rbp+57h+var_A0] ; +0x9b, 0x18001bd0b lea r8, aR; "r" ; +0x9f, 0x18001bd0f mov rcx, rax ; +0xa6, 0x18001bd16 call r10 ; +0xa9, 0x18001bd19 mov rbx, rax ; +0xac, 0x18001bd1c mov r9d, [rbp+57h+var_A0] ; +0xaf, 0x18001bd1f mov [rsp+0D0h+var_A8], r14d ; +0xb3, 0x18001bd23 mov dword ptr [rsp+0D0h+Reserved], 74h ; 't' ; +0xb8, 0x18001bd28 mov r8, rax ; +0xc0, 0x18001bd30 lea rdx, [rbp+57h+var_88] ; +0xc3, 0x18001bd33 mov rcx, rdi ; +0xc7, 0x18001bd37 call ?load_buffer@xml_document@pugi@@QEAA?AUxml_parse_result@2@PEBX_KIW4xml_encoding@2@@Z; pugi::xml_document::load_buffer(void const *,unsigned __int64,uint,pugi::xml_encoding) ; +0xca, 0x18001bd3a lea rcx, [rbp+57h+var_88] ; +0xcf, 0x18001bd3f call sub_180082410 ; +0xd3, 0x18001bd43 test al, al ; +0xd8, 0x18001bd48 jz short loc_18001BD55 ; +0xda, 0x18001bd4a test rbx, rbx ; +0xdc, 0x18001bd4c jnz loc_18001BE26 ; +0xdf, 0x18001bd4f lea rcx, [rbp+57h+Block] ; +0xe5, 0x18001bd55 call sub_18003D940 ; +0xe9, 0x18001bd59 nop ; +0xee, 0x18001bd5e mov rcx, rsi; Str ; +0xef, 0x18001bd5f call strlen ; +0xf2, 0x18001bd62 mov r8, rax ; +0xf7, 0x18001bd67 mov rdx, rsi ; +0xfa, 0x18001bd6a lea rcx, [rbp+57h+Block]; Src ; +0xfd, 0x18001bd6d call sub_180007DF0 ; +0x101, 0x18001bd71 mov [rbp+57h+var_A0], r14d ; +0x106, 0x18001bd76 call ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x10a, 0x18001bd7a lea rdx, [rbp+57h+Block] ; +0x10f, 0x18001bd7f cmp [rbp+57h+var_40], 0Fh ; +0x113, 0x18001bd83 cmova rdx, [rbp+57h+Block] ; +0x118, 0x18001bd88 mov rcx, [rax] ; +0x11d, 0x18001bd8d mov r10, [rcx+18h] ; +0x120, 0x18001bd90 lea r9, [rbp+57h+var_A0] ; +0x124, 0x18001bd94 lea r8, aR; "r" ; +0x128, 0x18001bd98 mov rcx, rax ; +0x12f, 0x18001bd9f call r10 ; +0x132, 0x18001bda2 mov rbx, rax ; +0x135, 0x18001bda5 mov r9d, [rbp+57h+var_A0] ; +0x138, 0x18001bda8 mov [rsp+0D0h+var_A8], r14d ; +0x13c, 0x18001bdac mov dword ptr [rsp+0D0h+Reserved], 74h ; 't' ; +0x141, 0x18001bdb1 mov r8, rax ; +0x149, 0x18001bdb9 lea rdx, [rbp+57h+var_70] ; +0x14c, 0x18001bdbc mov rcx, rdi ; +0x150, 0x18001bdc0 call ?load_buffer@xml_document@pugi@@QEAA?AUxml_parse_result@2@PEBX_KIW4xml_encoding@2@@Z; pugi::xml_document::load_buffer(void const *,unsigned __int64,uint,pugi::xml_encoding) ; +0x153, 0x18001bdc3 movups xmm0, xmmword ptr [rax] ; +0x158, 0x18001bdc8 movups [rbp+57h+var_88], xmm0 ; +0x15b, 0x18001bdcb movsd xmm1, qword ptr [rax+10h] ; +0x15f, 0x18001bdcf movsd [rbp+57h+var_78], xmm1 ; +0x164, 0x18001bdd4 mov rdx, [rbp+57h+var_40] ; +0x169, 0x18001bdd9 cmp rdx, 0Fh ; +0x16d, 0x18001bddd jbe short loc_18001BE26 ; +0x171, 0x18001bde1 inc rdx ; +0x173, 0x18001bde3 mov rcx, [rbp+57h+Block]; Block ; +0x176, 0x18001bde6 mov rax, rcx ; +0x17a, 0x18001bdea cmp rdx, 1000h ; +0x17d, 0x18001bded jb short loc_18001BE21 ; +0x184, 0x18001bdf4 add rdx, 27h ; ''' ; +0x186, 0x18001bdf6 mov rcx, [rcx-8] ; +0x18a, 0x18001bdfa sub rax, rcx ; +0x18e, 0x18001bdfe sub rax, 8 ; +0x191, 0x18001be01 cmp rax, 1Fh ; +0x195, 0x18001be05 jbe short loc_18001BE21 ; +0x199, 0x18001be09 mov [rsp+0D0h+Reserved], r14; Reserved ; +0x19b, 0x18001be0b xor r9d, r9d; LineNo ; +0x1a0, 0x18001be10 xor r8d, r8d; FileName ; +0x1a3, 0x18001be13 xor edx, edx; FunctionName ; +0x1a6, 0x18001be16 xor ecx, ecx; Expression ; +0x1a8, 0x18001be18 call cs:_invoke_watson ; +0x1aa, 0x18001be1a db 0CCh ; +0x1b0, 0x18001be20 call j_j_free_0 ; +0x1b1, 0x18001be21 lea rcx, [rbp+57h+var_88] ; +0x1b6, 0x18001be26 call sub_180082410 ; +0x1ba, 0x18001be2a test al, al ; +0x1bf, 0x18001be2f jz short loc_18001BEAC ; +0x1c1, 0x18001be31 test rbx, rbx ; +0x1c3, 0x18001be33 jz short loc_18001BEAC ; +0x1c6, 0x18001be36 mov rbx, [rdi+0D8h] ; +0x1c8, 0x18001be38 lea r8, aPlist; "plist" ; +0x1cf, 0x18001be3f lea rdx, [rbp+57h+var_98] ; +0x1d6, 0x18001be46 mov rcx, rdi ; +0x1da, 0x18001be4a call sub_180082A40 ; +0x1dd, 0x18001be4d mov rcx, rax ; +0x1e2, 0x18001be52 lea r8, aDict_1; "dict" ; +0x1e5, 0x18001be55 lea rdx, [rbp+57h+var_90] ; +0x1ec, 0x18001be5c call sub_180082A40 ; +0x1f0, 0x18001be60 mov rcx, [rax] ; +0x1f5, 0x18001be65 mov [rbx-8], rcx ; +0x1f8, 0x18001be68 lea r8, aPlist; "plist" ; +0x1fc, 0x18001be6c lea rdx, [rbp+57h+var_90] ; +0x203, 0x18001be73 mov rcx, rdi ; +0x207, 0x18001be77 call sub_180082A40 ; +0x20a, 0x18001be7a mov rcx, rax ; +0x20f, 0x18001be7f lea r8, aGjver; "gjver" ; +0x212, 0x18001be82 lea rdx, [rbp+57h+var_98] ; +0x219, 0x18001be89 call sub_1800829C0 ; +0x21d, 0x18001be8d mov rcx, rax ; +0x222, 0x18001be92 xor edx, edx ; +0x225, 0x18001be95 call sub_180082940 ; +0x227, 0x18001be97 cmp eax, 2 ; +0x22c, 0x18001be9c setl al ; +0x22f, 0x18001be9f mov [rdi+0E8h], al ; +0x232, 0x18001bea2 mov bl, 1 ; +0x238, 0x18001bea8 jmp short loc_18001BEAE ; +0x23a, 0x18001beaa xor bl, bl ; +0x23c, 0x18001beac mov rdx, [rbp+57h+var_20] ; +0x23e, 0x18001beae cmp rdx, 0Fh ; +0x242, 0x18001beb2 jbe short loc_18001BEFB ; +0x246, 0x18001beb6 inc rdx ; +0x248, 0x18001beb8 mov rcx, [rbp+57h+var_38]; Block ; +0x24b, 0x18001bebb mov rax, rcx ; +0x24f, 0x18001bebf cmp rdx, 1000h ; +0x252, 0x18001bec2 jb short loc_18001BEF6 ; +0x259, 0x18001bec9 add rdx, 27h ; ''' ; +0x25b, 0x18001becb mov rcx, [rcx-8] ; +0x25f, 0x18001becf sub rax, rcx ; +0x263, 0x18001bed3 sub rax, 8 ; +0x266, 0x18001bed6 cmp rax, 1Fh ; +0x26a, 0x18001beda jbe short loc_18001BEF6 ; +0x26e, 0x18001bede mov [rsp+0D0h+Reserved], r14; Reserved ; +0x270, 0x18001bee0 xor r9d, r9d; LineNo ; +0x275, 0x18001bee5 xor r8d, r8d; FileName ; +0x278, 0x18001bee8 xor edx, edx; FunctionName ; +0x27b, 0x18001beeb xor ecx, ecx; Expression ; +0x27d, 0x18001beed call cs:_invoke_watson ; +0x27f, 0x18001beef align 2 ; +0x285, 0x18001bef5 call j_j_free_0 ; +0x286, 0x18001bef6 movzx eax, bl ; +0x28b, 0x18001befb mov rcx, [rbp+57h+var_18] ; +0x28e, 0x18001befe xor rcx, rsp; StackCookie ; +0x292, 0x18001bf02 call __security_check_cookie ; +0x295, 0x18001bf05 lea r11, [rsp+0D0h+var_10] ; +0x29a, 0x18001bf0a mov rbx, [r11+30h] ; +0x2a2, 0x18001bf12 mov rsi, [r11+38h] ; +0x2a6, 0x18001bf16 mov rsp, r11 ; +0x2aa, 0x18001bf1a pop r14 ; +0x2ad, 0x18001bf1d pop rdi ; +0x2af, 0x18001bf1f pop rbp ; +0x2b0, 0x18001bf20 retn ; +0x2b1, 0x18001bf21