// // CWin32InputBox::InitDialog from 0x18001dfd0 to 0x18001e2b0 (736 bytes) // // 3 xrefs: // > CWin32InputBox::DlgProc @ 0x18001e3dc // > @ 0x180032408 // > @ 0x18004d028 // // 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 // void __fastcall CWin32InputBox::InitDialog(CWin32InputBox *this) { unsigned __int64 i; // rbx size_t v3; // rbx size_t v4; // r8 _BYTE *v5; // rdx __int64 v6; // rax size_t v7; // r8 _BYTE *v8; // rdx __int64 v9; // rax HWND DlgItem; // r14 HWND v11; // rax __int64 v12; // rdx HWND v13; // rcx HWND v14; // rsi _BYTE *v15; // rdx __int64 v16; // rax __int128 v17; // [rsp+40h] [rbp-39h] BYREF __int64 v18; // [rsp+50h] [rbp-29h] __int64 v19; // [rsp+58h] [rbp-21h] struct tagRECT Rect; // [rsp+68h] [rbp-11h] BYREF struct tagRECT v21; // [rsp+78h] [rbp-1h] BYREF _BYTE v22[32]; // [rsp+88h] [rbp+Fh] BYREF struct tagRECT v23; // [rsp+A8h] [rbp+2Fh] BYREF for ( i = 0; i < 2; ++i ) SetDlgItemTextW(*(HWND *)(*(_QWORD *)this + 104LL), *(_DWORD *)((char *)&unk_180025A48 + i * 8), off_180025A58[i]); v3 = -1; v4 = -1; v5 = *(_BYTE **)(*(_QWORD *)this + 48LL); v17 = 0; v18 = 0; v19 = 0; do ++v4; while ( v5[v4] ); sub_180003520(&v17, v5, v4); v6 = CWin32InputBox::Utf8ToAnsi(v22); if ( *(_QWORD *)(v6 + 24) > 0xFu ) v6 = *(_QWORD *)v6; SetWindowTextA(*(HWND *)(*(_QWORD *)this + 104LL), (LPCSTR)v6); sub_180003700((__int64)v22); v7 = -1; v8 = *(_BYTE **)(*(_QWORD *)this + 56LL); v17 = 0; v18 = 0; v19 = 0; do ++v7; while ( v8[v7] ); sub_180003520(&v17, v8, v7); v9 = CWin32InputBox::Utf8ToAnsi(v22); if ( *(_QWORD *)(v9 + 24) > 0xFu ) v9 = *(_QWORD *)v9; SetDlgItemTextA(*(HWND *)(*(_QWORD *)this + 104LL), 1000, (LPCSTR)v9); sub_180003700((__int64)v22); DlgItem = GetDlgItem(*(HWND *)(*(_QWORD *)this + 104LL), 1001); v11 = GetDlgItem(*(HWND *)(*(_QWORD *)this + 104LL), 1002); v12 = *(_QWORD *)this; v13 = DlgItem; v14 = v11; if ( **(_BYTE **)this ) v13 = v11; *((_QWORD *)this + 1) = v13; v15 = *(_BYTE **)(v12 + 64); v17 = 0; v18 = 0; v19 = 0; do ++v3; while ( v15[v3] ); sub_180003520(&v17, v15, v3); v16 = CWin32InputBox::Utf8ToAnsi(v22); if ( *(_QWORD *)(v16 + 24) > 0xFu ) v16 = *(_QWORD *)v16; SetWindowTextA(*((HWND *)this + 1), (LPCSTR)v16); sub_180003700((__int64)v22); GetWindowRect(*(HWND *)(*(_QWORD *)this + 104LL), &Rect); GetWindowRect(DlgItem, &v21); GetWindowRect(v14, &v23); if ( **(_BYTE **)this ) { ShowWindow(DlgItem, 0); SetWindowPos(v14, (HWND)0xFFFFFFFFFFFFFFFELL, v21.left - Rect.left, 2 * v21.top - v21.bottom - Rect.top, 0, 0, 5u); SetWindowPos( *(HWND *)(*(_QWORD *)this + 104LL), (HWND)0xFFFFFFFFFFFFFFFELL, 0, 0, Rect.right - Rect.left, v21.top + Rect.bottom - v21.bottom - Rect.top, 2u); } else { SetWindowPos( *(HWND *)(*(_QWORD *)this + 104LL), (HWND)0xFFFFFFFFFFFFFFFELL, 0, 0, Rect.right - Rect.left, v21.bottom - Rect.top + 5, 2u); ShowWindow(v14, 0); } }