; ; CWin32InputBox::InputBox from 0x18001de00 to 0x18001dfc4 (452 bytes) ; ; 3 xrefs: ; > cocos2d::extension::CCEditBoxImplWin::openKeyboard @ 0x1800118dd ; > @ 0x180032408 ; > @ 0x18004d01c ; ; 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 12:15:44 +0000 ; mov [rsp-8+arg_0], rbx ; +0x0, 0x18001de00 mov [rsp-8+arg_8], rsi ; +0x5, 0x18001de05 mov [rsp-8+arg_10], rdi ; +0xa, 0x18001de0a mov [rsp-8+arg_18], r12 ; +0xf, 0x18001de0f push rbp ; +0x14, 0x18001de14 push r14 ; +0x15, 0x18001de15 push r15 ; +0x17, 0x18001de17 lea rbp, [rsp-37h] ; +0x19, 0x18001de19 sub rsp, 0B0h ; +0x1e, 0x18001de1e mov rbx, rcx ; +0x25, 0x18001de25 mov [rbp+47h+var_80], 0 ; +0x28, 0x18001de28 xor r15d, r15d ; +0x2c, 0x18001de2c xor ecx, ecx; lpModuleName ; +0x2f, 0x18001de2f mov [rbp+47h+hWndParent], r15 ; +0x31, 0x18001de31 mov esi, r9d ; +0x35, 0x18001de35 mov [rbp+47h+var_70], r15 ; +0x38, 0x18001de38 mov r14, r8 ; +0x3c, 0x18001de3c mov rdi, rdx ; +0x3f, 0x18001de3f call cs:GetModuleHandleW ; +0x42, 0x18001de42 mov [rbp+47h+var_68], 1 ; +0x48, 0x18001de48 mov r12, rax ; +0x4c, 0x18001de4c mov [rbp+47h+hInstance], rax ; +0x4f, 0x18001de4f lea rdx, unk_180049094 ; +0x53, 0x18001de53 movzx eax, [rbp+47h+arg_20] ; +0x5a, 0x18001de5a mov [rbp+47h+var_80], al ; +0x5e, 0x18001de5e mov [rbp+47h+var_78], rdx ; +0x61, 0x18001de61 mov [rbp+47h+var_64], r15d ; +0x65, 0x18001de65 mov [rbp+47h+var_5C], r15d ; +0x69, 0x18001de69 mov [rbp+47h+var_60], 0FFFFFFFFh ; +0x6d, 0x18001de6d mov [rbp+47h+var_58], 0FFFFFFFFh ; +0x74, 0x18001de74 mov [rbp+47h+var_20], 0FFFFFFFFh ; +0x7b, 0x18001de7b mov [rbp+47h+var_50], rbx ; +0x82, 0x18001de82 mov [rbp+47h+var_48], rdi ; +0x86, 0x18001de86 mov [rbp+47h+var_40], r14 ; +0x8a, 0x18001de8a mov [rbp+47h+var_38], esi ; +0x8e, 0x18001de8e test r14, r14 ; +0x91, 0x18001de91 jnz short loc_18001DEA9 ; +0x94, 0x18001de94 mov ecx, 57h ; 'W'; dwErrCode ; +0x96, 0x18001de96 call cs:SetLastError ; +0x9b, 0x18001de9b mov rax, r15 ; +0xa1, 0x18001dea1 jmp loc_18001DFA3 ; +0xa4, 0x18001dea4 cmp [rbp+47h+var_70], r15 ; +0xa9, 0x18001dea9 jz short loc_18001DEDF ; +0xad, 0x18001dead movzx edx, word ptr [rbp+47h+var_70]; lpName ; +0xaf, 0x18001deaf mov r8d, 5; lpType ; +0xb3, 0x18001deb3 mov rcx, r12; hModule ; +0xb9, 0x18001deb9 call cs:FindResourceW ; +0xbc, 0x18001debc test rax, rax ; +0xc2, 0x18001dec2 jz short loc_18001DEA1 ; +0xc5, 0x18001dec5 mov rdx, rax; hResInfo ; +0xc7, 0x18001dec7 mov rcx, r12; hModule ; +0xca, 0x18001deca call cs:LoadResource ; +0xcd, 0x18001decd mov rdx, rax; hDialogTemplate ; +0xd3, 0x18001ded3 test rax, rax ; +0xd6, 0x18001ded6 jz short loc_18001DEA1 ; +0xd9, 0x18001ded9 mov r15d, [rbp+47h+var_5C] ; +0xdb, 0x18001dedb cmp word ptr [rdx], 1 ; +0xdf, 0x18001dedf jnz short loc_18001DF3C ; +0xe3, 0x18001dee3 mov eax, 0FFFFh ; +0xe5, 0x18001dee5 cmp [rdx+2], ax ; +0xea, 0x18001deea jnz short loc_18001DF3C ; +0xee, 0x18001deee test rdx, rdx ; +0xf0, 0x18001def0 jz short loc_18001DF3C ; +0xf3, 0x18001def3 or [rdx+8], r15d ; +0xf5, 0x18001def5 mov eax, [rbp+47h+var_64] ; +0xf9, 0x18001def9 or [rdx+0Ch], eax ; +0xfc, 0x18001defc mov ecx, [rdx+8] ; +0xff, 0x18001deff and ecx, [rbp+47h+var_58] ; +0x102, 0x18001df02 mov eax, [rdx+0Ch] ; +0x105, 0x18001df05 mov [rdx+8], ecx ; +0x108, 0x18001df08 and eax, [rbp+47h+var_60] ; +0x10b, 0x18001df0b mov [rdx+0Ch], eax ; +0x10e, 0x18001df0e cmp [rbp+47h+var_68], 0 ; +0x111, 0x18001df11 jz short loc_18001DF1E ; +0x115, 0x18001df15 bts eax, 0Bh ; +0x117, 0x18001df17 mov [rdx+0Ch], eax ; +0x11b, 0x18001df1b movzx eax, word ptr [rbp+47h+var_20] ; +0x11e, 0x18001df1e cmp ax, 0FFFFh ; +0x122, 0x18001df22 jz short loc_18001DF2C ; +0x126, 0x18001df26 mov [rdx+12h], ax ; +0x128, 0x18001df28 movzx eax, word ptr [rbp+47h+var_20+2] ; +0x12c, 0x18001df2c cmp ax, 0FFFFh ; +0x130, 0x18001df30 jz short loc_18001DF7D ; +0x134, 0x18001df34 mov [rdx+14h], ax ; +0x136, 0x18001df36 jmp short loc_18001DF7D ; +0x13a, 0x18001df3a or [rdx+4], r15d ; +0x13c, 0x18001df3c mov eax, [rbp+47h+var_64] ; +0x140, 0x18001df40 or [rdx], eax ; +0x143, 0x18001df43 mov ecx, [rdx+4] ; +0x145, 0x18001df45 and ecx, [rbp+47h+var_58] ; +0x148, 0x18001df48 mov eax, [rdx] ; +0x14b, 0x18001df4b mov [rdx+4], ecx ; +0x14d, 0x18001df4d and eax, [rbp+47h+var_60] ; +0x150, 0x18001df50 mov [rdx], eax ; +0x153, 0x18001df53 cmp [rbp+47h+var_68], 0 ; +0x155, 0x18001df55 jz short loc_18001DF61 ; +0x159, 0x18001df59 bts eax, 0Bh ; +0x15b, 0x18001df5b mov [rdx], eax ; +0x15f, 0x18001df5f movzx eax, word ptr [rbp+47h+var_20] ; +0x161, 0x18001df61 cmp ax, 0FFFFh ; +0x165, 0x18001df65 jz short loc_18001DF6F ; +0x169, 0x18001df69 mov [rdx+0Ah], ax ; +0x16b, 0x18001df6b movzx eax, word ptr [rbp+47h+var_20+2] ; +0x16f, 0x18001df6f cmp ax, 0FFFFh ; +0x173, 0x18001df73 jz short loc_18001DF7D ; +0x177, 0x18001df77 mov [rdx+0Ch], ax ; +0x179, 0x18001df79 mov r8, [rbp+47h+hWndParent]; hWndParent ; +0x17d, 0x18001df7d lea rax, [rbp+47h+var_80] ; +0x181, 0x18001df81 mov rcx, [rbp+47h+hInstance]; hInstance ; +0x185, 0x18001df85 lea r9, ?DlgProc@CWin32InputBox@@CA_JPEAUHWND__@@I_K_J@Z; lpDialogFunc ; +0x189, 0x18001df89 mov [rbp+47h+var_90], rax ; +0x190, 0x18001df90 lea rax, [rbp+47h+var_90] ; +0x194, 0x18001df94 mov [rsp+0C0h+dwInitParam], rax; dwInitParam ; +0x198, 0x18001df98 call cs:DialogBoxIndirectParamW ; +0x19d, 0x18001df9d lea r11, [rsp+0C0h+var_10] ; +0x1a3, 0x18001dfa3 mov rbx, [r11+20h] ; +0x1ab, 0x18001dfab mov rsi, [r11+28h] ; +0x1af, 0x18001dfaf mov rdi, [r11+30h] ; +0x1b3, 0x18001dfb3 mov r12, [r11+38h] ; +0x1b7, 0x18001dfb7 mov rsp, r11 ; +0x1bb, 0x18001dfbb pop r15 ; +0x1be, 0x18001dfbe pop r14 ; +0x1c0, 0x18001dfc0 pop rbp ; +0x1c2, 0x18001dfc2 retn ; +0x1c3, 0x18001dfc3