Function at 0x50d820
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539f20
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.0x50d85f.2
movzx eax, byte [eax + 0x50df7c]
jmp dword [eax*4 + 0x50df74]
mov byte [ebp - 0x10], 1
jmp 0x50d870
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.00511e30
lea esi, [edi + 0x31c]
push esi
mov ecx, 0x554c48
mov dword [ebp - 0x30], esi
call fcn.00470260
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 0x50d8c6
mov eax, 0x54ee24
mov dword [ebp - 0x10], edi
cmp dword [esi + 8], edi
jle 0x50d8f8
cmp eax, edi
je 0x50d8f8
cmp word [eax], di
je 0x50d8f8
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x50d8e3
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 0x50d8fe
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x50d90a
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [esi + 8], edi
jle 0x50d934
cmp ecx, edi
je 0x50d934
cmp word [ecx], di
je 0x50d934
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x50d927
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 0x50d940
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [esi + 8], edi
jle 0x50d96a
cmp ecx, edi
je 0x50d96a
cmp word [ecx], di
je 0x50d96a
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x50d95d
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 0x50d976
mov ecx, 0x54ee24
mov dword [ebp - 0x24], edi
cmp dword [esi + 8], edi
jle 0x50d9a0
cmp ecx, edi
je 0x50d9a0
cmp word [ecx], di
je 0x50d9a0
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x50d993
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 0x50d9ac
mov ecx, 0x54ee24
cmp dword [esi + 8], edi
jle 0x50d9d2
cmp ecx, edi
je 0x50d9d2
cmp word [ecx], di
je 0x50d9d2
mov esi, dword [esi + 4]
mov eax, esi
cmp esi, edi
jne 0x50d9c8
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 0x50da12
push 0x80
push 0
push 0
push 0
push 0xc8c9
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50da08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 0x18], esi
jmp 0x50da1c
mov dword [0x57768c], 0x57
mov dword [ebp - 0x14], 0
test eax, eax
je 0x50da55
push 0x80
push 0
push 0
push 0
push 0xc8ca
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50da4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 0x14], esi
jmp 0x50da5f
mov dword [0x57768c], 0x57
xor ebx, ebx
test eax, eax
je 0x50da8f
push 0x80
push ebx
push ebx
push ebx
push 0xc8cb
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50da86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov ebx, esi
jmp 0x50da99
mov dword [0x57768c], 0x57
xor ecx, ecx
test eax, eax
je 0x50dac4
push 0x80
push ecx
push ecx
push ecx
push 0xc8cc
push eax
call edi
mov esi, eax
test esi, esi
jne 0x50dac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov ecx, esi
jmp 0x50dace
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.00471380
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 0x50db5a
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.0043b720
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x394]
test ecx, ecx
je 0x50db9c
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50dbb0
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 0x50dbbc
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x28]
call fcn.00511ea0
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 0x50dbe2
mov eax, 0x54ee24
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
jle 0x50dc14
cmp eax, ebx
je 0x50dc14
cmp word [eax], bx
je 0x50dc14
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x50dbff
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 0x50dc1a
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x50dc26
mov ecx, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [esi + 8], ebx
jle 0x50dc50
cmp ecx, ebx
je 0x50dc50
cmp word [ecx], bx
je 0x50dc50
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x50dc43
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 0x50dc5c
mov ecx, 0x54ee24
mov dword [ebp - 0x24], ebx
cmp dword [esi + 8], ebx
jle 0x50dc89
test ecx, ecx
je 0x50dc89
cmp word [ecx], bx
je 0x50dc89
mov eax, dword [esi + 4]
test eax, eax
jne 0x50dc79
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 0x50dc95
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x20], 0
jle 0x50dcc6
test ecx, ecx
je 0x50dcc6
cmp word [ecx], 0
je 0x50dcc6
mov eax, dword [esi + 4]
test eax, eax
jne 0x50dcb8
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 0x50dcd2
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x18], 0
jle 0x50dd03
test ecx, ecx
je 0x50dd03
cmp word [ecx], 0
je 0x50dd03
mov eax, dword [esi + 4]
test eax, eax
jne 0x50dcf5
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 0x50dd64
push 0x80
push 0
push 0
push 0
push 0xc8cd
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x50dd5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp + 8], ebx
jmp 0x50dd6e
mov dword [0x57768c], 0x57
mov dword [ebp + 0x14], 0
test eax, eax
je 0x50dda7
push 0x80
push 0
push 0
push 0
push 0xc8ce
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x50dd9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp + 0x14], ebx
jmp 0x50ddb1
mov dword [0x57768c], 0x57
xor ebx, ebx
test eax, eax
je 0x50dddf
push 0x80
push ebx
push ebx
push ebx
push 0xc8cf
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x50ddd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
jmp 0x50dde9
mov dword [0x57768c], 0x57
xor ecx, ecx
test eax, eax
je 0x50de14
push 0x80
push ecx
push ecx
push ecx
push 0xc8d0
push eax
call esi
mov esi, eax
test esi, esi
jne 0x50de10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov ecx, esi
jmp 0x50de1e
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.00471380
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 0x50debb
push eax
call fcn.0051eadb
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
jmp 0x50debd
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x7d0], ecx
cmp eax, ecx
jne 0x50decf
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.0043b720
mov ecx, dword [edi + 0x640]
mov esi, eax
test ecx, ecx
je 0x50df15
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x50df29
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 0x50df35
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x28]
call fcn.00511ea0
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 0x50df5d
push eax
call fcn.0051eadb
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