Function at 0x140050630
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa48]
sub rsp, 0xb48
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0xa30], rax
mov r13, r9
mov r12, r8
mov r15, rdx
mov rbx, rcx
mov rdi, qword [rbp + 0xab0]
mov qword [rsp + 0x58], rdi
lea rdx, str.CheckPrinterDriverInstall::CompareAndCopyFile
lea rcx, [rbp - 0x70]
call fcn.14001abe0
nop
lea rsi, [0x1402a8360]
lea r14, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x14005071c
test byte [rcx + 0x1c], 1
je 0x1400506d5
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WSOCK32.dll_WSAGetLastError
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x14005071c
test byte [rcx + 0x1c], 1
je 0x14005071c
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, WSAStartup
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140047e80
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
lea rcx, [rsp + 0x60]
call fcn.1401c8bf0
nop
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x44], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x610]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x820]
call fcn.1401e7e40
xor edi, edi
mov dword [rsp + 0x50], edi
lea rcx, [rsp + 0x48]
call fcn.140091e00
nop
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
cmp dword [rax + 0xa64], 2
jne 0x140050810
mov rax, qword [rbx]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov rax, qword [rax + 0xa8]
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0xb8]
call qword [case.0x1400136d6.0]
mov edi, eax
mov dword [rsp + 0x50], eax
test r15, r15
je 0x140050825
mov rdx, r15
lea rcx, [rbp + 0x610]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test r12, r12
je 0x14005083a
mov rdx, r12
lea rcx, [rbp + 0x820]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [rsp + 0x40], 2
jge 0x140050cbe
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
cmp dword [rax + 0xa64], 2
jne 0x140050917
mov eax, dword [rsp + 0x44]
test eax, edi
je 0x140050ca6
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0xc8]
mov edx, dword [rsp + 0x40]
mov rcx, r8
call qword [case.0x1400136d6.0]
mov rbx, rax
mov rdx, r15
lea rcx, [rbp + 0x610]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, r12
lea rcx, [rbp + 0x820]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x610]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rbp + 0x820]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rdx, rbx
lea rcx, [rbp + 0x610]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rbx
lea rcx, [rbp + 0x820]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x610]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rbp + 0x820]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp word [r13], 0
je 0x140050ac4
xor edx, edx
lea r8, [rdx - 1]
lea rcx, [rsp + 0x60]
call fcn.1401c921c
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140093c10
xor ebx, ebx
mov rax, qword [rsp + 0x70]
movsxd rsi, eax
test eax, eax
jle 0x140050ab4
nop word [rax + rax]
test rbx, rbx
js 0x140050db7
cmp rbx, rax
jge 0x140050db7
lfence
mov r9d, 2
lea r8, [rbp - 0x20]
mov rdx, qword [rsp + 0x68]
mov rdx, qword [rdx + rbx*8]
lea rcx, [rsp + 0x48]
call fcn.140094600
lea r9, [rbp - 0x20]
mov r8, r13
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x400]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp - 0x20]
mov r8, r15
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 1
lea r8, [rbp + 0x1f0]
lea rdx, [rbp + 0x400]
lea rcx, [rsp + 0x48]
call fcn.1400948e0
test eax, eax
jle 0x140050a68
xor r8d, r8d
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140050aa2
mov rax, qword [0x1402a8360]
lea rcx, [0x1402a8360]
cmp rax, rcx
je 0x140050aa2
test byte [rax + 0x1c], 2
je 0x140050aa2
mov rdi, r14
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
lea rcx, [rbp - 0x70]
call fcn.14001b0b0
mov edx, WSAStartup
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140254a20]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
jmp 0x140050aa2
cmp eax, 0xffffffff
jne 0x140050aa2
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]
lea r8, [0x140255230]
lea rdx, str.DRVMDLEXIST
mov rcx, r9
call qword [case.0x1400136d6.0]
inc rbx
cmp rbx, rsi
jge 0x140050ab4
mov rax, qword [rsp + 0x70]
jmp 0x140050960
xor edx, edx
lea r8, [rdx - 1]
lea rcx, [rsp + 0x60]
call fcn.1401c921c
mov rbx, qword [rsp + 0x58]
cmp word [rbx], 0
je 0x140050c81
xor edx, edx
lea r8, [rdx - 1]
lea rcx, [rsp + 0x60]
call fcn.1401c921c
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.140093c10
xor edi, edi
mov rax, qword [rsp + 0x70]
movsxd rsi, eax
test eax, eax
jle 0x140050c71
nop word [rax + rax]
test rdi, rdi
js 0x140050db7
cmp rdi, rax
jge 0x140050db7
lfence
mov rax, qword [rsp + 0x68]
mov r9d, 2
lea r8, [rbp - 0x20]
mov rdx, qword [rax + rdi*8]
lea rcx, [rsp + 0x48]
call fcn.140094600
lea r9, [rbp - 0x20]
mov r8, r12
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp - 0x20]
mov r8, rbx
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x400]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 1
lea r8, [rbp + 0x1f0]
lea rdx, [rbp + 0x400]
lea rcx, [rsp + 0x48]
call fcn.1400948e0
test eax, eax
jle 0x140050c25
xor r8d, r8d
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140050c5f
mov rax, qword [0x1402a8360]
lea rcx, [0x1402a8360]
cmp rax, rcx
je 0x140050c5f
test byte [rax + 0x1c], 2
je 0x140050c5f
mov rbx, r14
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x70]
call fcn.14001b0b0
mov edx, WSAStartup
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140254a20]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rbx, qword [rsp + 0x58]
jmp 0x140050c5f
cmp eax, 0xffffffff
jne 0x140050c5f
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]
lea r8, [0x140255230]
lea rdx, str.DRVMDLEXIST
mov rcx, r9
call qword [case.0x1400136d6.0]
inc rdi
cmp rdi, rsi
jge 0x140050c71
mov rax, qword [rsp + 0x70]
jmp 0x140050b10
xor edx, edx
lea r8, [rdx - 1]
lea rcx, [rsp + 0x60]
call fcn.1401c921c
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
cmp dword [rax + 0xa64], 2
jne 0x140050cbe
mov eax, dword [rsp + 0x44]
mov edi, dword [rsp + 0x50]
add eax, eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp eax, 2
jmp 0x14005083f
mov byte [rbp - 0x68], 1
mov rcx, qword [0x1402a8360]
lea rbx, [0x1402a8360]
cmp rcx, rbx
je 0x140050d0c
test byte [rcx + 0x1c], 1
je 0x140050d0c
mov r9, r14
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WSOCK32.dll_WSAStartup
mov dword [rsp + 0x20], 0
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x48]
call fcn.140091f70
nop
lea rcx, [rsp + 0x60]
call fcn.1401c8c10
nop
lea rax, vtable.WppTrace.0
mov qword [rbp - 0x70], rax
cmp byte [rbp - 0x68], 0
jne 0x140050d80
mov rcx, qword [0x1402a8360]
cmp rcx, rbx
je 0x140050d80
test byte [rcx + 0x1c], 1
je 0x140050d80
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
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 - 0x40]
call fcn.1400048a0
lea rcx, [rbp - 0x60]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0xb48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401bb848
nop
int3