{"type": "func", "start": 6442520480, "end": 6442520652, "name": "sub_180010FA0", "pseudocode": "// \n// sub_180010FA0 from 0x180010fa0 to 0x18001104c (172 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002a7c0\n// > <???> @ 0x18004c170\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 12:15:40 +0000\n// \n\n_QWORD *__fastcall sub_180010FA0(_QWORD *Block, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_18001F0B0(Block, 144, *(Block - 1), cocos2d::extension::CCEditBoxImplWin::~CCEditBoxImplWin);\n    if ( v3 )\n      j_j_j_free(Block - 1);\n    return Block - 1;\n  }\n  else\n  {\n    *Block = &cocos2d::extension::CCEditBoxImplWin::`vftable';\n    sub_180003700((__int64)(Block + 11));\n    sub_180003700((__int64)(Block + 7));\n    *Block = &cocos2d::extension::CCEditBoxImpl::`vftable';\n    if ( v3 )\n      j_j_free(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_180010FA0 from 0x180010fa0 to 0x18001104c (172 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002a7c0\n; > <???> @ 0x18004c170\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 12:15:40 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180010fa0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180010fa5\npush    rdi                                                            ; +0xa, 0x180010faa\nsub     rsp, 20h                                                       ; +0xb, 0x180010fab\nmov     rbx, rcx                                                       ; +0xf, 0x180010faf\nmov     esi, edx                                                       ; +0x12, 0x180010fb2\nand     esi, 1                                                         ; +0x14, 0x180010fb4\ntest    dl, 2                                                          ; +0x17, 0x180010fb7\njz      short loc_180011002                                            ; +0x1a, 0x180010fba\nlea     r9, ??1CCEditBoxImplWin@extension@cocos2d@@UEAA@XZ; cocos2d::extension::CCEditBoxImplWin::~CCEditBoxImplWin(void) ; +0x1c, 0x180010fbc\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180010fc3\nmov     edx, 90h                                                       ; +0x27, 0x180010fc7\ncall    sub_18001F0B0                                                  ; +0x2c, 0x180010fcc\ntest    esi, esi                                                       ; +0x31, 0x180010fd1\njz      short loc_180010FEE                                            ; +0x33, 0x180010fd3\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x180010fd5\nlea     rdx, [rcx+rcx*8]                                               ; +0x39, 0x180010fd9\nshl     rdx, 4                                                         ; +0x3d, 0x180010fdd\nadd     rdx, 8                                                         ; +0x41, 0x180010fe1\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x180010fe5\ncall    j_j_j_free                                                     ; +0x49, 0x180010fe9\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x180010fee\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180010ff2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x180010ff7\nadd     rsp, 20h                                                       ; +0x5c, 0x180010ffc\npop     rdi                                                            ; +0x60, 0x180011000\nretn                                                                   ; +0x61, 0x180011001\nlea     rax, ??_7CCEditBoxImplWin@extension@cocos2d@@6B@; const cocos2d::extension::CCEditBoxImplWin::`vftable' ; +0x62, 0x180011002\nmov     [rcx], rax                                                     ; +0x69, 0x180011009\nadd     rcx, 58h ; 'X'                                                 ; +0x6c, 0x18001100c\ncall    sub_180003700                                                  ; +0x70, 0x180011010\nlea     rcx, [rbx+38h]                                                 ; +0x75, 0x180011015\ncall    sub_180003700                                                  ; +0x79, 0x180011019\nlea     rax, ??_7CCEditBoxImpl@extension@cocos2d@@6B@; const cocos2d::extension::CCEditBoxImpl::`vftable' ; +0x7e, 0x18001101e\nmov     [rbx], rax                                                     ; +0x85, 0x180011025\ntest    esi, esi                                                       ; +0x88, 0x180011028\njz      short loc_180011039                                            ; +0x8a, 0x18001102a\nmov     edx, 90h                                                       ; +0x8c, 0x18001102c\nmov     rcx, rbx; Block                                                ; +0x91, 0x180011031\ncall    j_j_free                                                       ; +0x94, 0x180011034\nmov     rax, rbx                                                       ; +0x99, 0x180011039\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9c, 0x18001103c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa1, 0x180011041\nadd     rsp, 20h                                                       ; +0xa6, 0x180011046\npop     rdi                                                            ; +0xaa, 0x18001104a\nretn                                                                   ; +0xab, 0x18001104b", "xrefs": ["<???> @ 0x18002a7c0", "<???> @ 0x18004c170"], "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"}