Function at 0x1400605d0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1200]
mov eax, 0x1300
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x11f0], rax
mov rsi, r8
mov rbx, rdx
lea rdx, str.CreatePrinterSettingInfo::MakeDefaultPortName
lea rcx, [rsp + 0x50]
call fcn.14001abe0
nop
lea r13, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x1400606aa
test byte [rcx + 0x1c], 1
je 0x14006066d
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.COMCTL32.dll_InitCommonControls
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x1400606aa
test byte [rcx + 0x1c], 1
je 0x1400606aa
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, send
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.14002fbe0
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140060fc5
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x9f0]
call fcn.1401e7e40
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x1d0]
call fcn.1401e7e40
mov r15, 0xffffffffffffffff
test rsi, rsi
jne 0x140060784
mov r12d, 1
mov dword [0x1402bbd98], r12d
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14006075c
test byte [rcx + 0x1c], 4
je 0x14006075c
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rsi + 0x13]
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
mov byte [rsp + 0x58], r12b
mov r14d, 0x80010001
cmp rcx, r13
je 0x140060eee
test byte [rcx + 0x1c], r12b
je 0x140060eee
mov edx, socket
jmp 0x140060ec5
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x9f0]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea r8, str.InsDrv.ini
mov edx, 0x400
lea rcx, [rbp + 0x9f0]
call fcn.1401ec614
lea rax, [rbp + 0x9f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
lea r9, [rbp - 0x60]
lea r8, [0x140251dfc]
lea rdx, str.DefaultPort
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140060d5a
cmp word [rbp - 0x60], 0
je 0x140060d5a
lea rdx, str.MANUAL
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140060bdd
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14006086f
test byte [rcx + 0x1c], 4
je 0x14006086f
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rax + 0x16]
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
test rbx, rbx
jne 0x1400608f9
cmp rcx, r13
je 0x1400608a9
test byte [rcx + 0x1c], 4
je 0x1400608a9
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rbx + 0x17]
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402bbf58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x180]
mov r8d, 0x208
lea rdx, [rbp + 0x1d0]
mov rcx, r9
call qword [case.0x1400136d6.0]
lea r8, [rbp + 0x1d0]
lea rcx, str.LPT1:
test eax, eax
cmove r8, rcx
jmp 0x140060c23
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x5e0]
call fcn.1401e7e40
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140060fba
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
cmp rbx, 0x10000
jae 0x14006095d
movzx edx, bx
lea rcx, [rsp + 0x40]
call fcn.1400041d0
jmp 0x14006097b
mov rax, r15
inc rax
cmp word [rbx + rax*2], 0
jne 0x140060960
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004e60
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x9f0]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x9f0]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea r8, str.Envini.INI
mov edx, 0x400
lea rcx, [rbp + 0x9f0]
call fcn.1401ec614
mov rcx, qword [0x1402bbf58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x48]
mov rbx, qword [rsp + 0x40]
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060a52
test byte [rcx + 0x1c], 4
je 0x140060a52
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x18
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x48]
mov rcx, r8
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x9f0]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x208
lea r9, [rbp + 0x5e0]
mov r8, rax
lea rdx, str.DefaultPort
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140060af8
cmp word [rbp + 0x5e0], 0
je 0x140060af8
lea r8, [rbp + 0x5e0]
mov edx, 0x208
mov rcx, rsi
call fcn.1401ebfa8
nop
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140060c30
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
jmp 0x140060c30
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060b32
test byte [rcx + 0x1c], 4
je 0x140060b32
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x19
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
lea rdx, str.UNKNOWN
mov rax, r15
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140060b40
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140004e60
mov r8, qword [rsp + 0x38]
mov edx, 0x208
mov rcx, rsi
call fcn.1401ebfa8
mov byte [rsp + 0x58], 1
xor r14d, r14d
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060bb0
test byte [rcx + 0x1c], 1
je 0x140060bb0
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [r14 + 0x1a]
mov dword [rsp + 0x20], r14d
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140060eee
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
jmp 0x140060eee
mov rcx, qword [0x1402bbf58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x180]
mov r8d, 0x208
lea rdx, [rbp + 0x1d0]
mov rcx, r9
call qword [case.0x1400136d6.0]
test eax, eax
jne 0x140060dd3
lea r8, str.LPT1:
mov edx, 0x208
mov rcx, rsi
call fcn.1401ebfa8
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060c6f
test byte [rcx + 0x1c], 4
je 0x140060c6f
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1b
mov qword [rsp + 0x20], rsi
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
mov r12d, r14d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 2]
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_EnumPortsW]
mov edx, dword [rsp + 0x30]
lea ecx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140060e32
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, rbx
lea edx, [r14 + 2]
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_EnumPortsW]
test eax, eax
je 0x140060e24
mov edx, dword [rsp + 0x34]
lea r9, [0x1400d3710]
lea r8d, [r14 + 0x20]
mov rcx, rbx
call fcn.1401fe3a0
mov r9d, r14d
mov r10d, dword [rsp + 0x34]
test r10d, r10d
je 0x140060e24
nop word [rax + rax]
mov ecx, r9d
shl rcx, 5
mov rax, rsi
mov r8, qword [rcx + rbx]
sub r8, rsi
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140060d45
add rax, 2
test ecx, ecx
jne 0x140060d31
test edx, edx
je 0x140060ddf
inc r9d
cmp r9d, r10d
jb 0x140060d20
jmp 0x140060e24
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060d94
test byte [rcx + 0x1c], 4
je 0x140060d94
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402bbf58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x180]
mov r8d, 0x208
lea rdx, [rbp + 0x1d0]
mov rcx, r9
call qword [case.0x1400136d6.0]
test eax, eax
je 0x140060c1c
lea r8, [rbp + 0x1d0]
jmp 0x140060c23
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060e1e
test byte [rcx + 0x1c], 4
je 0x140060e1e
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1c
mov qword [rsp + 0x20], rsi
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov r12d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r12d, r12d
jne 0x140060ea9
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060e71
test byte [rcx + 0x1c], 4
je 0x140060e71
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1d
mov qword [rsp + 0x20], rsi
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rdx, str.UNKNOWN
mov rax, r15
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r14w
jne 0x140060e80
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140004e60
mov r8, qword [rsp + 0x38]
mov edx, 0x208
mov rcx, rsi
call fcn.1401ebfa8
mov byte [rsp + 0x58], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060eee
test byte [rcx + 0x1c], 1
je 0x140060eee
mov edx, 0x1e
mov r9, rdi
cmp qword [0x1402bbdc8], 8
mov dword [rsp + 0x20], r14d
cmovae r9, qword [0x1402bbdb0]
lea r8, [0x140256650]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x140060f17
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x58], 0
jne 0x140060f7a
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140060f7a
test byte [rcx + 0x1c], 1
je 0x140060f7a
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], r8
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x80]
call fcn.1400048a0
lea rcx, [rsp + 0x60]
call fcn.1400048a0
mov eax, r14d
mov rcx, qword [rbp + 0x11f0]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x1340]
add rsp, 0x1300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001470
nop
mov ecx, 0x80004005
call fcn.140001470
int3