Function at 0x4f0a90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a720
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.00470260
push ebx
call fcn.004f0f00
call fcn.004f1620
mov eax, esi
mov ecx, dword [eax + 0xb0]
add eax, 0x5c
xor esi, esi
cmp ecx, esi
jle 0x4f0b0f
mov edx, dword [eax + 0x58]
cmp edx, esi
jle 0x4f0b0f
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 0x4f0b2b
mov eax, 0x54ee24
mov dword [ebp - 0x14], esi
cmp dword [edi + 8], esi
jle 0x4f0b59
cmp eax, esi
je 0x4f0b59
cmp word [eax], si
je 0x4f0b59
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x4f0b48
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 0x4f0b65
mov ecx, 0x54ee24
mov dword [ebp - 0x10], esi
cmp dword [edi + 8], esi
jle 0x4f0b93
cmp ecx, esi
je 0x4f0b93
cmp word [ecx], si
je 0x4f0b93
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0b82
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 0x4f0b9f
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], esi
jle 0x4f0bc9
cmp ecx, esi
je 0x4f0bc9
cmp word [ecx], si
je 0x4f0bc9
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0bbb
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 0x4f0bea
mov eax, 0x54ee24
mov dword [ebp - 0x1c], esi
cmp dword [edi + 8], esi
jle 0x4f0c1c
cmp eax, esi
je 0x4f0c1c
cmp word [eax], si
je 0x4f0c1c
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x4f0c07
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 0x4f0c22
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4f0c2e
mov ecx, 0x54ee24
mov dword [ebp - 0x18], esi
cmp dword [edi + 8], esi
jle 0x4f0c58
cmp ecx, esi
je 0x4f0c58
cmp word [ecx], si
je 0x4f0c58
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0c4b
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 0x4f0c64
mov ecx, 0x54ee24
mov dword [ebp - 0x20], esi
cmp dword [edi + 8], esi
jle 0x4f0c8e
cmp ecx, esi
je 0x4f0c8e
cmp word [ecx], si
je 0x4f0c8e
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4f0c81
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 0x4f0c9a
mov ecx, 0x54ee24
xor esi, esi
xor ebx, ebx
cmp dword [edi + 8], esi
jle 0x4f0cca
cmp ecx, esi
je 0x4f0cca
cmp word [ecx], si
je 0x4f0cca
mov edi, dword [edi + 4]
mov eax, edi
cmp edi, esi
jne 0x4f0cba
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.00471380
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0x2ac], esi
cmp eax, esi
jne 0x4f0cf5
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.0043b720
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 0x4f0d4f
mov eax, 0x54ee24
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0x44], esi
jle 0x4f0d7f
cmp eax, esi
je 0x4f0d7f
cmp word [eax], si
je 0x4f0d7f
mov ecx, dword [ebx + 0x40]
cmp ecx, esi
jne 0x4f0d6e
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 0x4f0d8b
mov ecx, 0x54ee24
xor edi, edi
cmp dword [ebx + 0x44], esi
jle 0x4f0db7
cmp ecx, esi
je 0x4f0db7
cmp word [ecx], si
je 0x4f0db7
mov eax, dword [ebx + 0x40]
cmp eax, esi
jne 0x4f0da7
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 0x4f0dc3
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], esi
cmp dword [ebx + 0x44], esi
jle 0x4f0df1
cmp ecx, esi
je 0x4f0df1
cmp word [ecx], si
je 0x4f0df1
mov eax, dword [ebx + 0x40]
cmp eax, esi
jne 0x4f0de0
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 0x4f0dfd
mov ecx, 0x54ee24
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x44], esi
jle 0x4f0e2c
cmp ecx, esi
je 0x4f0e2c
cmp word [ecx], si
je 0x4f0e2c
mov eax, dword [eax + 0x40]
cmp eax, esi
jne 0x4f0e1c
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.00471380
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 0x4f0e68
push eax
call fcn.0051eadb
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 0x4f0e7d
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.0043b720
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 0x4f0ed8
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 esp, ebp
pop ebp
ret 0xc