Function at 0x41d679
Capabilities:
Read .ini file

Disassembly:
push 0x84
mov eax, 0x569d25
call fcn.0053cd20
push 0xa
lea ecx, [ebp - 0x4c]
call fcn.00438896
and dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0040f268
mov ecx, eax
call fcn.0040f2cc
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x41d8d8
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, ebx
test ebx, ebx
je 0x41d8ea
mov eax, dword [eax + 8]
mov ebx, dword [ebx]
sub eax, 0x10
push eax
call fcn.00402446
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.00402446
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00421f50
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00402446
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [esp], str.Model
mov esi, 0x598e00
push esi
lea ecx, [ebp - 0x18]
call fcn.004108d9
call fcn.00437969
push eax
lea ecx, [ebp - 0x14]
call fcn.00402738
mov byte [ebp - 4], 4
call fcn.004122f4
push dword [eax]
lea eax, [ebp - 0x14]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040a7d8
add esp, 0xc
push dword [ebp - 0x14]
push 0
push str.JobDeviceType
push dword [ebp - 0x18]
call edi
cmp eax, 1
jne 0x41d7bb
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.00402446
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.00402446
pop ecx
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 4
call fcn.0041d331
lea eax, [ebp - 0x90]
push eax
call fcn.004013bc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00402446
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.00402446
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 8
mov dword [esp], 0x599080
push esi
lea ecx, [ebp - 0x20]
call fcn.004108d9
mov esi, dword [ebp - 0x20]
push ecx
mov dword [ebp - 0x24], esp
add esi, 0xfffffff0
mov dword [ebp - 0x24], esp
push esi
call fcn.00402446
pop ecx
mov ecx, dword [ebp - 0x24]
add eax, 0x10
mov dword [ecx], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00420b4e
pop ecx
pop ecx
mov ecx, esi
call fcn.00402760
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
call fcn.00402760
cmp dword [ebp - 0x84], 0
jle 0x41d898
cmp dword [ebp - 0x90], 1
jne 0x41d898
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.00402446
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.00402446
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [ebp - 4], 6
call fcn.0041d331
lea esi, [ebp - 0x90]
call fcn.004013fe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00402760
test ebx, ebx
jne 0x41d6b9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004389c4
call fcn.0053cdf8
ret
call fcn.00438697
int3