Function at 0x41d59a
Capabilities:
Read .ini file

Disassembly:
push 0x84
mov eax, 0x56a0ba
call fcn.0053ce40
push 0xa
lea ecx, [ebp - 0x4c]
call fcn.00438999
and dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0040ef5f
mov ecx, eax
call fcn.0040efc3
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x41d7f9
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, ebx
test ebx, ebx
je 0x41d80b
mov eax, dword [eax + 8]
mov ebx, dword [ebx]
sub eax, 0x10
push eax
call fcn.00402431
add eax, 0x10
mov dword [ebp - 0x2c], eax
add eax, 0xfffffff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
mov dword [ebp - 0x1c], eax
call fcn.00402431
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.0042200b
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00402431
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [esp], str.Model
mov esi, 0x598d00
push esi
lea ecx, [ebp - 0x18]
call fcn.00410649
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x14]
call fcn.00402723
mov byte [ebp - 4], 4
call fcn.004120c2
push dword [eax]
lea eax, [ebp - 0x14]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040a0e9
add esp, 0xc
push dword [ebp - 0x14]
push 0
push str.JobDeviceType
push dword [ebp - 0x18]
call edi
cmp eax, 1
jne 0x41d6dc
push dword [ebp - 0x14]
push 0
push str.NumJobEvents
push dword [ebp - 0x18]
call edi
push 0
push eax
mov eax, dword [ebp - 0x10]
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00402431
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
call fcn.00402431
pop ecx
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 4
call fcn.0041d252
lea eax, [ebp - 0x90]
push eax
call fcn.0040139d
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00402431
add eax, 0x10
pop ecx
mov dword [ebp - 0x30], eax
add eax, 0xfffffff0
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0x28], eax
call fcn.00402431
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 8
mov dword [esp], 0x598e70
push esi
lea ecx, [ebp - 0x20]
call fcn.00410649
mov esi, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x24], esp
add esi, 0xfffffff0
mov dword [ebp - 0x24], esp
push esi
call fcn.00402431
pop ecx
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ecx], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00420c09
pop ecx
pop ecx
mov ecx, esi
call fcn.0040274b
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
call fcn.0040274b
cmp dword [ebp - 0x84], 0
jle 0x41d7b9
cmp dword [ebp - 0x90], 1
jne 0x41d7b9
mov eax, dword [ebp - 0x10]
push 1
push dword [ebp - 0x8c]
add eax, 0xfffffff0
push 1
push ecx
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x28], esp
mov esi, esp
push dword [ebp - 0x1c]
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [ebp - 4], 6
call fcn.0041d252
lea esi, [ebp - 0x90]
call fcn.004013df
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040274b
test ebx, ebx
jne 0x41d5da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00438ac7
call fcn.0053cf18
ret
call fcn.004387df
int3