; ; DS_Dictionary::loadRootSubDictFromFile from 0x18001bd70 to 0x18001c05a (746 bytes) ; ; 3 xrefs: ; > CCContentManager::addDictDS @ 0x180005e93 ; > @ 0x1801438a8 ; > @ 0x1801aea94 ; ; 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 ; mov [rsp-8+arg_10], rbx ; +0x0, 0x18001bd70 push rbp ; +0x5, 0x18001bd75 push rsi ; +0x6, 0x18001bd76 push rdi ; +0x7, 0x18001bd77 push r14 ; +0x8, 0x18001bd78 push r15 ; +0xa, 0x18001bd7a lea rbp, [rsp-37h] ; +0xc, 0x18001bd7c sub rsp, 0C0h ; +0x11, 0x18001bd81 mov rax, cs:__security_cookie ; +0x18, 0x18001bd88 xor rax, rsp ; +0x1f, 0x18001bd8f mov [rbp+57h+var_28], rax ; +0x22, 0x18001bd92 mov rsi, rdx ; +0x26, 0x18001bd96 mov r14, rcx ; +0x29, 0x18001bd99 lea rbx, [rcx+0D0h] ; +0x2c, 0x18001bd9c mov rax, [rbx] ; +0x33, 0x18001bda3 cmp rax, [rbx+8] ; +0x36, 0x18001bda6 jz short loc_18001BDB0 ; +0x3a, 0x18001bdaa mov [rbx+8], rax ; +0x3c, 0x18001bdac lea rcx, [rbp+57h+var_A8]; this ; +0x40, 0x18001bdb0 call pugi__xml_node__xml_node ; +0x44, 0x18001bdb4 mov rdx, [rbx+8] ; +0x49, 0x18001bdb9 cmp rdx, [rbx+10h] ; +0x4d, 0x18001bdbd jz short loc_18001BDD0 ; +0x51, 0x18001bdc1 mov rax, [rax] ; +0x53, 0x18001bdc3 mov [rdx], rax ; +0x56, 0x18001bdc6 add qword ptr [rbx+8], 8 ; +0x59, 0x18001bdc9 jmp short loc_18001BDDB ; +0x5e, 0x18001bdce mov r8, rax ; +0x60, 0x18001bdd0 mov rcx, rbx ; +0x63, 0x18001bdd3 call sub_180015D80 ; +0x66, 0x18001bdd6 call ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x6b, 0x18001bddb mov r10, [rax] ; +0x70, 0x18001bde0 xor r9d, r9d ; +0x73, 0x18001bde3 mov r8, rsi ; +0x76, 0x18001bde6 lea rdx, [rbp+57h+var_48] ; +0x79, 0x18001bde9 mov rcx, rax ; +0x7d, 0x18001bded call qword ptr [r10+28h] ; +0x80, 0x18001bdf0 nop ; +0x84, 0x18001bdf4 xor r15d, r15d ; +0x85, 0x18001bdf5 mov [rbp+57h+var_B0], r15d ; +0x88, 0x18001bdf8 call ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x8c, 0x18001bdfc lea rdx, [rbp+57h+var_48] ; +0x91, 0x18001be01 cmp [rbp+57h+var_30], 0Fh ; +0x95, 0x18001be05 cmova rdx, [rbp+57h+var_48] ; +0x9a, 0x18001be0a mov r10, [rax] ; +0x9f, 0x18001be0f lea r9, [rbp+57h+var_B0] ; +0xa2, 0x18001be12 lea r8, aR; "r" ; +0xa6, 0x18001be16 mov rcx, rax ; +0xad, 0x18001be1d call qword ptr [r10+18h] ; +0xb0, 0x18001be20 mov rbx, rax ; +0xb4, 0x18001be24 mov r9d, [rbp+57h+var_B0] ; +0xb7, 0x18001be27 mov [rsp+0E0h+var_B8], r15d ; +0xbb, 0x18001be2b mov dword ptr [rsp+0E0h+Size], 74h ; 't' ; +0xc0, 0x18001be30 mov r8, rax ; +0xc8, 0x18001be38 lea rdx, [rbp+57h+var_98] ; +0xcb, 0x18001be3b mov rcx, r14 ; +0xcf, 0x18001be3f 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) ; +0xd2, 0x18001be42 lea rcx, [rbp+57h+var_98]; this ; +0xd7, 0x18001be47 call ?is_zero@__crt_strtox@@YA_NAEBUbig_integer@1@@Z; __crt_strtox::is_zero(__crt_strtox::big_integer const &) ; +0xdb, 0x18001be4b test al, al ; +0xe0, 0x18001be50 jz short loc_18001BE5D ; +0xe2, 0x18001be52 test rbx, rbx ; +0xe4, 0x18001be54 jnz loc_18001BF6D ; +0xe7, 0x18001be57 lea rcx, [rbp+57h+Block] ; +0xed, 0x18001be5d call sub_18003D240 ; +0xf1, 0x18001be61 nop ; +0xf6, 0x18001be66 mov rdi, 0FFFFFFFFFFFFFFFFh ; +0xf7, 0x18001be67 xchg ax, ax ; +0xfe, 0x18001be6e inc rdi ; +0x100, 0x18001be70 cmp byte ptr [rsi+rdi], 0 ; +0x103, 0x18001be73 jnz short loc_18001BE70 ; +0x107, 0x18001be77 mov rcx, [rbp+57h+var_58] ; +0x109, 0x18001be79 mov rdx, [rbp+57h+var_50] ; +0x10d, 0x18001be7d mov rax, rdx ; +0x111, 0x18001be81 sub rax, rcx ; +0x114, 0x18001be84 cmp rdi, rax ; +0x117, 0x18001be87 ja short loc_18001BEB8 ; +0x11a, 0x18001be8a lea rax, [rdi+rcx] ; +0x11c, 0x18001be8c mov [rbp+57h+var_58], rax ; +0x120, 0x18001be90 lea rbx, [rbp+57h+Block] ; +0x124, 0x18001be94 cmp rdx, 0Fh ; +0x128, 0x18001be98 cmova rbx, [rbp+57h+Block] ; +0x12c, 0x18001be9c add rbx, rcx ; +0x131, 0x18001bea1 mov r8, rdi; Size ; +0x134, 0x18001bea4 mov rdx, rsi; Src ; +0x137, 0x18001bea7 mov rcx, rbx; void * ; +0x13a, 0x18001beaa call memmove ; +0x13d, 0x18001bead mov byte ptr [rbx+rdi], 0 ; +0x142, 0x18001beb2 jmp short loc_18001BECF ; +0x146, 0x18001beb6 mov [rsp+0E0h+Size], rdi; Size ; +0x148, 0x18001beb8 mov r9, rsi ; +0x14d, 0x18001bebd xor r8d, r8d ; +0x150, 0x18001bec0 mov rdx, rdi ; +0x153, 0x18001bec3 lea rcx, [rbp+57h+Block]; Src ; +0x156, 0x18001bec6 call sub_180007900 ; +0x15a, 0x18001beca mov [rbp+57h+var_B0], r15d ; +0x15f, 0x18001becf call ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x163, 0x18001bed3 lea rdx, [rbp+57h+Block] ; +0x168, 0x18001bed8 cmp [rbp+57h+var_50], 0Fh ; +0x16c, 0x18001bedc cmova rdx, [rbp+57h+Block] ; +0x171, 0x18001bee1 mov r10, [rax] ; +0x176, 0x18001bee6 lea r9, [rbp+57h+var_B0] ; +0x179, 0x18001bee9 lea r8, aR; "r" ; +0x17d, 0x18001beed mov rcx, rax ; +0x184, 0x18001bef4 call qword ptr [r10+18h] ; +0x187, 0x18001bef7 mov rbx, rax ; +0x18b, 0x18001befb mov r9d, [rbp+57h+var_B0] ; +0x18e, 0x18001befe mov [rsp+0E0h+var_B8], r15d ; +0x192, 0x18001bf02 mov dword ptr [rsp+0E0h+Size], 74h ; 't' ; +0x197, 0x18001bf07 mov r8, rax ; +0x19f, 0x18001bf0f lea rdx, [rbp+57h+var_80] ; +0x1a2, 0x18001bf12 mov rcx, r14 ; +0x1a6, 0x18001bf16 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) ; +0x1a9, 0x18001bf19 movups xmm0, xmmword ptr [rax] ; +0x1ae, 0x18001bf1e movups [rbp+57h+var_98], xmm0 ; +0x1b1, 0x18001bf21 movsd xmm1, qword ptr [rax+10h] ; +0x1b5, 0x18001bf25 movsd [rbp+57h+var_88], xmm1 ; +0x1ba, 0x18001bf2a mov rdx, [rbp+57h+var_50] ; +0x1bf, 0x18001bf2f cmp rdx, 0Fh ; +0x1c3, 0x18001bf33 jbe short loc_18001BF6D ; +0x1c7, 0x18001bf37 inc rdx ; +0x1c9, 0x18001bf39 mov rcx, [rbp+57h+Block]; Block ; +0x1cc, 0x18001bf3c mov rax, rcx ; +0x1d0, 0x18001bf40 cmp rdx, 1000h ; +0x1d3, 0x18001bf43 jb short loc_18001BF68 ; +0x1da, 0x18001bf4a add rdx, 27h ; ''' ; +0x1dc, 0x18001bf4c mov rcx, [rcx-8] ; +0x1e0, 0x18001bf50 sub rax, rcx ; +0x1e4, 0x18001bf54 add rax, 0FFFFFFFFFFFFFFF8h ; +0x1e7, 0x18001bf57 cmp rax, 1Fh ; +0x1eb, 0x18001bf5b jbe short loc_18001BF68 ; +0x1ef, 0x18001bf5f call cs:_invalid_parameter_noinfo_noreturn ; +0x1f1, 0x18001bf61 align 8 ; +0x1f7, 0x18001bf67 call j_j_free_0 ; +0x1f8, 0x18001bf68 lea rcx, [rbp+57h+var_98]; this ; +0x1fd, 0x18001bf6d call ?is_zero@__crt_strtox@@YA_NAEBUbig_integer@1@@Z; __crt_strtox::is_zero(__crt_strtox::big_integer const &) ; +0x201, 0x18001bf71 test al, al ; +0x206, 0x18001bf76 jz short loc_18001BFF4 ; +0x208, 0x18001bf78 test rbx, rbx ; +0x20a, 0x18001bf7a jz short loc_18001BFF4 ; +0x20d, 0x18001bf7d mov rbx, [r14+0D8h] ; +0x20f, 0x18001bf7f lea r8, aPlist; "plist" ; +0x216, 0x18001bf86 lea rdx, [rbp+57h+var_A8] ; +0x21d, 0x18001bf8d mov rcx, r14 ; +0x221, 0x18001bf91 call sub_18007FB10 ; +0x224, 0x18001bf94 mov rcx, rax ; +0x229, 0x18001bf99 lea r8, aDict_1; "dict" ; +0x22c, 0x18001bf9c lea rdx, [rbp+57h+var_A0] ; +0x233, 0x18001bfa3 call sub_18007FB10 ; +0x237, 0x18001bfa7 mov rcx, [rax] ; +0x23c, 0x18001bfac mov [rbx-8], rcx ; +0x23f, 0x18001bfaf lea r8, aPlist; "plist" ; +0x243, 0x18001bfb3 lea rdx, [rbp+57h+var_A0] ; +0x24a, 0x18001bfba mov rcx, r14 ; +0x24e, 0x18001bfbe call sub_18007FB10 ; +0x251, 0x18001bfc1 mov rcx, rax ; +0x256, 0x18001bfc6 lea r8, aGjver; "gjver" ; +0x259, 0x18001bfc9 lea rdx, [rbp+57h+var_A8] ; +0x260, 0x18001bfd0 call sub_18007FAB0 ; +0x264, 0x18001bfd4 mov rcx, rax ; +0x269, 0x18001bfd9 xor edx, edx ; +0x26c, 0x18001bfdc call sub_18007FA30 ; +0x26e, 0x18001bfde cmp eax, 2 ; +0x273, 0x18001bfe3 setl al ; +0x276, 0x18001bfe6 mov [r14+0E8h], al ; +0x279, 0x18001bfe9 mov bl, 1 ; +0x280, 0x18001bff0 jmp short loc_18001BFF6 ; +0x282, 0x18001bff2 xor bl, bl ; +0x284, 0x18001bff4 mov rdx, [rbp+57h+var_30] ; +0x286, 0x18001bff6 cmp rdx, 0Fh ; +0x28a, 0x18001bffa jbe short loc_18001C034 ; +0x28e, 0x18001bffe inc rdx ; +0x290, 0x18001c000 mov rcx, [rbp+57h+var_48]; Block ; +0x293, 0x18001c003 mov rax, rcx ; +0x297, 0x18001c007 cmp rdx, 1000h ; +0x29a, 0x18001c00a jb short loc_18001C02F ; +0x2a1, 0x18001c011 add rdx, 27h ; ''' ; +0x2a3, 0x18001c013 mov rcx, [rcx-8] ; +0x2a7, 0x18001c017 sub rax, rcx ; +0x2ab, 0x18001c01b add rax, 0FFFFFFFFFFFFFFF8h ; +0x2ae, 0x18001c01e cmp rax, 1Fh ; +0x2b2, 0x18001c022 jbe short loc_18001C02F ; +0x2b6, 0x18001c026 call cs:_invalid_parameter_noinfo_noreturn ; +0x2b8, 0x18001c028 db 0CCh ; +0x2be, 0x18001c02e call j_j_free_0 ; +0x2bf, 0x18001c02f movzx eax, bl ; +0x2c4, 0x18001c034 mov rcx, [rbp+57h+var_28] ; +0x2c7, 0x18001c037 xor rcx, rsp; StackCookie ; +0x2cb, 0x18001c03b call __security_check_cookie ; +0x2ce, 0x18001c03e mov rbx, [rsp+0E0h+arg_10] ; +0x2d3, 0x18001c043 add rsp, 0C0h ; +0x2db, 0x18001c04b pop r15 ; +0x2e2, 0x18001c052 pop r14 ; +0x2e4, 0x18001c054 pop rdi ; +0x2e6, 0x18001c056 pop rsi ; +0x2e7, 0x18001c057 pop rbp ; +0x2e8, 0x18001c058 retn ; +0x2e9, 0x18001c059