Function at 0x5188f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539e28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x28], eax
lea eax, [esi + 0x3c]
mov edi, edx
push eax
mov ecx, 0x554c58
mov dword [ebp - 0x44], edi
call fcn.00470370
push edi
call fcn.00518ce0
push esi
call fcn.005196b0
cmp byte [esi + 0x3e14], 0
je 0x518988
mov ecx, dword [esi + 0x288]
lea eax, [esi + 0x234]
test ecx, ecx
jle 0x51897d
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x51897d
mov edx, dword [eax + 0x4c]
push ecx
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [ebp - 0x28]
push edx
push edi
push ecx
push eax
xor eax, eax
mov edx, 0x198e
call fcn.00509070
mov dword [esi + 0x27c], edi
jmp 0x518aba
mov ecx, dword [esi + 0xd8]
lea eax, [esi + 0x84]
test ecx, ecx
jle 0x5189bd
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x5189bd
mov edx, dword [eax + 0x50]
push ecx
mov ecx, dword [eax + 0x4c]
push edx
mov edx, dword [ebp - 0x28]
push ecx
push edi
push edx
push eax
mov eax, 0x10000000
mov edx, 0x198f
call fcn.00509070
mov ecx, dword [esi + 0x168]
lea eax, [esi + 0x114]
test ecx, ecx
jle 0x5189f2
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x5189f2
mov edx, dword [eax + 0x4c]
push ecx
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [ebp - 0x28]
push edx
push edi
push ecx
push eax
mov eax, 0x10000000
mov edx, 0x19a1
call fcn.00509070
mov ecx, dword [esi + 0x1f8]
lea eax, [esi + 0x1a4]
test ecx, ecx
jle 0x518a27
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x518a27
mov edx, dword [eax + 0x50]
push ecx
mov ecx, dword [eax + 0x4c]
push edx
mov edx, dword [ebp - 0x28]
push ecx
push edi
push edx
push eax
mov eax, 0x10000100
mov edx, 0x19a2
call fcn.00509070
mov eax, dword [esi + 0x1b4]
push 1
push 1
push 1
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50800006
call dword [sym.imp.COMCTL32.dll_CreateUpDownControl]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [esi + 0x3e18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x518aab
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x10]
push ecx
push eax
mov dword [ebp - 0x40], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x518aab
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x3e20], edx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
mov dword [esi + 0x3e24], eax
mov dword [esi + 0x3e28], ecx
mov dword [esi + 0x3e2c], edx
mov eax, dword [esi + 0x3e18]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.PrntPreView_InfoWnd
lea eax, [esi + 0x4c]
call fcn.005080c0
mov eax, dword [esi + 0x4c]
xor ebx, ebx
cmp eax, ebx
jne 0x518ad5
mov eax, 0x54ee24
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x44], ebx
jle 0x518b03
cmp eax, ebx
je 0x518b03
cmp word [eax], bx
je 0x518b03
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
jne 0x518af2
mov ecx, 0x54ee24
push ecx
push ebx
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518b0f
mov ecx, 0x54ee24
mov dword [ebp - 0x38], ebx
cmp dword [esi + 0x44], ebx
jle 0x518b3d
cmp ecx, ebx
je 0x518b3d
cmp word [ecx], bx
je 0x518b3d
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518b2c
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x38], eax
push str.PrntPreViewClose_BtnWnd
lea eax, [esi + 0x4c]
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x518b58
mov ecx, 0x54ee24
mov dword [ebp - 0x34], ebx
cmp dword [esi + 0x44], ebx
jle 0x518b86
cmp ecx, ebx
je 0x518b86
cmp word [ecx], bx
je 0x518b86
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518b75
mov eax, 0x54ee24
push eax
push ebx
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518b92
mov ecx, 0x54ee24
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x44], ebx
jle 0x518bc0
cmp ecx, ebx
je 0x518bc0
cmp word [ecx], bx
je 0x518bc0
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518baf
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x518bcc
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], ebx
jle 0x518bf9
test ecx, ecx
je 0x518bf9
cmp word [ecx], bx
je 0x518bf9
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518be8
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x518c05
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x518c32
test ecx, ecx
je 0x518c32
cmp word [ecx], bx
je 0x518c32
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518c21
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x80ff
lea ecx, [ebp - 0x50]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x9dc], ecx
cmp eax, ecx
jne 0x518c5c
mov eax, 0x54ee24
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x38]
push ebx
mov ebx, dword [ebp - 0x44]
push edi
push edx
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x28]
push 0x17d8
push eax
lea ecx, [esi + 0x81c]
mov eax, 0x10000000
call fcn.0043b8a0
mov eax, dword [esi + 0x3e34]
test eax, eax
je 0x518ca6
cmp byte [esi + 0x3e14], 0
jne 0x518ca6
mov edx, dword [eax + 0x20]
push esi
call fcn.00518650
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x518cbd
push eax
call fcn.0051ebab
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret 4