Function at 0x4e50f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e850
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x559024]
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.00466b30
push ebx
call fcn.004e5550
call fcn.004e5c70
mov eax, esi
mov ecx, dword [eax + 0xb0]
add eax, 0x5c
xor esi, esi
cmp ecx, esi
jle 0x4e516f
mov edx, dword [eax + 0x58]
cmp edx, esi
jle 0x4e516f
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.004fdeb0
mov ebx, dword [ebp + 8]
push str.ScanImgCrop_InfoWnd
lea eax, [ebx + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x10]
cmp eax, esi
jne 0x4e518b
mov eax, 0x538640
mov dword [ebp - 0x14], esi
cmp dword [edi + 8], esi
jle 0x4e51b9
cmp eax, esi
je 0x4e51b9
cmp word [eax], si
je 0x4e51b9
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x4e51a8
mov ecx, 0x538640
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 0x4e51c5
mov ecx, 0x538640
mov dword [ebp - 0x10], esi
cmp dword [edi + 8], esi
jle 0x4e51f3
cmp ecx, esi
je 0x4e51f3
cmp word [ecx], si
je 0x4e51f3
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4e51e2
mov eax, 0x538640
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 0x4e51ff
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], esi
jle 0x4e5229
cmp ecx, esi
je 0x4e5229
cmp word [ecx], si
je 0x4e5229
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4e521b
mov eax, 0x538640
push eax
push esi
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, ebx
mov dword [edx + 0x32e0], eax
push str.ScanImgCropOk_BtnWnd
lea eax, [ebx + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x10]
cmp eax, esi
jne 0x4e524a
mov eax, 0x538640
mov dword [ebp - 0x1c], esi
cmp dword [edi + 8], esi
jle 0x4e527c
cmp eax, esi
je 0x4e527c
cmp word [eax], si
je 0x4e527c
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x4e5267
mov ecx, 0x538640
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 0x4e5282
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4e528e
mov ecx, 0x538640
mov dword [ebp - 0x18], esi
cmp dword [edi + 8], esi
jle 0x4e52b8
cmp ecx, esi
je 0x4e52b8
cmp word [ecx], si
je 0x4e52b8
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4e52ab
mov eax, 0x538640
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 0x4e52c4
mov ecx, 0x538640
mov dword [ebp - 0x20], esi
cmp dword [edi + 8], esi
jle 0x4e52ee
cmp ecx, esi
je 0x4e52ee
cmp word [ecx], si
je 0x4e52ee
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4e52e1
mov eax, 0x538640
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 0x4e52fa
mov ecx, 0x538640
xor esi, esi
xor ebx, ebx
cmp dword [edi + 8], esi
jle 0x4e532a
cmp ecx, esi
je 0x4e532a
cmp word [ecx], si
je 0x4e532a
mov edi, dword [edi + 4]
mov eax, edi
cmp edi, esi
jne 0x4e531a
mov eax, 0x538640
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, 0x55a400
call fcn.00467b90
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0x2ac], esi
cmp eax, esi
jne 0x4e5355
mov eax, 0x538640
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.00433520
mov ebx, dword [ebp + 8]
push str.ScanImgCropCancel_BtnWnd
lea eax, [ebx + 0x4c]
mov dword [ebx + 0x32e4], edi
mov dword [ebx + 0x32e8], esi
call fcn.004fcf00
mov eax, dword [ebx + 0x4c]
test eax, eax
jne 0x4e53af
mov eax, 0x538640
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0x44], esi
jle 0x4e53df
cmp eax, esi
je 0x4e53df
cmp word [eax], si
je 0x4e53df
mov ecx, dword [ebx + 0x40]
cmp ecx, esi
jne 0x4e53ce
mov ecx, 0x538640
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 0x4e53eb
mov ecx, 0x538640
xor edi, edi
cmp dword [ebx + 0x44], esi
jle 0x4e5417
cmp ecx, esi
je 0x4e5417
cmp word [ecx], si
je 0x4e5417
mov eax, dword [ebx + 0x40]
cmp eax, esi
jne 0x4e5407
mov eax, 0x538640
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 0x4e5423
mov ecx, 0x538640
mov dword [ebp - 0x1c], esi
cmp dword [ebx + 0x44], esi
jle 0x4e5451
cmp ecx, esi
je 0x4e5451
cmp word [ecx], si
je 0x4e5451
mov eax, dword [ebx + 0x40]
cmp eax, esi
jne 0x4e5440
mov eax, 0x538640
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 0x4e545d
mov ecx, 0x538640
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x44], esi
jle 0x4e548c
cmp ecx, esi
je 0x4e548c
cmp word [ecx], si
je 0x4e548c
mov eax, dword [eax + 0x40]
cmp eax, esi
jne 0x4e547c
mov eax, 0x538640
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, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004fce50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x4e54c8
push eax
call fcn.005134a7
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 0x4e54dd
mov eax, 0x538640
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.00433520
mov eax, dword [ebp + 8]
mov dword [eax + 0x32ec], edi
mov dword [eax + 0x32f0], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4e5538
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 esp, ebp
pop ebp
ret 0xc