Function at 0x51f370
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x6770e8
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_TopTopHeight
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x5c], eax
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.0050f460
mov esi, eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_TopBotHeight
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
sub esi, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x60], esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x60]
cmp eax, dword [edx + 0x5c]
jg 0x51f3ed
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x5c]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x60], edx
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_LeftTopHeight
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 8]
mov dword [edx + 0x64], eax
mov ecx, dword [ebp - 8]
add ecx, 0x28
call fcn.00522e60
mov esi, eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_LeftBotHeight
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
sub esi, eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x68], esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0x68]
cmp ecx, dword [eax + 0x64]
jg 0x51f459
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x64]
add eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x68], eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_RightTopHeight
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x6c], eax
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00522e60
mov esi, eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_RightBotHeight
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
sub esi, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x70], esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x70]
cmp eax, dword [edx + 0x6c]
jg 0x51f4c5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x70], edx
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_BottomTopHeight
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 8]
mov dword [edx + 0x74], eax
mov ecx, dword [ebp - 8]
add ecx, 0x38
call fcn.0050f460
mov esi, eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push str.Dlg_BottomBotHeight
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
sub esi, eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x78], esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0x78]
cmp ecx, dword [eax + 0x74]
jg 0x51f531
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x74]
add eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x78], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4