Function at 0x41ddb5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56a7d3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
push 0xa
lea ecx, [esp + 0x3c]
call fcn.00439230
and dword [esp + 0xb0], 0
lea eax, [esp + 0x38]
push 1
push eax
call fcn.0040f76e
mov ecx, eax
call fcn.0040f7d2
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x41e08d
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, ebx
test ebx, ebx
je 0x41e0b4
mov eax, dword [eax + 8]
mov ebx, dword [ebx]
sub eax, 0x10
push eax
call fcn.00402741
add eax, 0x10
mov dword [esp + 0x38], eax
add eax, 0xfffffff0
mov byte [esp + 0xb4], 1
mov dword [esp + 0x28], esp
mov esi, esp
push eax
mov dword [esp + 0x34], eax
call fcn.00402741
pop ecx
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.00422795
pop ecx
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00402741
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xb4], 3
mov dword [esp], str.Model
mov esi, 0x598ee8
push esi
lea ecx, [esp + 0x24]
call fcn.00410f02
call fcn.00438329
push eax
lea ecx, [esp + 0x24]
call fcn.00402a28
mov byte [esp + 0xb0], 4
call fcn.00412992
push dword [eax]
lea eax, [esp + 0x24]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040ab0a
add esp, 0xc
push dword [esp + 0x20]
push 0
push str.JobDeviceType
push dword [esp + 0x28]
call edi
cmp eax, 1
jne 0x41df4e
push dword [esp + 0x20]
push 0
push str.NumJobEvents
push dword [esp + 0x28]
call edi
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov dword [esp + 0x24], esp
push eax
call fcn.00402741
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0xc4], 5
mov dword [esp + 0x3c], esp
mov dword [esp + 0x28], esp
push dword [esp + 0x40]
call fcn.00402741
pop ecx
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0xc4], 4
call fcn.0041da6d
lea eax, [esp + 0x54]
push eax
call fcn.004013bc
mov byte [esp + 0xb0], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00402741
add eax, 0x10
pop ecx
mov dword [esp + 0x30], eax
add eax, 0xfffffff0
mov byte [esp + 0xb0], 7
push eax
mov dword [esp + 0x28], eax
call fcn.00402741
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xb4], 8
mov dword [esp], 0x599168
push esi
lea ecx, [esp + 0x1c]
call fcn.00410f02
mov esi, dword [esp + 0x14]
push ecx
mov dword [esp + 0x2c], esp
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
push esi
call fcn.00402741
pop ecx
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esp + 0x58]
push eax
call fcn.00410418
pop ecx
pop ecx
mov ecx, esi
call fcn.00402a50
mov byte [esp + 0xb0], 6
mov ecx, dword [esp + 0x24]
call fcn.00402a50
cmp dword [esp + 0x60], 0
jle 0x41e047
cmp dword [esp + 0x54], 1
jne 0x41e047
mov eax, dword [esp + 0x18]
push 1
push dword [esp + 0x5c]
add eax, 0xfffffff0
push 1
push ecx
mov dword [esp + 0x40], esp
mov esi, esp
push eax
call fcn.00402741
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0xc4], 9
mov dword [esp + 0x38], esp
mov esi, esp
push dword [esp + 0x40]
call fcn.00402741
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [esp + 0xc4], 6
call fcn.0041da6d
lea esi, [esp + 0x54]
call fcn.004013fe
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0xb0], 0
call fcn.00402a50
test ebx, ebx
jne 0x41de1f
or dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0043935e
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00439076
int3