Function at 0x40314b
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x84
push ebx
push esi
push edi
sub eax, 3
je 0x4032e3
dec eax
sub eax, 1
je 0x4032e3
sub eax, 0x10b
jne 0x4033d9
mov edi, dword [esp + 0xa0]
xor ebx, ebx
mov esi, dword [esp + 0x94]
push ebp
mov ebp, 0x4284f0
test edi, edi
je 0x4031f4
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.00406eee
push 8
call fcn.004034f3
push 8
mov dword [esp + 0x14], eax
call fcn.0040350c
mov ecx, dword [esp + 0x2c]
push ebx
push dword [0x430230]
sub ecx, eax
mov dword [esp + 0x24], eax
push 0x3e2
push esi
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x28]
push ecx
push eax
push 0x54020014
push ebp
push str.scrollbar
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x14
lea eax, [esp + 0x34]
mov byte [esp + 0x48], bl
push eax
push 0x3e4
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x403232
push esi
call fcn.00406be3
push 0x430238
push 0x50
lea eax, [esp + 0x4c]
push eax
push ebp
lea eax, [esp + 0x40]
push eax
push str.DlgPos
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x7530
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
pop ebp
test edi, edi
je 0x403290
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push str._d__d__d__d
push eax
call fcn.00405866
add esp, 0x18
jmp 0x4032ac
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push 0x428514
push eax
call fcn.00405866
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00405120
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4033d9
mov esi, dword [esp + 0x94]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4033d9
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x4033d9
push 0x14
lea eax, [esp + 0x30]
push eax
push 0x3e4
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x4033d9
push 0x430238
push 0x50
lea eax, [esp + 0x48]
mov edi, str.DlgPos
push eax
push 0x4284f0
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
sub dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
sub dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ebx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ebx
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x20], ebx
push str._d__d__d__d
push eax
call fcn.00405866
add esp, 0x18
cmp dword [esp + 0xa4], ebx
je 0x4033d9
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp esi, dword [esp + 0x10]
jne 0x4033ca
cmp edx, dword [esp + 0x14]
jne 0x4033ca
cmp ecx, dword [esp + 0xc]
jne 0x4033ca
cmp eax, dword [esp + 0x18]
je 0x4033d9
push eax
push ecx
push edx
push esi
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00408411
pop edi
pop esi
pop ebx
add esp, 0x84
ret 0x14