// // CWin32InputBox::DlgProc from 0x18001e2b0 to 0x18001e3fe (334 bytes) // // 5 xrefs: // > CWin32InputBox::InputBoxEx @ 0x18001ddd6 // > CWin32InputBox::InputBox @ 0x18001df89 // > @ 0x180032408 // > @ 0x18004d028 // > @ 0x18004d034 // // 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 // INT_PTR __fastcall CWin32InputBox::DlgProc(HWND a1, int a2, unsigned __int16 a3, CWin32InputBox *a4) { HWND *WindowLongPtrW; // r14 int v9; // ebx unsigned __int64 v10; // rax size_t v12; // r8 _BYTE *v13; // rdx const char *v14; // rdx __int128 v15; // [rsp+20h] [rbp-78h] BYREF __int64 v16; // [rsp+30h] [rbp-68h] __int64 v17; // [rsp+38h] [rbp-60h] char *Source[4]; // [rsp+48h] [rbp-50h] BYREF WindowLongPtrW = (HWND *)GetWindowLongPtrW(a1, -21); v9 = a2 - 272; if ( v9 ) { if ( v9 != 1 ) return 0; v10 = 0; while ( a3 != *(_QWORD *)((char *)&unk_180025A48 + v10) ) { v10 += 8LL; if ( v10 >= 0x10 ) return 0; } GetWindowTextA(WindowLongPtrW[1], *((LPSTR *)*WindowLongPtrW + 8), *((_DWORD *)*WindowLongPtrW + 18)); v12 = -1; v13 = *((_BYTE **)*WindowLongPtrW + 8); v15 = 0; v16 = 0; v17 = 0; do ++v12; while ( v13[v12] ); sub_180003520(&v15, v13, v12); CWin32InputBox::AnsiToUtf8(Source); memset(*((void **)*WindowLongPtrW + 8), 0, *((unsigned int *)*WindowLongPtrW + 18)); v14 = (const char *)Source; if ( Source[3] > (char *)0xF ) v14 = Source[0]; strncpy(*((char **)*WindowLongPtrW + 8), v14, (unsigned int)(*((_DWORD *)*WindowLongPtrW + 18) - 1)); EndDialog(a1, a3); sub_180003700((__int64)Source); } else { SetWindowLongPtrW(a1, -21, (LONG_PTR)a4); *(_QWORD *)(*(_QWORD *)a4 + 104LL) = a1; CWin32InputBox::InitDialog(a4); } return 1; }