Function at 0x41dc90
Capabilities:
Read .ini file

Disassembly:
push 0x84
mov eax, 0x56aca3
call fcn.0053da10
push 0xa
lea ecx, [ebp - 0x4c]
call fcn.00439570
and dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0040f5b9
mov ecx, eax
call fcn.0040f61d
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x41deef
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, ebx
test ebx, ebx
je 0x41df01
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.00422668
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, 0x598e20
push esi
lea ecx, [ebp - 0x18]
call fcn.00410ca3
call fcn.00438647
push eax
lea ecx, [ebp - 0x14]
call fcn.0042a80d
mov byte [ebp - 4], 4
call fcn.00412720
push dword [eax]
lea eax, [ebp - 0x14]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040a7c3
add esp, 0xc
push dword [ebp - 0x14]
push 0
push str.JobDeviceType
push dword [ebp - 0x18]
call edi
cmp eax, 1
jne 0x41ddd2
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.0041d948
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], 0x5990a0
push esi
lea ecx, [ebp - 0x20]
call fcn.00410ca3
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.0041778b
pop ecx
pop ecx
mov ecx, esi
call fcn.00402722
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
call fcn.00402722
cmp dword [ebp - 0x84], 0
jle 0x41deaf
cmp dword [ebp - 0x90], 1
jne 0x41deaf
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.0041d948
lea esi, [ebp - 0x90]
call fcn.004013df
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00402722
test ebx, ebx
jne 0x41dcd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0043969e
call fcn.0053dae8
ret
call fcn.00439394
int3