Function at 0x50d590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52de68
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x559024]
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, 0x53b7a8
mov dword [ebp - 0x44], edi
call fcn.00466b30
push edi
call fcn.0050d980
push esi
call fcn.0050e350
cmp byte [esi + 0x3ce4], 0
je 0x50d628
mov ecx, dword [esi + 0x288]
lea eax, [esi + 0x234]
test ecx, ecx
jle 0x50d61d
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x50d61d
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.004fdeb0
mov dword [esi + 0x27c], edi
jmp 0x50d75a
mov ecx, dword [esi + 0xd8]
lea eax, [esi + 0x84]
test ecx, ecx
jle 0x50d65d
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x50d65d
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.004fdeb0
mov ecx, dword [esi + 0x168]
lea eax, [esi + 0x114]
test ecx, ecx
jle 0x50d692
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x50d692
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.004fdeb0
mov ecx, dword [esi + 0x1f8]
lea eax, [esi + 0x1a4]
test ecx, ecx
jle 0x50d6c7
mov ebx, dword [eax + 0x58]
test ebx, ebx
jle 0x50d6c7
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.004fdeb0
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 + 0x3ce8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x50d74b
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 0x50d74b
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x3cf0], edx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
mov dword [esi + 0x3cf4], eax
mov dword [esi + 0x3cf8], ecx
mov dword [esi + 0x3cfc], edx
mov eax, dword [esi + 0x3ce8]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.PrntPreView_InfoWnd
lea eax, [esi + 0x4c]
call fcn.004fcf00
mov eax, dword [esi + 0x4c]
xor ebx, ebx
cmp eax, ebx
jne 0x50d775
mov eax, 0x538640
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x44], ebx
jle 0x50d7a3
cmp eax, ebx
je 0x50d7a3
cmp word [eax], bx
je 0x50d7a3
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
jne 0x50d792
mov ecx, 0x538640
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 0x50d7af
mov ecx, 0x538640
mov dword [ebp - 0x38], ebx
cmp dword [esi + 0x44], ebx
jle 0x50d7dd
cmp ecx, ebx
je 0x50d7dd
cmp word [ecx], bx
je 0x50d7dd
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x50d7cc
mov eax, 0x538640
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.004fcf00
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x50d7f8
mov ecx, 0x538640
mov dword [ebp - 0x34], ebx
cmp dword [esi + 0x44], ebx
jle 0x50d826
cmp ecx, ebx
je 0x50d826
cmp word [ecx], bx
je 0x50d826
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x50d815
mov eax, 0x538640
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 0x50d832
mov ecx, 0x538640
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x44], ebx
jle 0x50d860
cmp ecx, ebx
je 0x50d860
cmp word [ecx], bx
je 0x50d860
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x50d84f
mov eax, 0x538640
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 0x50d86c
mov ecx, 0x538640
xor edi, edi
cmp dword [esi + 0x44], ebx
jle 0x50d899
test ecx, ecx
je 0x50d899
cmp word [ecx], bx
je 0x50d899
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x50d888
mov eax, 0x538640
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 0x50d8a5
mov ecx, 0x538640
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x50d8d2
test ecx, ecx
je 0x50d8d2
cmp word [ecx], bx
je 0x50d8d2
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x50d8c1
mov eax, 0x538640
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, 0x55a400
call fcn.00467b90
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x9dc], ecx
cmp eax, ecx
jne 0x50d8fc
mov eax, 0x538640
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.00433520
mov eax, dword [esi + 0x3d04]
test eax, eax
je 0x50d946
cmp byte [esi + 0x3ce4], 0
jne 0x50d946
mov edx, dword [eax + 0x20]
push esi
call fcn.0050d2f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x50d95d
push eax
call fcn.005134a7
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.00513498
mov esp, ebp
pop ebp
ret 4