Function at 0x140160620
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3a0
mov qword [rsp + 0x308], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x70], 0
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep stosb byte [rdi], al
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x3c0]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x1401606a2
xor eax, eax
jmp 0x140160d41
mov r8d, 1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.14015e320
nop
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14015e320
nop
lea rcx, [rsp + 0x50]
call fcn.140006ea0
movzx eax, al
test eax, eax
je 0x1401606ee
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140002ce0
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14024ebe0]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x14016073b
mov dword [rsp + 0x2b0], 0
lea rcx, [rsp + 0x50]
call fcn.140007060
nop
lea rcx, [rsp + 0x30]
call fcn.140007060
mov eax, dword [rsp + 0x2b0]
jmp 0x140160d41
lea rcx, [rsp + 0x40]
call fcn.140002d10
nop
mov rcx, qword [rsp + 0x3b0]
call fcn.14015e620
mov eax, eax
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 6
jb 0x14016085d
mov rcx, qword [rsp + 0x3b0]
call fcn.14015e620
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
test eax, eax
jne 0x1401607aa
lea rdx, str.Vista
lea rcx, [rsp + 0x40]
call fcn.140002020
mov rcx, qword [rsp + 0x3b0]
call fcn.14015e620
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
jne 0x1401607e5
lea rdx, [0x14024ec18]
lea rcx, [rsp + 0x40]
call fcn.140002020
mov rcx, qword [rsp + 0x3b0]
call fcn.14015e620
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x140160820
lea rdx, [0x14024ec28]
lea rcx, [rsp + 0x40]
call fcn.140002020
mov rcx, qword [rsp + 0x3b0]
call fcn.14015e620
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 3
jne 0x14016085b
lea rdx, [0x14024ec38]
lea rcx, [rsp + 0x40]
call fcn.140002020
jmp 0x14016086e
lea rdx, [0x14024e894]
lea rcx, [rsp + 0x40]
call fcn.140002020
mov r8d, 1
mov rax, qword [rsp + 0x3b0]
movzx edx, word [rax + 0x218]
lea rcx, [rsp + 0x2b8]
call fcn.140005e70
mov qword [rsp + 0x310], rax
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x318], rax
lea r8, str.:CCBootClientCCBootPnP_
mov rdx, qword [rsp + 0x318]
lea rcx, [rsp + 0x2c0]
call fcn.1400010b0
mov qword [rsp + 0x320], rax
mov rax, qword [rsp + 0x320]
mov qword [rsp + 0x328], rax
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x328]
lea rcx, [rsp + 0x2c8]
call fcn.140006c50
mov qword [rsp + 0x330], rax
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x338], rax
lea r8, [0x14024ec48]
mov rdx, qword [rsp + 0x338]
lea rcx, [rsp + 0x2d0]
call fcn.1400010b0
mov qword [rsp + 0x340], rax
mov rax, qword [rsp + 0x340]
mov qword [rsp + 0x348], rax
mov rcx, qword [rsp + 0x348]
call fcn.140050200
mov rcx, rax
call fcn.140004b40
nop
lea rcx, [rsp + 0x2d0]
call fcn.140007060
nop
lea rcx, [rsp + 0x2c8]
call fcn.140007060
nop
lea rcx, [rsp + 0x2c0]
call fcn.140007060
nop
lea rcx, [rsp + 0x2b8]
call fcn.140007060
lea rcx, [rsp + 0x60]
call fcn.140002d10
nop
lea rcx, [rsp + 0x38]
call fcn.140002d10
nop
lea rcx, [rsp + 0x68]
call fcn.140002d10
nop
lea rcx, [rsp + 0x48]
call fcn.140002d10
nop
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2d8]
call fcn.14015e460
mov qword [rsp + 0x350], rax
mov rax, qword [rsp + 0x350]
mov qword [rsp + 0x358], rax
mov rdx, qword [rsp + 0x358]
lea rcx, [rsp + 0x60]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x2d8]
call fcn.140007060
lea rcx, [rsp + 0x50]
call fcn.140050200
mov rdi, rax
lea rcx, [rsp + 0x60]
call fcn.140050200
mov rdx, rdi
mov rcx, rax
call fcn.1400ab9f8
test eax, eax
je 0x140160a33
jmp 0x140160ccb
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2e0]
call fcn.14015e460
mov qword [rsp + 0x360], rax
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x48]
call fcn.14001b000
lea rcx, [rsp + 0x2e0]
call fcn.140007060
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x88]
call fcn.140002050
nop
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x88]
call fcn.140006920
mov r8d, eax
lea rdx, [rsp + 0x2e8]
lea rcx, [rsp + 0x88]
call fcn.140006ba0
mov qword [rsp + 0x368], rax
mov rax, qword [rsp + 0x368]
mov qword [rsp + 0x370], rax
mov rdx, qword [rsp + 0x370]
lea rcx, [rsp + 0x88]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x2e8]
call fcn.140007060
lea rcx, [rsp + 0x48]
call fcn.1400019a0
test eax, eax
jle 0x140160b24
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x88]
lea rdx, [0x14024ec98]
lea rcx, [rsp + 0x38]
call fcn.140002ba0
jmp 0x140160b42
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x88]
lea rdx, [0x14024ecb0]
lea rcx, [rsp + 0x38]
call fcn.140002ba0
xor eax, eax
mov word [rsp + 0xa0], ax
lea rdi, [rsp + 0xa2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 1
mov rax, qword [rsp + 0x3b0]
movzx edx, word [rax + 0x218]
lea rcx, [rsp + 0x2f0]
call fcn.140005e70
mov qword [rsp + 0x378], rax
mov rax, qword [rsp + 0x378]
mov qword [rsp + 0x380], rax
lea r8, [0x14024ecc0]
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0x2f8]
call fcn.1400010b0
mov qword [rsp + 0x388], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x388]
mov r8, qword [r8]
lea rdx, str._sCCBootPnP_sCCBootPnP_s
lea rcx, [rsp + 0xa0]
call fcn.1400aa834
lea rcx, [rsp + 0x2f8]
call fcn.140007060
nop
lea rcx, [rsp + 0x2f0]
call fcn.140007060
lea rcx, [rsp + 0x38]
call fcn.140050200
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x3b0]
movzx r8d, word [rax + 0x218]
mov r9, qword [rsp + 0x30]
lea rdx, str._c:WindowsSystem32CCBootPnP_s
lea rcx, [rsp + 0xa0]
call fcn.1400aa834
lea rcx, [rsp + 0x38]
call fcn.140050200
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x3b0]
movzx r8d, word [rax + 0x218]
mov r9, qword [rsp + 0x30]
lea rdx, str._c:WindowsSystem32drivers_s
lea rcx, [rsp + 0xa0]
call fcn.1400aa834
lea rcx, [rsp + 0x38]
call fcn.140050200
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x88]
call fcn.140007060
jmp 0x140160ce3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1401609bb
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x300], eax
lea rcx, [rsp + 0x48]
call fcn.140007060
nop
lea rcx, [rsp + 0x68]
call fcn.140007060
nop
lea rcx, [rsp + 0x38]
call fcn.140007060
nop
lea rcx, [rsp + 0x60]
call fcn.140007060
nop
lea rcx, [rsp + 0x40]
call fcn.140007060
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
nop
lea rcx, [rsp + 0x30]
call fcn.140007060
mov eax, dword [rsp + 0x300]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x3a0
pop rdi
ret