; ; CWin32InputBox::InputBoxEx from 0x18001dfd0 to 0x18001e11e (334 bytes) ; ; 4 xrefs: ; > @ 0x18002fa3c ; > @ 0x18002fa50 ; > @ 0x18002fdf8 ; > @ 0x18004b0c4 ; ; 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 ; push rbx ; +0x0, 0x18001dfd0 sub rsp, 40h ; +0x2, 0x18001dfd2 cmp qword ptr [rcx+40h], 0 ; +0x6, 0x18001dfd6 mov rbx, rcx ; +0xb, 0x18001dfdb jnz short loc_18001DFF3 ; +0xe, 0x18001dfde mov ecx, 57h ; 'W'; dwErrCode ; +0x10, 0x18001dfe0 call cs:SetLastError ; +0x15, 0x18001dfe5 xor eax, eax ; +0x1b, 0x18001dfeb add rsp, 40h ; +0x1d, 0x18001dfed pop rbx ; +0x21, 0x18001dff1 retn ; +0x22, 0x18001dff2 mov rax, [rcx+10h] ; +0x23, 0x18001dff3 mov [rsp+48h+arg_8], rdi ; +0x27, 0x18001dff7 test rax, rax ; +0x2c, 0x18001dffc jz short loc_18001E03D ; +0x2f, 0x18001dfff mov rdi, [rcx+58h] ; +0x31, 0x18001e001 mov r8d, 5; lpType ; +0x35, 0x18001e005 mov rcx, rdi; hModule ; +0x3b, 0x18001e00b movzx edx, ax; lpName ; +0x3e, 0x18001e00e call cs:FindResourceW ; +0x41, 0x18001e011 test rax, rax ; +0x47, 0x18001e017 jz short loc_18001E030 ; +0x4a, 0x18001e01a mov rdx, rax; hResInfo ; +0x4c, 0x18001e01c mov rcx, rdi; hModule ; +0x4f, 0x18001e01f call cs:LoadResource ; +0x52, 0x18001e022 mov rdx, rax ; +0x58, 0x18001e028 test rax, rax ; +0x5b, 0x18001e02b jnz short loc_18001E04D ; +0x5e, 0x18001e02e mov rdi, [rsp+48h+arg_8] ; +0x60, 0x18001e030 xor eax, eax ; +0x65, 0x18001e035 add rsp, 40h ; +0x67, 0x18001e037 pop rbx ; +0x6b, 0x18001e03b retn ; +0x6c, 0x18001e03c mov rax, [rcx+8] ; +0x6d, 0x18001e03d mov rdx, [rsp+48h+arg_0] ; +0x71, 0x18001e041 test rax, rax ; +0x76, 0x18001e046 cmovnz rdx, rax; hDialogTemplate ; +0x79, 0x18001e049 cmp word ptr [rdx], 1 ; +0x7d, 0x18001e04d jnz short loc_18001E0AC ; +0x81, 0x18001e051 mov eax, 0FFFFh ; +0x83, 0x18001e053 cmp [rdx+2], ax ; +0x88, 0x18001e058 jnz short loc_18001E0AC ; +0x8c, 0x18001e05c test rdx, rdx ; +0x8e, 0x18001e05e jz short loc_18001E0AC ; +0x91, 0x18001e061 mov eax, [rdx+8] ; +0x93, 0x18001e063 or eax, [rbx+24h] ; +0x96, 0x18001e066 mov ecx, [rdx+0Ch] ; +0x99, 0x18001e069 mov [rdx+8], eax ; +0x9c, 0x18001e06c or ecx, [rbx+1Ch] ; +0x9f, 0x18001e06f mov [rdx+0Ch], ecx ; +0xa2, 0x18001e072 and eax, [rbx+28h] ; +0xa5, 0x18001e075 mov [rdx+8], eax ; +0xa8, 0x18001e078 and ecx, [rbx+20h] ; +0xab, 0x18001e07b mov [rdx+0Ch], ecx ; +0xae, 0x18001e07e cmp byte ptr [rbx+18h], 0 ; +0xb1, 0x18001e081 jz short loc_18001E08E ; +0xb5, 0x18001e085 bts ecx, 0Bh ; +0xb7, 0x18001e087 mov [rdx+0Ch], ecx ; +0xbb, 0x18001e08b movzx eax, word ptr [rbx+60h] ; +0xbe, 0x18001e08e cmp ax, 0FFFFh ; +0xc2, 0x18001e092 jz short loc_18001E09C ; +0xc6, 0x18001e096 mov [rdx+12h], ax ; +0xc8, 0x18001e098 movzx eax, word ptr [rbx+62h] ; +0xcc, 0x18001e09c cmp ax, 0FFFFh ; +0xd0, 0x18001e0a0 jz short loc_18001E0EF ; +0xd4, 0x18001e0a4 mov [rdx+14h], ax ; +0xd6, 0x18001e0a6 jmp short loc_18001E0EF ; +0xda, 0x18001e0aa mov ecx, [rdx+4] ; +0xdc, 0x18001e0ac or ecx, [rbx+24h] ; +0xdf, 0x18001e0af mov [rdx+4], ecx ; +0xe2, 0x18001e0b2 mov eax, [rbx+1Ch] ; +0xe5, 0x18001e0b5 or [rdx], eax ; +0xe8, 0x18001e0b8 and ecx, [rbx+28h] ; +0xea, 0x18001e0ba mov eax, [rdx] ; +0xed, 0x18001e0bd mov [rdx+4], ecx ; +0xef, 0x18001e0bf and eax, [rbx+20h] ; +0xf2, 0x18001e0c2 mov [rdx], eax ; +0xf5, 0x18001e0c5 cmp byte ptr [rbx+18h], 0 ; +0xf7, 0x18001e0c7 jz short loc_18001E0D3 ; +0xfb, 0x18001e0cb bts eax, 0Bh ; +0xfd, 0x18001e0cd mov [rdx], eax ; +0x101, 0x18001e0d1 movzx eax, word ptr [rbx+60h] ; +0x103, 0x18001e0d3 cmp ax, 0FFFFh ; +0x107, 0x18001e0d7 jz short loc_18001E0E1 ; +0x10b, 0x18001e0db mov [rdx+0Ah], ax ; +0x10d, 0x18001e0dd movzx eax, word ptr [rbx+62h] ; +0x111, 0x18001e0e1 cmp ax, 0FFFFh ; +0x115, 0x18001e0e5 jz short loc_18001E0EF ; +0x119, 0x18001e0e9 mov [rdx+0Ch], ax ; +0x11b, 0x18001e0eb mov r8, [rbx+50h]; hWndParent ; +0x11f, 0x18001e0ef lea rax, [rsp+48h+var_18] ; +0x123, 0x18001e0f3 mov rcx, [rbx+58h]; hInstance ; +0x128, 0x18001e0f8 lea r9, ?DlgProc@CWin32InputBox@@CA_JPEAUHWND__@@I_K_J@Z; lpDialogFunc ; +0x12c, 0x18001e0fc mov [rsp+48h+dwInitParam], rax; dwInitParam ; +0x133, 0x18001e103 mov [rsp+48h+var_18], rbx ; +0x138, 0x18001e108 call cs:DialogBoxIndirectParamW ; +0x13d, 0x18001e10d mov rdi, [rsp+48h+arg_8] ; +0x143, 0x18001e113 add rsp, 40h ; +0x148, 0x18001e118 pop rbx ; +0x14c, 0x18001e11c retn ; +0x14d, 0x18001e11d