Function at 0x5187d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539cc8
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, 0x554c48
mov dword [ebp - 0x44], edi
call fcn.00470260
push edi
call fcn.00518bc0
push esi
call fcn.00519590
cmp byte [esi + 0x3e14], 0
je 0x518868
mov ecx, dword [esi + 0x288]
lea eax, [esi + 0x234]
test ecx, ecx
jle 0x51885d
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x51885d
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 0x51899a
mov ecx, dword [esi + 0xd8]
lea eax, [esi + 0x84]
test ecx, ecx
jle 0x51889d
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x51889d
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 0x5188d2
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x5188d2
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 0x518907
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x518907
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 0x51898b
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 0x51898b
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 0x5189b5
mov eax, 0x54ee24
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x44], ebx
jle 0x5189e3
cmp eax, ebx
je 0x5189e3
cmp word [eax], bx
je 0x5189e3
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
jne 0x5189d2
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 0x5189ef
mov ecx, 0x54ee24
mov dword [ebp - 0x38], ebx
cmp dword [esi + 0x44], ebx
jle 0x518a1d
cmp ecx, ebx
je 0x518a1d
cmp word [ecx], bx
je 0x518a1d
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518a0c
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 0x518a38
mov ecx, 0x54ee24
mov dword [ebp - 0x34], ebx
cmp dword [esi + 0x44], ebx
jle 0x518a66
cmp ecx, ebx
je 0x518a66
cmp word [ecx], bx
je 0x518a66
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518a55
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 0x518a72
mov ecx, 0x54ee24
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x44], ebx
jle 0x518aa0
cmp ecx, ebx
je 0x518aa0
cmp word [ecx], bx
je 0x518aa0
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x518a8f
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 0x518aac
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 0x44], ebx
jle 0x518ad9
test ecx, ecx
je 0x518ad9
cmp word [ecx], bx
je 0x518ad9
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518ac8
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 0x518ae5
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x518b12
test ecx, ecx
je 0x518b12
cmp word [ecx], bx
je 0x518b12
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x518b01
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.00471380
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x9dc], ecx
cmp eax, ecx
jne 0x518b3c
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.0043b720
mov eax, dword [esi + 0x3e34]
test eax, eax
je 0x518b86
cmp byte [esi + 0x3e14], 0
jne 0x518b86
mov edx, dword [eax + 0x20]
push esi
call fcn.00518530
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x518b9d
push eax
call fcn.0051eadb
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.0051eacc
mov esp, ebp
pop ebp
ret 4