Function at 0x4f0f00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536d68
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2af8
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x5776a0
call fcn.00471380
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
cmp eax, ebx
jne 0x4f0f50
mov dword [ebp - 0x58], 0x54ee24
push str.ScanImgCrop_InfoWnd
lea eax, [esi + 0x4c]
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x4f0f6b
mov ecx, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x44], ebx
jle 0x4f0f99
cmp ecx, ebx
je 0x4f0f99
cmp word [ecx], bx
je 0x4f0f99
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4f0f88
mov eax, 0x54ee24
push eax
push ebx
push str.PosiX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x4f0fa5
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x44], ebx
jle 0x4f0fd3
cmp ecx, ebx
je 0x4f0fd3
cmp word [ecx], bx
je 0x4f0fd3
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4f0fc2
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
push str.ScanImgCrop_ScaleText
lea eax, [esi + 0x4c]
call fcn.005080c0
mov eax, dword [esi + 0x4c]
mov ecx, eax
cmp eax, ebx
jne 0x4f0fee
mov ecx, 0x54ee24
mov dword [ebp - 0x10], ebx
cmp dword [esi + 0x44], ebx
jle 0x4f1020
cmp ecx, ebx
je 0x4f1020
cmp word [ecx], bx
je 0x4f1020
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4f100b
mov eax, 0x54ee24
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push ebx
push str.PosiX
push ecx
call edi
mov dword [ebp - 0x10], eax
jmp 0x4f1026
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x4f1032
mov ecx, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x44], ebx
jle 0x4f105c
cmp ecx, ebx
je 0x4f105c
cmp word [ecx], bx
je 0x4f105c
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4f104f
mov eax, 0x54ee24
push eax
push ebx
push str.PosiY
push ecx
call edi
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x4f1068
mov ecx, 0x54ee24
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x44], ebx
jle 0x4f1092
cmp ecx, ebx
je 0x4f1092
cmp word [ecx], bx
je 0x4f1092
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4f1085
mov eax, 0x54ee24
push eax
push ebx
push str.Width
push ecx
call edi
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x4f109e
mov ecx, 0x54ee24
mov dword [ebp - 0x24], ebx
cmp dword [esi + 0x44], ebx
jle 0x4f10c8
cmp ecx, ebx
je 0x4f10c8
cmp word [ecx], bx
je 0x4f10c8
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4f10bb
mov eax, 0x54ee24
push eax
push ebx
push str.Height
push ecx
call edi
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x4f10d4
mov ecx, 0x54ee24
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x44], ebx
jle 0x4f10fe
cmp ecx, ebx
je 0x4f10fe
cmp word [ecx], bx
je 0x4f10fe
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x4f10f1
mov eax, 0x54ee24
push eax
push ebx
push str.FontPoint
push ecx
call edi
mov dword [ebp - 0x28], eax
push 0x55d15c
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
jle 0x4f1155
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov ecx, edi
lea ebx, [ebp - 0x40]
call fcn.00507c00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
cmp ecx, ebx
je 0x4f1155
lea edx, [edi + 1]
push edx
push 0x55d15c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x30], edi
push 0x753d
lea eax, [ebp - 0x4c]
mov ebx, 1
push eax
mov ecx, 0x5776a0
mov byte [ebp - 4], bl
call fcn.00471380
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ecx
lea edi, [ebp - 0x34]
call fcn.00507dd0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4f1195
push eax
call fcn.0051eadb
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4f11a1
mov eax, 0x54ee24
push eax
lea eax, [esi + 0xc0]
call fcn.005080c0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x10]
add edi, dword [ebp - 0x14]
push 0
mov dword [ebp - 0x1c], eax
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x20]
push 0
mov dword [esi + 0xb0], eax
mov eax, dword [ebp - 0x58]
push edx
mov dword [esi + 0xb4], ecx
push eax
lea ecx, [esi + 0x98]
mov dword [esi + 0xb8], ebx
mov ebx, dword [ebp + 8]
push ecx
mov dword [esi + 0xa8], edi
mov dword [esi + 0xbc], 0x26
call fcn.00473690
mov edx, dword [ebp - 0x1c]
mov byte [esi + 0xcc], 0
mov byte [esi + 0xd4], 0
push str.ScanImgCropOk_BtnText
lea eax, [esi + 0x4c]
mov dword [esi + 0x3424], edi
mov dword [esi + 0x3428], edx
call fcn.005080c0
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4f123b
mov eax, 0x54ee24
xor edi, edi
mov dword [ebp - 0x28], edi
cmp dword [esi + 0x44], edi
jle 0x4f126f
cmp eax, edi
je 0x4f126f
cmp word [eax], di
je 0x4f126f
mov ecx, dword [esi + 0x40]
cmp ecx, edi
jne 0x4f125a
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push edi
push str.PosiX
push eax
call ebx
mov dword [ebp - 0x28], eax
jmp 0x4f1275
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x4f1281
mov ecx, 0x54ee24
mov dword [ebp - 0x24], edi
cmp dword [esi + 0x44], edi
jle 0x4f12ab
cmp ecx, edi
je 0x4f12ab
cmp word [ecx], di
je 0x4f12ab
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4f129e
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x4f12b7
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x44], edi
jle 0x4f12e1
cmp ecx, edi
je 0x4f12e1
cmp word [ecx], di
je 0x4f12e1
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4f12d4
mov eax, 0x54ee24
push eax
push edi
push str.Width
push ecx
call ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x4f12ed
mov ecx, 0x54ee24
cmp dword [esi + 0x44], edi
jle 0x4f1314
test ecx, ecx
je 0x4f1314
cmp word [ecx], di
je 0x4f1314
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4f1307
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call ebx
mov edi, eax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x4f1320
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x4f134d
test ecx, ecx
je 0x4f134d
cmp word [ecx], bx
je 0x4f134d
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4f133c
mov eax, 0x54ee24
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x8100
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x5776a0
call fcn.00471380
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00508010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4f1380
push eax
call fcn.0051eadb
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4f138c
mov eax, 0x54ee24
push eax
lea eax, [esi + 0x18c]
mov byte [esi + 0x2b0], 1
call fcn.005080c0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push 0
push 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x174], ecx
mov ecx, dword [ebp - 0x58]
mov dword [esi + 0x178], edx
push ecx
lea edx, [esi + 0x164]
push edx
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], edi
mov dword [esi + 0x188], 0x15
mov dword [esi + 0x184], 1
call fcn.00473690
push str.ScanImgCropCancel_BtnText
lea eax, [esi + 0x4c]
xor edi, edi
mov byte [esi + 0x198], 0
mov byte [esi + 0x1a0], 0
call fcn.005080c0
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x4f1415
mov eax, 0x54ee24
mov dword [ebp - 0x28], edi
cmp dword [esi + 0x44], edi
jle 0x4f1447
cmp eax, edi
je 0x4f1447
cmp word [eax], di
je 0x4f1447
mov ecx, dword [esi + 0x40]
cmp ecx, edi
jne 0x4f1432
mov ecx, 0x54ee24
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push edi
push str.PosiX
push eax
call ebx
mov dword [ebp - 0x28], eax
jmp 0x4f144d
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x4f1459
mov ecx, 0x54ee24
mov dword [ebp - 0x24], edi
cmp dword [esi + 0x44], edi
jle 0x4f1483
cmp ecx, edi
je 0x4f1483
cmp word [ecx], di
je 0x4f1483
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4f1476
mov eax, 0x54ee24
push eax
push edi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x4f148f
mov ecx, 0x54ee24
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x44], edi
jle 0x4f14b9
cmp ecx, edi
je 0x4f14b9
cmp word [ecx], di
je 0x4f14b9
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4f14ac
mov eax, 0x54ee24
push eax
push edi
push str.Width
push ecx
call ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x4f14c5
mov ecx, 0x54ee24
mov dword [ebp - 0x1c], edi
cmp dword [esi + 0x44], edi
jle 0x4f14ef
cmp ecx, edi
je 0x4f14ef
cmp word [ecx], di
je 0x4f14ef
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4f14e2
mov eax, 0x54ee24
push eax
push edi
push str.Height
push ecx
call ebx
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x4c]
cmp ecx, edi
jne 0x4f14fb
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 0x44], edi
jle 0x4f1527
cmp ecx, edi
je 0x4f1527
cmp word [ecx], di
je 0x4f1527
mov eax, dword [esi + 0x40]
cmp eax, edi
jne 0x4f1517
mov eax, 0x54ee24
push eax
push edi
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
push 0x80ed
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x5776a0
call fcn.00471380
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00508010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
cmp eax, edi
je 0x4f1563
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x34]
mov eax, edi
test edi, edi
jne 0x4f1571
mov eax, 0x54ee24
push eax
lea eax, [esi + 0x438]
mov byte [esi + 0x55c], 1
call fcn.005080c0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push 0
push 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x424], edx
mov edx, dword [ebp - 0x58]
mov dword [esi + 0x428], eax
mov dword [esi + 0x420], ecx
mov ecx, dword [ebp - 0x1c]
push edx
lea eax, [esi + 0x410]
push eax
mov dword [esi + 0x42c], ecx
mov dword [esi + 0x434], 0x15
mov dword [esi + 0x430], 1
call fcn.00473690
xor ebx, ebx
mov byte [esi + 0x444], bl
mov byte [esi + 0x44c], bl
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x4f15f2
push edi
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x4f1609
push eax
call fcn.0051eadb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4