Function at 0x40366c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x7c
sub eax, 3
push ebx
push esi
push edi
je 0x4037d0
dec eax
dec eax
je 0x4037d0
sub eax, 0x10b
jne 0x4038a4
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x40c338
cmp dword [ebp + 0x14], ebx
je 0x4036fe
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call fcn.004024ba
push 8
call fcn.0040261b
push 8
mov dword [ebp + 8], eax
call fcn.00402636
mov ecx, dword [ebp - 0xc]
push ebx
push dword [0x40fe30]
sub ecx, eax
push 0x3e2
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 8]
push ecx
push eax
push 0x54020014
push edi
push str.scrollbar
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x3e4
push esi
mov byte [ebp - 0x7c], bl
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jbe 0x403738
push esi
call fcn.004035cb
push 0x40fcf0
push 0x50
lea eax, [ebp - 0x7c]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
push str.DlgPos
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x7530
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], ebx
je 0x403788
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x7c]
push str._d__d__d__d
push eax
call fcn.00401597
add esp, 0x18
jmp 0x4037a1
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x7c]
push str._d__d
push eax
call fcn.00401597
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00402531
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4038a4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4038a4
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x4038a4
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x3e4
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jbe 0x4038a4
push 0x40fcf0
push 0x50
lea eax, [ebp - 0x7c]
push eax
push 0x40c338
lea eax, [ebp - 0x2c]
push eax
mov esi, str.DlgPos
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x7c]
push str._d__d__d__d
push eax
mov dword [ebp - 8], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
call fcn.00401597
add esp, 0x18
cmp dword [ebp + 0x18], ebx
je 0x4038a4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x403896
cmp edi, dword [ebp - 4]
jne 0x403896
cmp edx, dword [ebp + 8]
jne 0x403896
cmp ecx, dword [ebp - 8]
je 0x4038a4
push ecx
push edx
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0040128a
pop edi
pop esi
pop ebx
leave
ret 0x14