Function at 0x413b00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x558fac
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x5b3db0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
push 0xa
lea ecx, [esp + 0x3c]
call fcn.0042c48a
and dword [esp + 0xa0], 0
lea eax, [esp + 0x38]
push 1
push eax
call fcn.004070f7
mov ecx, eax
call fcn.0040715b
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x413dd8
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, ebx
test ebx, ebx
je 0x413dff
mov eax, dword [eax + 8]
mov ebx, dword [ebx]
sub eax, 0x10
push eax
call fcn.00401e83
add eax, 0x10
mov dword [esp + 0x34], eax
add eax, 0xfffffff0
mov byte [esp + 0xa4], 1
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov dword [esp + 0x28], eax
call fcn.00401e83
pop ecx
add eax, 0x10
lea ecx, [esp + 0x18]
mov dword [esi], eax
call fcn.00417df0
pop ecx
mov byte [esp + 0xa0], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401e83
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xa4], 3
mov dword [esp], str.Model
mov esi, 0x587b60
push esi
lea ecx, [esp + 0x24]
call fcn.004087b6
call fcn.0042b589
push eax
lea ecx, [esp + 0x1c]
call fcn.0040217f
mov byte [esp + 0xa0], 4
call fcn.00409b98
push dword [eax]
lea eax, [esp + 0x1c]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.004034f1
add esp, 0xc
push dword [esp + 0x18]
push 0
push str.JobDeviceType
push dword [esp + 0x28]
call edi
cmp eax, 1
jne 0x413c99
push dword [esp + 0x18]
push 0
push str.NumJobEvents
push dword [esp + 0x28]
call edi
push 0
push eax
mov eax, dword [esp + 0x1c]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov dword [esp + 0x34], esp
push eax
call fcn.00401e83
mov ecx, dword [esp + 0x38]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0xb4], 5
mov dword [esp + 0x3c], esp
mov dword [esp + 0x38], esp
push dword [esp + 0x34]
call fcn.00401e83
pop ecx
mov ecx, dword [esp + 0x38]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0xb4], 4
call fcn.004137b8
lea eax, [esp + 0x54]
push eax
call fcn.00401136
mov byte [esp + 0xa0], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [esp + 0x34], eax
add eax, 0xfffffff0
mov byte [esp + 0xa0], 7
push eax
mov dword [esp + 0x30], eax
call fcn.00401e83
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xa4], 8
mov dword [esp], 0x587cac
push esi
lea ecx, [esp + 0x2c]
call fcn.004087b6
mov esi, dword [esp + 0x24]
push ecx
mov dword [esp + 0x2c], esp
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
push esi
call fcn.00401e83
pop ecx
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esp + 0x58]
push eax
call fcn.00407ccc
pop ecx
pop ecx
mov ecx, esi
call fcn.004021a7
mov byte [esp + 0xa0], 6
mov ecx, dword [esp + 0x2c]
call fcn.004021a7
cmp dword [esp + 0x60], 0
jle 0x413d92
cmp dword [esp + 0x54], 1
jne 0x413d92
mov eax, dword [esp + 0x14]
push 1
push dword [esp + 0x5c]
add eax, 0xfffffff0
push 1
push ecx
mov dword [esp + 0x44], esp
mov esi, esp
push eax
call fcn.00401e83
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0xb4], 9
mov dword [esp + 0x40], esp
mov esi, esp
push dword [esp + 0x34]
call fcn.00401e83
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [esp + 0xb4], 6
call fcn.004137b8
lea esi, [esp + 0x54]
call fcn.00401178
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [esp + 0x20]
mov byte [esp + 0xa0], 0
call fcn.004021a7
test ebx, ebx
jne 0x413b6a
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0042c5b8
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042c2ad
int3