Function at 0x4439e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e1b1
mov eax, dword fs:[0]
push eax
mov eax, 0x12a0
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push str.CreatePrinterSettingInfo::MakeDefaultPortName
lea ecx, [ebp - 0x1290]
mov dword [ebp - 0x129c], esi
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443ab7
test byte [ecx + 0x1c], 1
je 0x443a7b
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cbda4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x443ab7
test byte [ecx + 0x1c], 1
je 0x443ab7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cbda4
push esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x12
call fcn.00430170
add esp, 0x14
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x444232
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x12a4], esi
push 0x800
lea eax, [ebp - 0x1258]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00571c00
push 0x410
xorps xmm0, xmm0
lea eax, [ebp - 0x648]
push 0
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.00571c00
add esp, 0x18
test edi, edi
jne 0x443bb4
mov dword [0x6183ec], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443b64
test byte [ecx + 0x1c], 4
je 0x443b64
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cbda4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [edi + 0x13]
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
mov byte [ebp - 0x128c], 1
cmp ecx, 0x608f30
je 0x443baa
test byte [ecx + 0x1c], 1
je 0x443baa
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0x80010001
cmovae eax, dword [0x608f54]
mov edx, 0x5cbda4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x14
call fcn.004018a0
add esp, 0x10
mov edi, 0x80010001
jmp 0x4441ec
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1258]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
push str.InsDrv.ini
lea eax, [ebp - 0x1258]
push 0x400
push eax
call fcn.00574a48
add esp, 0xc
lea eax, [ebp - 0x1258]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x5c6930
push str.DefaultPort
push str.Installer_Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x443f30
cmp word [ebp - 0x30], 0
je 0x443f30
push str.MANUAL
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x443cbc
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443c79
test byte [ecx + 0x1c], 4
je 0x443c79
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cbda4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x16
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp dword [ebp - 0x129c], 0
jne 0x443cea
cmp ecx, 0x608f30
je 0x443cbc
test byte [ecx + 0x1c], 4
je 0x443cbc
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x17
mov edx, 0x5cbda4
call fcn.00401840
add esp, 0xc
mov ecx, dword [0x6184f4]
lea eax, [ebp - 0x648]
push 0x208
push eax
mov ecx, dword [ecx + 4]
call fcn.0050aa60
test eax, eax
je 0x443f70
lea eax, [ebp - 0x648]
push eax
jmp 0x443f75
push 0x208
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00571c00
push 0x410
lea eax, [ebp - 0xa58]
push 0
push eax
call fcn.00571c00
add esp, 0x18
lea ecx, [ebp - 0x1294]
push dword [ebp - 0x129c]
call fcn.00403320
push 0x800
lea eax, [ebp - 0x1258]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1258]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.TEMPPATH
call fcn.004f65f0
push str.Envini.INI
lea eax, [ebp - 0x1258]
push 0x400
push eax
call fcn.00574a48
mov ecx, dword [0x6184f4]
lea eax, [ebp - 0x238]
add esp, 0xc
mov ecx, dword [ecx + 4]
push dword [ebp - 0x1294]
push eax
call fcn.005077d0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443dd3
test byte [ecx + 0x1c], 4
je 0x443dd3
cmp dword [0x608f68], 8
lea edx, [ebp - 0x238]
push edx
mov eax, 0x608f54
mov edx, 0x5cbda4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x18
call fcn.00405920
add esp, 0x10
mov ecx, dword [0x6184f0]
mov ecx, dword [ecx + 0x34]
call fcn.004e4690
lea ecx, [ebp - 0x1258]
push ecx
push 0x208
lea ecx, [ebp - 0xa58]
push ecx
push eax
push str.DefaultPort
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x443e55
cmp word [ebp - 0xa58], 0
je 0x443e55
lea eax, [ebp - 0xa58]
push eax
push 0x208
push edi
call fcn.005746e6
mov byte [ebp - 4], 1
add esp, 0xc
mov edx, dword [ebp - 0x1294]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x443f83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x443f83
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443e95
test byte [ecx + 0x1c], 4
je 0x443e95
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cbda4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x19
call fcn.00401840
add esp, 0xc
push 9
push str.UNKNOWN
lea ecx, [ebp - 0x12a4]
call fcn.00403bb0
mov esi, dword [ebp - 0x12a4]
push esi
push 0x208
push edi
call fcn.005746e6
add esp, 0xc
mov byte [ebp - 0x128c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443f05
test byte [ecx + 0x1c], 1
je 0x443f05
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cbda4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1a
call fcn.004018a0
add esp, 0x10
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x1294]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4441ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4441ea
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443cbc
test byte [ecx + 0x1c], 4
je 0x443cbc
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x15
jmp 0x443caf
push str.LPT1:
push 0x208
push edi
call fcn.005746e6
add esp, 0xc
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x443fc4
test byte [ecx + 0x1c], 4
je 0x443fc4
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cbda4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1b
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0x1298]
mov dword [ebp - 0x12a0], 0
push eax
lea eax, [ebp - 0x12a0]
mov dword [ebp - 0x1298], 0
push eax
push 0
push 0
push 2
push 0
mov dword [ebp - 0x12ac], 0
call dword [sym.imp.WINSPOOL.DRV_EnumPortsW]
push dword [ebp - 0x12a0]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1294], eax
test eax, eax
je 0x444139
lea ecx, [ebp - 0x1298]
push ecx
lea ecx, [ebp - 0x12a0]
push ecx
push dword [ebp - 0x12a0]
push eax
push 2
push 0
call dword [sym.imp.WINSPOOL.DRV_EnumPortsW]
test eax, eax
je 0x444124
push 0x49b4d0
push 0x14
push dword [ebp - 0x1298]
push dword [ebp - 0x1294]
call fcn.00581400
add esp, 0x10
mov dword [ebp - 0x129c], 0
cmp dword [ebp - 0x1298], 0
jbe 0x444124
mov eax, dword [ebp - 0x1294]
mov dword [ebp - 0x12a8], eax
nop
mov ecx, dword [eax]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4440aa
test dx, dx
je 0x4440a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4440aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x444084
xor eax, eax
jmp 0x4440af
sbb eax, eax
or eax, 1
test eax, eax
je 0x4440d9
mov edx, dword [ebp - 0x129c]
mov eax, dword [ebp - 0x12a8]
inc edx
add eax, 0x14
mov dword [ebp - 0x129c], edx
mov dword [ebp - 0x12a8], eax
cmp edx, dword [ebp - 0x1298]
jb 0x444080
jmp 0x444124
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x44411a
test byte [ecx + 0x1c], 4
je 0x44411a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cbda4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1c
call fcn.00405920
add esp, 0x10
mov dword [ebp - 0x12ac], 1
push dword [ebp - 0x1294]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x12ac], 0
jne 0x4441a1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x44417a
test byte [ecx + 0x1c], 4
je 0x44417a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cbda4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1d
call fcn.00405920
add esp, 0x10
push 9
push str.UNKNOWN
lea ecx, [ebp - 0x12a4]
call fcn.00403bb0
mov esi, dword [ebp - 0x12a4]
push esi
push 0x208
push edi
call fcn.005746e6
add esp, 0xc
mov byte [ebp - 0x128c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4441ea
test byte [ecx + 0x1c], 1
je 0x4441ea
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cbda4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1e
call fcn.004018a0
add esp, 0x10
xor edi, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x444208
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x1290]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004013a0
int3