{"type": "func", "start": 6442749088, "end": 6442749512, "name": "cocos2d::FNTConfigLoadFile", "pseudocode": "// \n// cocos2d::FNTConfigLoadFile from 0x180048ca0 to 0x180048e48 (424 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCLabelBMFont::initWithString @ 0x180049ff6\n// > cocos2d::CCLabelBMFont::setFntFile @ 0x18004e18e\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbac4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:41 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCBMFontConfiguration *__fastcall cocos2d::FNTConfigLoadFile(cocos2d *this, const char *a2)\n{\n  cocos2d::CCDictionary *v3; // rax\n  size_t v4; // rax\n  cocos2d::CCObject *v5; // rbx\n  void *v6; // rax\n  size_t v7; // rax\n  void *v8; // rcx\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int128 v11; // [rsp+48h] [rbp-20h]\n\n  if ( !qword_1801B23D8 )\n  {\n    v3 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);\n    if ( v3 )\n      v3 = cocos2d::CCDictionary::CCDictionary(v3);\n    qword_1801B23D8 = v3;\n  }\n  *(_OWORD *)Block = 0;\n  v11 = 0;\n  v4 = strlen((const char *)this);\n  sub_18000CEF0(Block, this, v4);\n  v5 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey((__int64)qword_1801B23D8, (__int64)Block);\n  if ( *((_QWORD *)&v11 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v6);\n  }\n  if ( !v5 )\n  {\n    v5 = cocos2d::CCBMFontConfiguration::create((const char *)this);\n    if ( v5 )\n    {\n      *(_OWORD *)Block = 0;\n      v11 = 0;\n      v7 = strlen((const char *)this);\n      sub_18000CEF0(Block, this, v7);\n      cocos2d::CCDictionary::setObject((__int64)qword_1801B23D8, v5, (__int64)Block);\n      if ( *((_QWORD *)&v11 + 1) > 0xFu )\n      {\n        v8 = Block[0];\n        if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 )\n        {\n          v8 = *((void **)Block[0] - 1);\n          if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free_0(v8);\n      }\n    }\n  }\n  return v5;\n}", "assembly": "; \n; cocos2d::FNTConfigLoadFile from 0x180048ca0 to 0x180048e48 (424 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCLabelBMFont::initWithString @ 0x180049ff6\n; > cocos2d::CCLabelBMFont::setFntFile @ 0x18004e18e\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbac4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:41 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180048ca0\npush    rdi                                                            ; +0x5, 0x180048ca5\nsub     rsp, 60h                                                       ; +0x6, 0x180048ca6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x180048caa\nxor     rax, rsp                                                       ; +0x11, 0x180048cb1\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x180048cb4\nmov     rdi, rcx                                                       ; +0x19, 0x180048cb9\ncmp     cs:qword_1801B23D8, 0                                          ; +0x1c, 0x180048cbc\njnz     short loc_180048CEA                                            ; +0x24, 0x180048cc4\nmov     ecx, 48h ; 'H'; Size                                           ; +0x26, 0x180048cc6\ncall    sub_1800E4AC0                                                  ; +0x2b, 0x180048ccb\nmov     [rsp+68h+var_38], rax                                          ; +0x30, 0x180048cd0\ntest    rax, rax                                                       ; +0x35, 0x180048cd5\njz      short loc_180048CE3                                            ; +0x38, 0x180048cd8\nmov     rcx, rax; this                                                 ; +0x3a, 0x180048cda\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x3d, 0x180048cdd\nnop                                                                    ; +0x42, 0x180048ce2\nmov     cs:qword_1801B23D8, rax                                        ; +0x43, 0x180048ce3\nxorps   xmm0, xmm0                                                     ; +0x4a, 0x180048cea\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x4d, 0x180048ced\nxorps   xmm1, xmm1                                                     ; +0x52, 0x180048cf2\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x55, 0x180048cf5\nmov     rcx, rdi; Str                                                  ; +0x5b, 0x180048cfb\ncall    strlen                                                         ; +0x5e, 0x180048cfe\nmov     r8, rax                                                        ; +0x63, 0x180048d03\nmov     rdx, rdi                                                       ; +0x66, 0x180048d06\nlea     rcx, [rsp+68h+Block]                                           ; +0x69, 0x180048d09\ncall    sub_18000CEF0                                                  ; +0x6e, 0x180048d0e\nnop                                                                    ; +0x73, 0x180048d13\nlea     rdx, [rsp+68h+Block]                                           ; +0x74, 0x180048d14\nmov     rcx, cs:qword_1801B23D8                                        ; +0x79, 0x180048d19\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x80, 0x180048d20\nmov     rbx, rax                                                       ; +0x85, 0x180048d25\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0x88, 0x180048d28\ncmp     rdx, 0Fh                                                       ; +0x8d, 0x180048d2d\njbe     short loc_180048D7E                                            ; +0x91, 0x180048d31\ninc     rdx                                                            ; +0x93, 0x180048d33\nmov     rax, [rsp+68h+Block]                                           ; +0x96, 0x180048d36\nmov     rcx, rax                                                       ; +0x9b, 0x180048d3b\ncmp     rdx, 1000h                                                     ; +0x9e, 0x180048d3e\njb      short loc_180048D76                                            ; +0xa5, 0x180048d45\nadd     rdx, 27h ; '''                                                 ; +0xa7, 0x180048d47\nmov     rax, [rax-8]                                                   ; +0xab, 0x180048d4b\nsub     rcx, rax                                                       ; +0xaf, 0x180048d4f\nsub     rcx, 8                                                         ; +0xb2, 0x180048d52\ncmp     rcx, 1Fh                                                       ; +0xb6, 0x180048d56\njbe     short loc_180048D76                                            ; +0xba, 0x180048d5a\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xbc, 0x180048d5c\nxor     r9d, r9d; LineNo                                               ; +0xc5, 0x180048d65\nxor     r8d, r8d; FileName                                             ; +0xc8, 0x180048d68\nxor     edx, edx; FunctionName                                         ; +0xcb, 0x180048d6b\nxor     ecx, ecx; Expression                                           ; +0xcd, 0x180048d6d\ncall    cs:_invoke_watson                                              ; +0xcf, 0x180048d6f\nalign 2                                                                ; +0xd5, 0x180048d75\nmov     rcx, rax; Block                                                ; +0xd6, 0x180048d76\ncall    j_j_free_0                                                     ; +0xd9, 0x180048d79\ntest    rbx, rbx                                                       ; +0xde, 0x180048d7e\njnz     loc_180048E2D                                                  ; +0xe1, 0x180048d81\nmov     rcx, rdi; char *                                               ; +0xe7, 0x180048d87\ncall    ?create@CCBMFontConfiguration@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCBMFontConfiguration::create(char const *) ; +0xea, 0x180048d8a\nmov     rbx, rax                                                       ; +0xef, 0x180048d8f\ntest    rax, rax                                                       ; +0xf2, 0x180048d92\njz      loc_180048E2D                                                  ; +0xf5, 0x180048d95\nxorps   xmm0, xmm0                                                     ; +0xfb, 0x180048d9b\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0xfe, 0x180048d9e\nxorps   xmm1, xmm1                                                     ; +0x103, 0x180048da3\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x106, 0x180048da6\nmov     rcx, rdi; Str                                                  ; +0x10c, 0x180048dac\ncall    strlen                                                         ; +0x10f, 0x180048daf\nmov     r8, rax                                                        ; +0x114, 0x180048db4\nmov     rdx, rdi                                                       ; +0x117, 0x180048db7\nlea     rcx, [rsp+68h+Block]                                           ; +0x11a, 0x180048dba\ncall    sub_18000CEF0                                                  ; +0x11f, 0x180048dbf\nnop                                                                    ; +0x124, 0x180048dc4\nlea     r8, [rsp+68h+Block]                                            ; +0x125, 0x180048dc5\nmov     rdx, rbx                                                       ; +0x12a, 0x180048dca\nmov     rcx, cs:qword_1801B23D8                                        ; +0x12d, 0x180048dcd\ncall    ?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x134, 0x180048dd4\nnop                                                                    ; +0x139, 0x180048dd9\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0x13a, 0x180048dda\ncmp     rdx, 0Fh                                                       ; +0x13f, 0x180048ddf\njbe     short loc_180048E2D                                            ; +0x143, 0x180048de3\ninc     rdx                                                            ; +0x145, 0x180048de5\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x148, 0x180048de8\nmov     rax, rcx                                                       ; +0x14d, 0x180048ded\ncmp     rdx, 1000h                                                     ; +0x150, 0x180048df0\njb      short loc_180048E28                                            ; +0x157, 0x180048df7\nadd     rdx, 27h ; '''                                                 ; +0x159, 0x180048df9\nmov     rcx, [rcx-8]                                                   ; +0x15d, 0x180048dfd\nsub     rax, rcx                                                       ; +0x161, 0x180048e01\nsub     rax, 8                                                         ; +0x164, 0x180048e04\ncmp     rax, 1Fh                                                       ; +0x168, 0x180048e08\njbe     short loc_180048E28                                            ; +0x16c, 0x180048e0c\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x16e, 0x180048e0e\nxor     r9d, r9d; LineNo                                               ; +0x177, 0x180048e17\nxor     r8d, r8d; FileName                                             ; +0x17a, 0x180048e1a\nxor     edx, edx; FunctionName                                         ; +0x17d, 0x180048e1d\nxor     ecx, ecx; Expression                                           ; +0x17f, 0x180048e1f\ncall    cs:_invoke_watson                                              ; +0x181, 0x180048e21\nalign 8                                                                ; +0x187, 0x180048e27\ncall    j_j_free_0                                                     ; +0x188, 0x180048e28\nmov     rax, rbx                                                       ; +0x18d, 0x180048e2d\nmov     rcx, [rsp+68h+var_10]                                          ; +0x190, 0x180048e30\nxor     rcx, rsp; StackCookie                                          ; +0x195, 0x180048e35\ncall    __security_check_cookie                                        ; +0x198, 0x180048e38\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x19d, 0x180048e3d\nadd     rsp, 60h                                                       ; +0x1a2, 0x180048e42\npop     rdi                                                            ; +0x1a6, 0x180048e46\nretn                                                                   ; +0x1a7, 0x180048e47", "xrefs": ["cocos2d::CCLabelBMFont::initWithString @ 0x180049ff6", "cocos2d::CCLabelBMFont::setFntFile @ 0x18004e18e", "<???> @ 0x18014cf68", "<???> @ 0x1801bbac4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}