Function at 0x41d9db
Capabilities:
Read .ini file

Disassembly:
push 0x84
mov eax, 0x56a404
call fcn.0053d330
push 0xa
lea ecx, [ebp - 0x4c]
call fcn.00438e87
and dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0040f452
mov ecx, eax
call fcn.0040f4b6
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x41dc3a
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, ebx
test ebx, ebx
je 0x41dc4c
mov eax, dword [eax + 8]
mov ebx, dword [ebx]
sub eax, 0x10
push eax
call fcn.0040242c
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.0040242c
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.004223e2
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.0040242c
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.00410ad1
call fcn.00437f60
push eax
lea ecx, [ebp - 0x14]
call fcn.0042a551
mov byte [ebp - 4], 4
call fcn.00412561
push dword [eax]
lea eax, [ebp - 0x14]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040a7ee
add esp, 0xc
push dword [ebp - 0x14]
push 0
push str.JobDeviceType
push dword [ebp - 0x18]
call edi
cmp eax, 1
jne 0x41db1d
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.0040242c
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.0040242c
pop ecx
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 4
call fcn.0041d693
lea eax, [ebp - 0x90]
push eax
call fcn.004013a2
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.0040242c
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.0040242c
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.00410ad1
mov esi, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x24], esp
add esi, 0xfffffff0
mov dword [ebp - 0x24], esp
push esi
call fcn.0040242c
pop ecx
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ecx], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00420fda
pop ecx
pop ecx
mov ecx, esi
call fcn.00402728
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
call fcn.00402728
cmp dword [ebp - 0x84], 0
jle 0x41dbfa
cmp dword [ebp - 0x90], 1
jne 0x41dbfa
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.0040242c
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.0040242c
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [ebp - 4], 6
call fcn.0041d693
lea esi, [ebp - 0x90]
call fcn.004013e4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402728
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402728
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402728
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00402728
test ebx, ebx
jne 0x41da1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00438fb5
call fcn.0053d408
ret
call fcn.00438caa
int3