{"type": "func", "start": 6442573312, "end": 6442573764, "name": "CWin32InputBox::InputBox", "pseudocode": "// \n// CWin32InputBox::InputBox from 0x18001de00 to 0x18001dfc4 (452 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::CCEditBoxImplWin::openKeyboard @ 0x1800118dd\n// > <???> @ 0x180032408\n// > <???> @ 0x18004d01c\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:44 +0000\n// \n\nINT_PTR __fastcall CWin32InputBox::InputBox(const char *a1, const char *a2, char *a3, int a4, bool a5)\n{\n  int v10; // eax\n  int v11; // eax\n  LPARAM dwInitParam[2]; // [rsp+30h] [rbp-49h] BYREF\n  bool v13; // [rsp+40h] [rbp-39h] BYREF\n  void *v14; // [rsp+48h] [rbp-31h]\n  __int64 v15; // [rsp+50h] [rbp-29h]\n  char v16; // [rsp+58h] [rbp-21h]\n  int v17; // [rsp+5Ch] [rbp-1Dh]\n  int v18; // [rsp+60h] [rbp-19h]\n  int v19; // [rsp+64h] [rbp-15h]\n  int v20; // [rsp+68h] [rbp-11h]\n  const char *v21; // [rsp+70h] [rbp-9h]\n  const char *v22; // [rsp+78h] [rbp-1h]\n  char *v23; // [rsp+80h] [rbp+7h]\n  int v24; // [rsp+88h] [rbp+Fh]\n  HWND hWndParent; // [rsp+90h] [rbp+17h]\n  HINSTANCE hInstance; // [rsp+98h] [rbp+1Fh]\n  int v27; // [rsp+A0h] [rbp+27h]\n\n  hWndParent = nullptr;\n  v15 = 0;\n  v16 = 1;\n  hInstance = GetModuleHandleW(nullptr);\n  v13 = a5;\n  v14 = &unk_180049094;\n  v17 = 0;\n  v19 = 0;\n  v18 = -1;\n  v20 = -1;\n  v27 = -1;\n  v21 = a1;\n  v22 = a2;\n  v23 = a3;\n  v24 = a4;\n  if ( a3 )\n  {\n    if ( unk_180049094 == 1 && unk_180049096 == 0xFFFF && &unk_180049094 )\n    {\n      dword_1800490A0[0] |= v17;\n      unk_18004909C &= v20;\n      v10 = v18 & dword_1800490A0[0];\n      dword_1800490A0[0] &= v18;\n      dword_1800490A0[0] = v10 | 0x800;\n      if ( (_WORD)v27 != 0xFFFF )\n        HIWORD(dword_1800490A0[1]) = v27;\n      if ( HIWORD(v27) != 0xFFFF )\n        LOWORD(dword_1800490A0[2]) = HIWORD(v27);\n    }\n    else\n    {\n      unk_180049094 |= v17;\n      unk_180049098 &= v20;\n      v11 = v18 & unk_180049094;\n      unk_180049094 &= v18;\n      unk_180049094 = v11 | 0x800;\n      if ( (_WORD)v27 != 0xFFFF )\n        unk_18004909E = v27;\n      if ( HIWORD(v27) != 0xFFFF )\n        LOWORD(dword_1800490A0[0]) = HIWORD(v27);\n    }\n    dwInitParam[0] = (LPARAM)&v13;\n    return DialogBoxIndirectParamW(\n             hInstance,\n             (LPCDLGTEMPLATEW)&unk_180049094,\n             hWndParent,\n             CWin32InputBox::DlgProc,\n             (LPARAM)dwInitParam);\n  }\n  else\n  {\n    SetLastError(0x57u);\n    return 0;\n  }\n}", "assembly": "; \n; CWin32InputBox::InputBox from 0x18001de00 to 0x18001dfc4 (452 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::CCEditBoxImplWin::openKeyboard @ 0x1800118dd\n; > <???> @ 0x180032408\n; > <???> @ 0x18004d01c\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:44 +0000\n; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x18001de00\nmov     [rsp-8+arg_8], rsi                                             ; +0x5, 0x18001de05\nmov     [rsp-8+arg_10], rdi                                            ; +0xa, 0x18001de0a\nmov     [rsp-8+arg_18], r12                                            ; +0xf, 0x18001de0f\npush    rbp                                                            ; +0x14, 0x18001de14\npush    r14                                                            ; +0x15, 0x18001de15\npush    r15                                                            ; +0x17, 0x18001de17\nlea     rbp, [rsp-37h]                                                 ; +0x19, 0x18001de19\nsub     rsp, 0B0h                                                      ; +0x1e, 0x18001de1e\nmov     rbx, rcx                                                       ; +0x25, 0x18001de25\nmov     [rbp+47h+var_80], 0                                            ; +0x28, 0x18001de28\nxor     r15d, r15d                                                     ; +0x2c, 0x18001de2c\nxor     ecx, ecx; lpModuleName                                         ; +0x2f, 0x18001de2f\nmov     [rbp+47h+hWndParent], r15                                      ; +0x31, 0x18001de31\nmov     esi, r9d                                                       ; +0x35, 0x18001de35\nmov     [rbp+47h+var_70], r15                                          ; +0x38, 0x18001de38\nmov     r14, r8                                                        ; +0x3c, 0x18001de3c\nmov     rdi, rdx                                                       ; +0x3f, 0x18001de3f\ncall    cs:GetModuleHandleW                                            ; +0x42, 0x18001de42\nmov     [rbp+47h+var_68], 1                                            ; +0x48, 0x18001de48\nmov     r12, rax                                                       ; +0x4c, 0x18001de4c\nmov     [rbp+47h+hInstance], rax                                       ; +0x4f, 0x18001de4f\nlea     rdx, unk_180049094                                             ; +0x53, 0x18001de53\nmovzx   eax, [rbp+47h+arg_20]                                          ; +0x5a, 0x18001de5a\nmov     [rbp+47h+var_80], al                                           ; +0x5e, 0x18001de5e\nmov     [rbp+47h+var_78], rdx                                          ; +0x61, 0x18001de61\nmov     [rbp+47h+var_64], r15d                                         ; +0x65, 0x18001de65\nmov     [rbp+47h+var_5C], r15d                                         ; +0x69, 0x18001de69\nmov     [rbp+47h+var_60], 0FFFFFFFFh                                   ; +0x6d, 0x18001de6d\nmov     [rbp+47h+var_58], 0FFFFFFFFh                                   ; +0x74, 0x18001de74\nmov     [rbp+47h+var_20], 0FFFFFFFFh                                   ; +0x7b, 0x18001de7b\nmov     [rbp+47h+var_50], rbx                                          ; +0x82, 0x18001de82\nmov     [rbp+47h+var_48], rdi                                          ; +0x86, 0x18001de86\nmov     [rbp+47h+var_40], r14                                          ; +0x8a, 0x18001de8a\nmov     [rbp+47h+var_38], esi                                          ; +0x8e, 0x18001de8e\ntest    r14, r14                                                       ; +0x91, 0x18001de91\njnz     short loc_18001DEA9                                            ; +0x94, 0x18001de94\nmov     ecx, 57h ; 'W'; dwErrCode                                      ; +0x96, 0x18001de96\ncall    cs:SetLastError                                                ; +0x9b, 0x18001de9b\nmov     rax, r15                                                       ; +0xa1, 0x18001dea1\njmp     loc_18001DFA3                                                  ; +0xa4, 0x18001dea4\ncmp     [rbp+47h+var_70], r15                                          ; +0xa9, 0x18001dea9\njz      short loc_18001DEDF                                            ; +0xad, 0x18001dead\nmovzx   edx, word ptr [rbp+47h+var_70]; lpName                         ; +0xaf, 0x18001deaf\nmov     r8d, 5; lpType                                                 ; +0xb3, 0x18001deb3\nmov     rcx, r12; hModule                                              ; +0xb9, 0x18001deb9\ncall    cs:FindResourceW                                               ; +0xbc, 0x18001debc\ntest    rax, rax                                                       ; +0xc2, 0x18001dec2\njz      short loc_18001DEA1                                            ; +0xc5, 0x18001dec5\nmov     rdx, rax; hResInfo                                             ; +0xc7, 0x18001dec7\nmov     rcx, r12; hModule                                              ; +0xca, 0x18001deca\ncall    cs:LoadResource                                                ; +0xcd, 0x18001decd\nmov     rdx, rax; hDialogTemplate                                      ; +0xd3, 0x18001ded3\ntest    rax, rax                                                       ; +0xd6, 0x18001ded6\njz      short loc_18001DEA1                                            ; +0xd9, 0x18001ded9\nmov     r15d, [rbp+47h+var_5C]                                         ; +0xdb, 0x18001dedb\ncmp     word ptr [rdx], 1                                              ; +0xdf, 0x18001dedf\njnz     short loc_18001DF3C                                            ; +0xe3, 0x18001dee3\nmov     eax, 0FFFFh                                                    ; +0xe5, 0x18001dee5\ncmp     [rdx+2], ax                                                    ; +0xea, 0x18001deea\njnz     short loc_18001DF3C                                            ; +0xee, 0x18001deee\ntest    rdx, rdx                                                       ; +0xf0, 0x18001def0\njz      short loc_18001DF3C                                            ; +0xf3, 0x18001def3\nor      [rdx+8], r15d                                                  ; +0xf5, 0x18001def5\nmov     eax, [rbp+47h+var_64]                                          ; +0xf9, 0x18001def9\nor      [rdx+0Ch], eax                                                 ; +0xfc, 0x18001defc\nmov     ecx, [rdx+8]                                                   ; +0xff, 0x18001deff\nand     ecx, [rbp+47h+var_58]                                          ; +0x102, 0x18001df02\nmov     eax, [rdx+0Ch]                                                 ; +0x105, 0x18001df05\nmov     [rdx+8], ecx                                                   ; +0x108, 0x18001df08\nand     eax, [rbp+47h+var_60]                                          ; +0x10b, 0x18001df0b\nmov     [rdx+0Ch], eax                                                 ; +0x10e, 0x18001df0e\ncmp     [rbp+47h+var_68], 0                                            ; +0x111, 0x18001df11\njz      short loc_18001DF1E                                            ; +0x115, 0x18001df15\nbts     eax, 0Bh                                                       ; +0x117, 0x18001df17\nmov     [rdx+0Ch], eax                                                 ; +0x11b, 0x18001df1b\nmovzx   eax, word ptr [rbp+47h+var_20]                                 ; +0x11e, 0x18001df1e\ncmp     ax, 0FFFFh                                                     ; +0x122, 0x18001df22\njz      short loc_18001DF2C                                            ; +0x126, 0x18001df26\nmov     [rdx+12h], ax                                                  ; +0x128, 0x18001df28\nmovzx   eax, word ptr [rbp+47h+var_20+2]                               ; +0x12c, 0x18001df2c\ncmp     ax, 0FFFFh                                                     ; +0x130, 0x18001df30\njz      short loc_18001DF7D                                            ; +0x134, 0x18001df34\nmov     [rdx+14h], ax                                                  ; +0x136, 0x18001df36\njmp     short loc_18001DF7D                                            ; +0x13a, 0x18001df3a\nor      [rdx+4], r15d                                                  ; +0x13c, 0x18001df3c\nmov     eax, [rbp+47h+var_64]                                          ; +0x140, 0x18001df40\nor      [rdx], eax                                                     ; +0x143, 0x18001df43\nmov     ecx, [rdx+4]                                                   ; +0x145, 0x18001df45\nand     ecx, [rbp+47h+var_58]                                          ; +0x148, 0x18001df48\nmov     eax, [rdx]                                                     ; +0x14b, 0x18001df4b\nmov     [rdx+4], ecx                                                   ; +0x14d, 0x18001df4d\nand     eax, [rbp+47h+var_60]                                          ; +0x150, 0x18001df50\nmov     [rdx], eax                                                     ; +0x153, 0x18001df53\ncmp     [rbp+47h+var_68], 0                                            ; +0x155, 0x18001df55\njz      short loc_18001DF61                                            ; +0x159, 0x18001df59\nbts     eax, 0Bh                                                       ; +0x15b, 0x18001df5b\nmov     [rdx], eax                                                     ; +0x15f, 0x18001df5f\nmovzx   eax, word ptr [rbp+47h+var_20]                                 ; +0x161, 0x18001df61\ncmp     ax, 0FFFFh                                                     ; +0x165, 0x18001df65\njz      short loc_18001DF6F                                            ; +0x169, 0x18001df69\nmov     [rdx+0Ah], ax                                                  ; +0x16b, 0x18001df6b\nmovzx   eax, word ptr [rbp+47h+var_20+2]                               ; +0x16f, 0x18001df6f\ncmp     ax, 0FFFFh                                                     ; +0x173, 0x18001df73\njz      short loc_18001DF7D                                            ; +0x177, 0x18001df77\nmov     [rdx+0Ch], ax                                                  ; +0x179, 0x18001df79\nmov     r8, [rbp+47h+hWndParent]; hWndParent                           ; +0x17d, 0x18001df7d\nlea     rax, [rbp+47h+var_80]                                          ; +0x181, 0x18001df81\nmov     rcx, [rbp+47h+hInstance]; hInstance                            ; +0x185, 0x18001df85\nlea     r9, ?DlgProc@CWin32InputBox@@CA_JPEAUHWND__@@I_K_J@Z; lpDialogFunc ; +0x189, 0x18001df89\nmov     [rbp+47h+var_90], rax                                          ; +0x190, 0x18001df90\nlea     rax, [rbp+47h+var_90]                                          ; +0x194, 0x18001df94\nmov     [rsp+0C0h+dwInitParam], rax; dwInitParam                       ; +0x198, 0x18001df98\ncall    cs:DialogBoxIndirectParamW                                     ; +0x19d, 0x18001df9d\nlea     r11, [rsp+0C0h+var_10]                                         ; +0x1a3, 0x18001dfa3\nmov     rbx, [r11+20h]                                                 ; +0x1ab, 0x18001dfab\nmov     rsi, [r11+28h]                                                 ; +0x1af, 0x18001dfaf\nmov     rdi, [r11+30h]                                                 ; +0x1b3, 0x18001dfb3\nmov     r12, [r11+38h]                                                 ; +0x1b7, 0x18001dfb7\nmov     rsp, r11                                                       ; +0x1bb, 0x18001dfbb\npop     r15                                                            ; +0x1be, 0x18001dfbe\npop     r14                                                            ; +0x1c0, 0x18001dfc0\npop     rbp                                                            ; +0x1c2, 0x18001dfc2\nretn                                                                   ; +0x1c3, 0x18001dfc3", "xrefs": ["cocos2d::extension::CCEditBoxImplWin::openKeyboard @ 0x1800118dd", "<???> @ 0x180032408", "<???> @ 0x18004d01c"], "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"}