Function at 0x4f09d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a850
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea edi, [esi + 0x3c]
push edi
mov ecx, str.BrCcHome.sdd
call fcn.00470370
push ebx
call fcn.004f0e30
call fcn.004f1550
mov eax, esi
mov ecx, dword [eax + 0xb0]
add eax, 0x5c
xor esi, esi
cmp ecx, esi
jle 0x4f0a4f
mov edx, dword [eax + 0x58]
cmp edx, esi
jle 0x4f0a4f
push ecx
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [eax + 0x4c]
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
push eax
mov ebx, edx
mov eax, 0x10000000
mov edx, 0x198f
call fcn.00509070
mov ebx, dword [ebp + 8]
push str.ScanImgCrop_InfoWnd
lea eax, [ebx + 0x4c]
call fcn.005080c0
mov eax, dword [edi + 0x10]
cmp eax, esi
jne 0x4f0a6b
mov eax, 0x54ee24
mov dword [ebp - 0x14], esi
cmp dword [edi + 8], esi
jle 0x4f0a99
cmp eax, esi
je 0x4f0a99
cmp word [eax], si
je 0x4f0a99
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x4f0a88
mov ecx, 0x54ee24
push ecx
push esi
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4f0aa5
mov ecx, 0x54ee24
mov dword [ebp - 0x10], esi
cmp dword [edi + 8], esi
jle 0x4f0ad3
cmp ecx, esi
je 0x4f0ad3
cmp word [ecx], si
je 0x4f0ad3
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0ac2
mov eax, 0x54ee24
push eax
push esi
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4f0adf
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], esi
jle 0x4f0b09
cmp ecx, esi
je 0x4f0b09
cmp word [ecx], si
je 0x4f0b09
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0afb
mov eax, 0x54ee24
push eax
push esi
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, ebx
mov dword [edx + 0x3410], eax
push str.ScanImgCropOk_BtnWnd
lea eax, [ebx + 0x4c]
call fcn.005080c0
mov eax, dword [edi + 0x10]
cmp eax, esi
jne 0x4f0b2a
mov eax, 0x54ee24
mov dword [ebp - 0x1c], esi
cmp dword [edi + 8], esi
jle 0x4f0b5c
cmp eax, esi
je 0x4f0b5c
cmp word [eax], si
je 0x4f0b5c
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x4f0b47
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push esi
push str.PosiX
push eax
call ebx
mov dword [ebp - 0x1c], eax
jmp 0x4f0b62
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4f0b6e
mov ecx, 0x54ee24
mov dword [ebp - 0x18], esi
cmp dword [edi + 8], esi
jle 0x4f0b98
cmp ecx, esi
je 0x4f0b98
cmp word [ecx], si
je 0x4f0b98
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0b8b
mov eax, 0x54ee24
push eax
push esi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x18], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4f0ba4
mov ecx, 0x54ee24
mov dword [ebp - 0x20], esi
cmp dword [edi + 8], esi
jle 0x4f0bce
cmp ecx, esi
je 0x4f0bce
cmp word [ecx], si
je 0x4f0bce
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0bc1
mov eax, 0x54ee24
push eax
push esi
push str.Width
push ecx
call ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4f0bda
mov ecx, 0x54ee24
xor esi, esi
xor ebx, ebx
cmp dword [edi + 8], esi
jle 0x4f0c0a
cmp ecx, esi
je 0x4f0c0a
cmp word [ecx], si
je 0x4f0c0a
mov edi, dword [edi + 4]
mov eax, edi
cmp edi, esi
jne 0x4f0bfa
mov eax, 0x54ee24
push eax
push esi
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x8100
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x5776a0
call fcn.00471480
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0x2ac], esi
cmp eax, esi
jne 0x4f0c35
mov eax, 0x54ee24
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push edx
push esi
push edi
push 0
push eax
mov eax, dword [ebp + 0xc]
push 0x17f2
push eax
add ecx, 0xec
mov eax, 0x10000000
call fcn.0043b8a0
mov ebx, dword [ebp + 8]
push str.ScanImgCropCancel_BtnWnd
lea eax, [ebx + 0x4c]
mov dword [ebx + 0x3414], edi
mov dword [ebx + 0x3418], esi
call fcn.005080c0
mov eax, dword [ebx + 0x4c]
test eax, eax
jne 0x4f0c8f
mov eax, 0x54ee24
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0x44], esi
jle 0x4f0cbf
cmp eax, esi
je 0x4f0cbf
cmp word [eax], si
je 0x4f0cbf
mov ecx, dword [ebx + 0x40]
cmp ecx, esi
jne 0x4f0cae
mov ecx, 0x54ee24
push ecx
push esi
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebx + 0x4c]
cmp ecx, esi
jne 0x4f0ccb
mov ecx, 0x54ee24
xor edi, edi
cmp dword [ebx + 0x44], esi
jle 0x4f0cf7
cmp ecx, esi
je 0x4f0cf7
cmp word [ecx], si
je 0x4f0cf7
mov eax, dword [ebx + 0x40]
cmp eax, esi
jne 0x4f0ce7
mov eax, 0x54ee24
push eax
push esi
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov ecx, dword [ebx + 0x4c]
cmp ecx, esi
jne 0x4f0d03
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], esi
cmp dword [ebx + 0x44], esi
jle 0x4f0d31
cmp ecx, esi
je 0x4f0d31
cmp word [ecx], si
je 0x4f0d31
mov eax, dword [ebx + 0x40]
cmp eax, esi
jne 0x4f0d20
mov eax, 0x54ee24
push eax
push esi
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 0x4c]
cmp ecx, esi
jne 0x4f0d3d
mov ecx, 0x54ee24
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x44], esi
jle 0x4f0d6c
cmp ecx, esi
je 0x4f0d6c
cmp word [ecx], si
je 0x4f0d6c
mov eax, dword [eax + 0x40]
cmp eax, esi
jne 0x4f0d5c
mov eax, 0x54ee24
push eax
push esi
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x80ed
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x4f0da8
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
mov dword [edx + 0x558], esi
cmp eax, esi
jne 0x4f0dbd
mov eax, 0x54ee24
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
lea esi, [edi + ecx]
mov edi, dword [ebp - 0x20]
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push edx
push esi
push edi
push 0
push eax
mov eax, dword [ebp + 0xc]
push 0x17f5
push eax
add ecx, 0x398
mov eax, 0x10000000
call fcn.0043b8a0
mov eax, dword [ebp + 8]
mov dword [eax + 0x341c], edi
mov dword [eax + 0x3420], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4f0e18
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 esp, ebp
pop ebp
ret 0xc