Function at 0x401e50
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x84
sub eax, 3
push esi
je 0x40203c
sub eax, 2
je 0x40203c
sub eax, 0x10b
jne 0x402032
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x94]
push edi
test ebx, ebx
je 0x401f24
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
movzx ecx, word [esp + 0x2c]
movzx edx, word [esp + 0x28]
movzx eax, word [0x40b094]
shl ecx, 0x10
or ecx, edx
push ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_SetPropA]
mov esi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
push 4
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
and eax, 0xffff
push eax
push 8
call edi
push 8
mov dword [esp + 0x1c], eax
call esi
sar eax, 0x10
push eax
push 8
call edi
mov ecx, dword [0x40b19c]
mov edx, dword [esp + 0x2c]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push 0x3e2
push ebp
push eax
push ecx
sub edx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
push edx
sub eax, ecx
push eax
push 0x54020014
push 0x40b1c4
push str.scrollbar
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x14
lea ecx, [esp + 0x34]
push ecx
push 0x3e4
push ebp
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jbe 0x40202f
lea edx, [esp + 0x20]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, 0x7530
push 0x40b098
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0x50
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x24], eax
push 0x40b1c4
lea eax, [esp + 0x40]
push eax
push str.DlgPos
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x401fd9
lea eax, [esp + 0x1c]
test ebx, ebx
je 0x401fc1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push str._d__d__d__d
push edx
call fcn.004014a0
add esp, 0x18
jmp 0x401fd9
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push str._d__d
push edx
call fcn.004014a0
add esp, 0x10
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov esi, eax
call ebx
push 4
mov edi, eax
call ebx
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea edx, [eax + ecx]
cmp edx, esi
jge 0x402008
mov edx, dword [esp + 0x1c]
add eax, edx
cmp eax, edi
jl 0x40201e
sub edi, dword [esp + 0x10]
sub esi, ebx
sar esi, 1
sar edi, 1
mov ecx, esi
mov edx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
push 0
push eax
push ebx
push edx
push ecx
push ebp
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x84
ret 0x10
mov esi, dword [esp + 0x8c]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x402032
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x402032
push 0x14
lea ecx, [esp + 0x28]
push ecx
push 0x3e4
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jbe 0x402032
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
sub dword [esp + 0x20], ecx
push 0x40b098
xor eax, eax
push 0x50
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
push 0x40b1c4
lea eax, [esp + 0x34]
push eax
push str.DlgPos
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x4020e9
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push str._d__d__d__d
push edx
call fcn.004014a0
add esp, 0x18
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp eax, dword [esp + 8]
jne 0x402115
cmp esi, dword [esp + 0x10]
jne 0x402115
cmp edx, dword [esp + 0xc]
jne 0x402115
cmp ecx, dword [esp + 4]
je 0x402032
push ecx
push edx
push esi
push eax
lea eax, [esp + 0x34]
push eax
push str.DlgPos
call fcn.00401220
pop esi
add esp, 0x84
ret 0x10