Function at 0x1400869a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r12, r8
mov qword [rbp - 0x68], r8
mov r13, rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x28], r8
xor ebx, ebx
mov dword [rsp + 0x38], ebx
lea rdx, str.InstallUsbPrinter::SetUSBPrinterNamebyDeviceID
lea rcx, [rbp - 0x20]
call fcn.14001abe0
nop
lea rdi, [0x1402a8360]
lea r14, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x140086a39
test byte [rcx + 0x1c], 1
je 0x140086a39
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rbx + 0x17]
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x14008743b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x140251dfc]
mov r15, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140086a86
movzx edx, dx
lea rcx, [rsp + 0x30]
call fcn.1400041d0
jmp 0x140086aa8
mov rax, r15
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140086a90
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140004e60
nop
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x3c], ebx
mov qword [rbp - 0x70], rbx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x48], 0xf000c
test r13, r13
jne 0x140086bb7
mov byte [rbp - 0x18], 1
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x140086b13
test byte [rcx + 0x1c], 1
je 0x140086b13
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rax + 0x18]
mov dword [rsp + 0x20], ebx
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086b3d
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 [rbp - 0x20], rax
cmp byte [rbp - 0x18], 0
jne 0x140086b9b
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x140086b9b
test byte [rcx + 0x1c], 1
je 0x140086b9b
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
cmp qword [0x1402bbdc8], 8
cmovae r14, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp + 0x10]
call fcn.1400048a0
lea rcx, [rbp - 0x10]
call fcn.1400048a0
nop
mov rdx, qword [r12]
jmp 0x14008702e
lea rcx, [rsp + 0x60]
call fcn.1400484a0
nop
mov dword [rsp + 0x68], ebx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
lea r8, [rsp + 0x78]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14004da30
mov rcx, qword [r12]
cmp dword [rcx - 0x10], 0
jge 0x140086bf3
mov eax, r15d
jmp 0x140086c10
lea rdx, [0x140251df8]
call fcn.1401e7270
test rax, rax
jne 0x140086c09
mov eax, r15d
jmp 0x140086c10
sub rax, qword [r12]
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.140004340
nop
mov rsi, qword [rsp + 0x40]
lea rcx, [rsi - 0x18]
mov rdi, qword [rsp + 0x30]
lea rbx, [rdi - 0x18]
cmp rcx, rbx
je 0x140086c9a
cmp dword [rbx + 0x10], 0
jl 0x140086c84
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140086c84
call fcn.140004d00
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140086c74
lfence
mov r8, qword [rbx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
mov rdx, rbx
mov rcx, r8
call qword [case.0x1400136d6.0]
add rdi, 0x18
mov qword [rsp + 0x30], rdi
mov rsi, qword [rsp + 0x40]
jmp 0x140086c9a
mov r8d, dword [rsi - 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140004e60
mov rdi, qword [rsp + 0x30]
mov ebx, 1
xor r12d, r12d
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x78]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14004d770
test eax, eax
jne 0x140087058
cmp ebx, 0x12c
je 0x140086f13
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x14008745c
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
inc ebx
mov dword [rsp + 0x50], ebx
mov r8d, ebx
lea rdx, [0x1402566c8]
lea rcx, [rsp + 0x58]
call fcn.140018e20
nop
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x140086d2d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov rcx, rax
test rax, rax
jne 0x140086d51
call fcn.1401bb0c4
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x1400136d6.0]
mov rcx, rax
test rax, rax
je 0x140087451
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
or dword [rsp + 0x38], 1
mov r14, qword [rsp + 0x58]
mov eax, dword [r14 - 0x10]
mov dword [rsp + 0x6c], eax
movsxd r13, dword [rdi - 0x10]
lea r12d, [rax + r13]
test r12d, r12d
js 0x140087446
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r12d
or eax, ecx
jge 0x140086dc0
lfence
mov edx, r12d
lea rcx, [rsp + 0x70]
call fcn.140004e00
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x70]
add r13, r13
je 0x140086dea
test rbx, rbx
jne 0x140086ddc
call fcn.1401ec568
mov dword [rax], socket
call fcn.1401ec3fc
jmp 0x140086dea
mov r8, r13
mov rdx, rdi
mov rcx, rbx
call fcn.1401e7770
movsxd r8, dword [rsp + 0x6c]
add r8, r8
lea rcx, [rbx + r13]
je 0x140086e17
test rcx, rcx
jne 0x140086e0f
call fcn.1401ec568
mov dword [rax], socket
call fcn.1401ec3fc
jmp 0x140086e17
mov rdx, r14
call fcn.1401e7770
cmp r12d, dword [rbx - 0xc]
jg 0x140087446
mov dword [rbx - 0x10], r12d
movsxd rax, r12d
xor r12d, r12d
mov word [rbx + rax*2], r12w
lea rcx, [rbx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x140086e9a
cmp dword [rsi + 0x10], r12d
jl 0x140086e89
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140086e89
call fcn.140004d00
mov rbx, rax
mov ecx, r15d
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x140086e79
lfence
mov r8, qword [rsi]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
mov rdx, rsi
mov rcx, r8
call qword [case.0x1400136d6.0]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x70]
jmp 0x140086e9a
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004e60
and dword [rsp + 0x38], 0xfffffffe
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086ec4
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jle 0x140086eed
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x50]
jmp 0x140086ca2
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x50]
jmp 0x140086ca2
mov byte [rbp - 0x18], 1
mov rcx, qword [0x1402a8360]
lea rdi, [0x1402a8360]
cmp rcx, rdi
je 0x140086f62
test byte [rcx + 0x1c], 1
je 0x140086f62
cmp qword [0x1402bbdc8], 8
lea r9, [0x1402bbdb0]
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x19
mov dword [rsp + 0x20], r12d
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rdx, [rsi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086f87
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140086fe8
mov rax, qword [rbp - 0x78]
sub rax, rcx
sar rax, 2
movabs rdx, 0x77a9af922545a3cd
imul rax, rdx
imul rdx, rax, 0x414
mov rax, rcx
cmp rdx, 0x1000
jb 0x140086fd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087435
call fcn.1400079c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
lea rcx, [rsp + 0x60]
call fcn.140048610
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008701d
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rcx, [rbp - 0x20]
call fcn.14001ace0
nop
mov rdx, qword [rbp - 0x68]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x140087051
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
xor eax, eax
jmp 0x14008740e
lea rcx, [rsi - 0x18]
lea rbx, [rdi - 0x18]
cmp rcx, rbx
je 0x1400870c7
cmp dword [rbx + 0x10], 0
jl 0x1400870b1
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400870b1
call fcn.140004d00
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400870a1
lfence
mov r8, qword [rbx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
mov rdx, rbx
mov rcx, r8
call qword [case.0x1400136d6.0]
add rdi, 0x18
mov qword [rsp + 0x30], rdi
mov rsi, qword [rsp + 0x40]
jmp 0x1400870c7
mov r8d, dword [rsi - 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140004e60
mov rdi, qword [rsp + 0x30]
lea r8, [rbp - 0x58]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
mov ebx, eax
test eax, eax
je 0x14008723e
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14008723b
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x14008723b
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
test rax, rax
je 0x140087242
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x3c]
mov r8, r13
mov edx, 4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
mov ebx, eax
test eax, eax
je 0x140087242
mov edx, dword [rdi - 0x10]
test edx, edx
js 0x140087467
mov r14d, 1
sub r14d, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, r14d
jge 0x140087199
lfence
lea rcx, [rsp + 0x30]
call fcn.140004e00
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov qword [rbp - 0x40], rdi
mov rax, qword [r13 + 8]
mov qword [rbp - 0x38], rax
mov eax, dword [r13 + 0x10]
mov dword [rbp - 0x30], eax
xor r9d, r9d
lea r8, [rbp - 0x40]
lea edx, [r9 + 4]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterW]
mov ebx, eax
test eax, eax
je 0x140087242
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x88]
xor edx, edx
mov rcx, r8
call qword [case.0x1400136d6.0]
lea rcx, [rax + 0x418]
mov r8, rdi
mov edx, 0x208
call fcn.1401ebfa8
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 + 0x20]
mov r8, rdi
lea rdx, str.USBPRINTERNAME
mov rcx, r9
call qword [case.0x1400136d6.0]
jmp 0x140087242
mov ebx, r12d
mov r13, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140087257
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov qword [rsp + 0x48], r12
test r13, r13
je 0x140087265
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [rbp - 0x18], 1
mov rcx, qword [0x1402a8360]
lea rdi, [0x1402a8360]
lea r14, [0x1402bbdb0]
cmp rcx, rdi
je 0x1400872b6
test byte [rcx + 0x1c], 1
je 0x1400872b6
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
lea r8, [0x140258570]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rdx, [rsi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400872db
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008733c
mov rax, qword [rbp - 0x78]
sub rax, rcx
sar rax, 2
movabs rdx, 0x77a9af922545a3cd
imul rax, rdx
imul rdx, rax, 0x414
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008732a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087435
call fcn.1400079c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
lea rcx, [rsp + 0x60]
call fcn.140048610
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140087371
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 [rbp - 0x20], rax
cmp byte [rbp - 0x18], 0
jne 0x1400873cf
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x1400873cf
test byte [rcx + 0x1c], 1
je 0x1400873cf
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
cmp qword [0x1402bbdc8], 8
cmovae r14, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp + 0x10]
call fcn.1400048a0
lea rcx, [rbp - 0x10]
call fcn.1400048a0
nop
mov rdx, qword [rbp - 0x68]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x14008740c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401ec41c
nop
mov ecx, 0x80004005
call fcn.140001470
nop
mov ecx, 0x80070057
call fcn.140001470
int3
mov ecx, 0x80004005
call fcn.140001470
nop
mov ecx, 0x80004005
call fcn.140001470
int3
mov ecx, 0x80070057
call fcn.140001470
int3