Function at 0x401200
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e24e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x168]
xor ebx, ebx
xor esi, esi
cmp eax, 1
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xf000c
jne 0x401250
lea esi, [esp + 0x24]
push ecx
lea eax, [esp + 0x168]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call fcn.00402330
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00401020
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 1
call fcn.00401d50
test eax, eax
jne 0x40145a
push esi
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402cb0
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x40145a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 2
push ebx
push ecx
mov dword [esp + 0x34], ebx
call sub.WINSPOOL.DRV_GetPrinterDriverA
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40143f
push eax
call fcn.0041563f
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40143f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push 2
push ebx
push ecx
call sub.WINSPOOL.DRV_GetPrinterDriverA
test eax, eax
je 0x40143f
mov edx, dword [ebp + 0x10]
cmp edx, ebx
je 0x40143f
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
mov ecx, eax
xor edi, edi
mov esi, 0x104
sub edx, ecx
mov edi, edi
mov cl, byte [edx + eax]
cmp cl, bl
je 0x40133f
mov byte [eax], cl
inc eax
dec esi
jne 0x401330
jmp 0x401343
cmp esi, ebx
jne 0x401349
dec eax
mov edi, 0x8007007a
cmp edi, ebx
mov byte [eax], bl
je 0x401390
mov edx, dword [esp + 0x10]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
push ebp
call fcn.0041563a
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], bl
call fcn.00401910
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00401910
xor eax, eax
jmp 0x401485
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
call fcn.00401150
lea ecx, [esp + 0x50]
push str..VIF
push ecx
call fcn.00415650
add esp, 8
test eax, eax
je 0x40143f
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
push eax
mov dword [esp + 0x3c], edx
push 0x20
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x4c], edx
push 0x4202b4
mov dword [esp + 0x54], edx
push str.SAInstI
mov dword [esp + 0x5c], edx
push str.User_Mode_Printer_Driver_Information
mov dword [esp + 0x64], edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
je 0x40143f
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402390
push str.E_ARCV02.DLL
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 2
call fcn.00401540
test eax, eax
jne 0x40142e
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 1
call fcn.00401910
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40144d
push eax
call sub.WINSPOOL.DRV_ClosePrinter
cmp ebp, ebx
je 0x40145a
push ebp
call fcn.0041563a
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], bl
call fcn.00401910
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00401910
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x150
ret 8