Function at 0x402ee0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ecb9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4516f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
push 0x4460c8
call fcn.004020f0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x403071
call fcn.0040b4b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402f52
push 0x80004005
call fcn.004021b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
jl 0x402f8c
push 0x445ee8
push ecx
call fcn.004296ec
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x402f8c
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x402fa4
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x10]
push str._s_s
push edx
call fcn.004049b0
add esp, 0x10
jmp 0x402fb0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.004019d0
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 0xc], 0
je 0x403051
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
test edi, edi
je 0x403051
push 0x80
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403051
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
push 0
push esi
call fcn.0042af90
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push ebx
push 0x80
push esi
push 0x4460c8
push str.ModelNameI
push str.User_Mode_Printer_Driver_Information
call edi
test eax, eax
ja 0x403034
mov ecx, dword [ebp + 0x14]
push ebx
push 0x80
push esi
push 0x4460c8
push str.DeviceName
push ecx
call edi
test eax, eax
jbe 0x40303d
mov ecx, dword [ebp + 8]
push esi
call fcn.004020a0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x403051
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403071
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret