Function at 0x50d8e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a080
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x50d91f.2
movzx eax, byte [eax + 0x50e03c]
jmp dword [eax*4 + 0x50e034]
mov byte [ebp - 0x10], 1
jmp 0x50d930
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push ecx
lea eax, [edi + 0x33c]
push edx
mov ecx, 0x40
mov dword [ebp - 0x28], eax
call fcn.00511ef0
lea esi, [edi + 0x31c]
push esi
mov ecx, 0x554c58
mov dword [ebp - 0x30], esi
call fcn.00470370
lea eax, [edi + 0x32c]
push str.PrntSettingPage_ThmbPrevBtn
mov dword [ebp - 0x2c], eax
call fcn.005080c0
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
jne 0x50d986
mov eax, 0x54ee24
mov dword [ebp - 0x10], edi
cmp dword [esi + 8], edi
jle 0x50d9b8
cmp eax, edi
je 0x50d9b8
cmp word [eax], di
je 0x50d9b8
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x50d9a3
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push edi
push str.Width
push eax
call ebx
mov dword [ebp - 0x10], eax
jmp 0x50d9be
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x50d9ca
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [esi + 8], edi
jle 0x50d9f4
cmp ecx, edi
je 0x50d9f4
cmp word [ecx], di
je 0x50d9f4
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x50d9e7
mov eax, 0x54ee24
push eax
push edi
push str.Height
push ecx
call ebx
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x50da00
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [esi + 8], edi
jle 0x50da2a
cmp ecx, edi
je 0x50da2a
cmp word [ecx], di
je 0x50da2a
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x50da1d
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x50da36
mov ecx, 0x54ee24
mov dword [ebp - 0x24], edi
cmp dword [esi + 8], edi
jle 0x50da60
cmp ecx, edi
je 0x50da60
cmp word [ecx], di
je 0x50da60
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x50da53
mov eax, 0x54ee24
push eax
push edi
push str.LMargin
push ecx
call ebx
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x50da6c
mov ecx, 0x54ee24
cmp dword [esi + 8], edi
jle 0x50da92
cmp ecx, edi
je 0x50da92
cmp word [ecx], di
je 0x50da92
mov esi, dword [esi + 4]
mov eax, esi
cmp esi, edi
jne 0x50da88
mov eax, 0x54ee24
push eax
push edi
push str.RMargin
push ecx
call ebx
mov eax, dword [0x577698]
mov dword [ebp - 0x18], edi
cmp eax, edi
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
je 0x50dad2
push 0x80
push 0
push 0
push 0
push 0xc8c9
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50dac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 0x18], esi
jmp 0x50dadc
mov dword [0x57768c], 0x57
mov dword [ebp - 0x14], 0
test eax, eax
je 0x50db15
push 0x80
push 0
push 0
push 0
push 0xc8ca
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50db0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 0x14], esi
jmp 0x50db1f
mov dword [0x57768c], 0x57
xor ebx, ebx
test eax, eax
je 0x50db4f
push 0x80
push ebx
push ebx
push ebx
push 0xc8cb
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50db46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov ebx, esi
jmp 0x50db59
mov dword [0x57768c], 0x57
xor ecx, ecx
test eax, eax
je 0x50db84
push 0x80
push ecx
push ecx
push ecx
push 0xc8cc
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50db80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov ecx, esi
jmp 0x50db8e
mov dword [0x57768c], 0x57
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x538], eax
xor eax, eax
mov dword [esi + 0x58c], eax
mov dword [esi + 0x590], eax
mov dword [esi + 0x59c], eax
mov dword [esi + 0x5a0], eax
mov dword [esi + 0x540], ebx
mov ebx, dword [ebp - 0x1c]
push 0x5211
lea eax, [ebp - 0x3c]
mov dword [esi + 0x544], ecx
push eax
mov ecx, 0x5776a0
mov dword [esi + 0x53c], edx
mov byte [esi + 0x529], 1
mov dword [esi + 0x594], edi
mov dword [esi + 0x598], ebx
mov dword [esi + 0x5a4], edi
mov dword [esi + 0x5a8], ebx
call fcn.00471480
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x3c]
mov edx, esi
mov dword [edx + 0x524], ecx
cmp eax, ecx
jne 0x50dc1a
mov eax, 0x54ee24
mov edx, dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push edx
mov edx, dword [ebp - 0x24]
push edx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push 0x17f9
push eax
mov eax, 0x10000000
lea ecx, [esi + 0x364]
call fcn.0043b8a0
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x394]
test ecx, ecx
je 0x50dc5c
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50dc70
mov ecx, dword [eax + 0x390]
mov ecx, dword [ecx + 4]
mov dword [ecx + eax + 0x390], 6
mov edi, dword [ebp - 0x3c]
test edi, edi
jne 0x50dc7c
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x28]
call fcn.00511f60
mov eax, dword [ebp - 0x2c]
push str.PrntSettingPage_ThmbNextBtn
call fcn.005080c0
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x50dca2
mov eax, 0x54ee24
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
jle 0x50dcd4
cmp eax, ebx
je 0x50dcd4
cmp word [eax], bx
je 0x50dcd4
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x50dcbf
mov ecx, 0x54ee24
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push ebx
push str.Width
push eax
call edi
mov dword [ebp - 0x10], eax
jmp 0x50dcda
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x50dce6
mov ecx, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jle 0x50dd10
cmp ecx, ebx
je 0x50dd10
cmp word [ecx], bx
je 0x50dd10
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x50dd03
mov eax, 0x54ee24
push eax
push ebx
push str.Height
push ecx
call edi
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x50dd1c
mov ecx, 0x54ee24
mov dword [ebp - 0x24], ebx
cmp dword [esi + 8], ebx
jle 0x50dd49
test ecx, ecx
je 0x50dd49
cmp word [ecx], bx
je 0x50dd49
mov eax, dword [esi + 4]
test eax, eax
jne 0x50dd39
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call edi
mov ebx, eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x50dd55
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x20], 0
jle 0x50dd86
test ecx, ecx
je 0x50dd86
cmp word [ecx], 0
je 0x50dd86
mov eax, dword [esi + 4]
test eax, eax
jne 0x50dd78
mov eax, 0x54ee24
push eax
push 0
push str.LMargin
push ecx
call edi
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x50dd92
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x18], 0
jle 0x50ddc3
test ecx, ecx
je 0x50ddc3
cmp word [ecx], 0
je 0x50ddc3
mov eax, dword [esi + 4]
test eax, eax
jne 0x50ddb5
mov eax, 0x54ee24
push eax
push 0
push str.RMargin
push ecx
call edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
sub ecx, eax
mov dword [edi + 0x8e0], ebx
mov dword [edi + 0x8dc], eax
mov eax, dword [0x577698]
mov dword [ebp - 0x30], ecx
mov dword [ebp + 8], 0
test eax, eax
je 0x50de24
push 0x80
push 0
push 0
push 0
push 0xc8cd
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x50de1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp + 8], ebx
jmp 0x50de2e
mov dword [0x57768c], 0x57
mov dword [ebp + 0x14], 0
test eax, eax
je 0x50de67
push 0x80
push 0
push 0
push 0
push 0xc8ce
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x50de5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp + 0x14], ebx
jmp 0x50de71
mov dword [0x57768c], 0x57
xor ebx, ebx
test eax, eax
je 0x50de9f
push 0x80
push ebx
push ebx
push ebx
push 0xc8cf
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x50de98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
jmp 0x50dea9
mov dword [0x57768c], 0x57
xor ecx, ecx
test eax, eax
je 0x50ded4
push 0x80
push ecx
push ecx
push ecx
push 0xc8d0
push eax
call esi
mov esi, eax
test esi, esi
jne 0x50ded0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov ecx, esi
jmp 0x50dede
mov dword [0x57768c], 0x57
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x7f0], ecx
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x840], ecx
mov dword [edi + 0x850], ecx
push 0x5210
lea ecx, [ebp - 0x48]
mov dword [edi + 0x7e4], edx
xor edx, edx
mov dword [edi + 0x7e8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x7ec], ebx
push ecx
mov bl, 1
mov ecx, 0x5776a0
mov byte [edi + 0x7d5], bl
mov dword [edi + 0x838], edx
mov dword [edi + 0x83c], edx
mov dword [edi + 0x844], eax
mov dword [edi + 0x848], edx
mov dword [edi + 0x84c], edx
mov dword [edi + 0x854], eax
call fcn.00471480
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x50df7b
push eax
call fcn.0051ebab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
jmp 0x50df7d
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x7d0], ecx
cmp eax, ecx
jne 0x50df8f
mov eax, 0x54ee24
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x30]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push 0
push eax
push 0x17fa
push edx
mov eax, 0x10000000
lea ecx, [edi + 0x610]
call fcn.0043b8a0
mov ecx, dword [edi + 0x640]
mov esi, eax
test ecx, ecx
je 0x50dfd5
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50dfe9
mov ecx, dword [edi + 0x63c]
mov ecx, dword [ecx + 4]
mov dword [ecx + edi + 0x63c], 6
mov edi, dword [ebp - 0x3c]
test edi, edi
jne 0x50dff5
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x28]
call fcn.00511f60
mov esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
add esi, dword [ebp - 0x10]
test eax, eax
je 0x50e01d
push eax
call fcn.0051ebab
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10