Function at 0x14015c360
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 [0x1402aa5c0]
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 0x14015c3e2
xor eax, eax
jmp 0x14015ca81
mov r8d, 1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.14015a060
nop
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14015a060
nop
lea rcx, [rsp + 0x50]
call fcn.140006eb0
movzx eax, al
test eax, eax
je 0x14015c42e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140002db0
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14023d9d0]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x14015c47b
mov dword [rsp + 0x2b0], 0
lea rcx, [rsp + 0x50]
call fcn.140001490
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x2b0]
jmp 0x14015ca81
lea rcx, [rsp + 0x40]
call fcn.140002de0
nop
mov rcx, qword [rsp + 0x3b0]
call fcn.14015a360
mov eax, eax
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 6
jb 0x14015c59d
mov rcx, qword [rsp + 0x3b0]
call fcn.14015a360
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
test eax, eax
jne 0x14015c4ea
lea rdx, [0x14023d9f8]
lea rcx, [rsp + 0x40]
call fcn.1400020d0
mov rcx, qword [rsp + 0x3b0]
call fcn.14015a360
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
jne 0x14015c525
lea rdx, [0x14023da08]
lea rcx, [rsp + 0x40]
call fcn.1400020d0
mov rcx, qword [rsp + 0x3b0]
call fcn.14015a360
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x14015c560
lea rdx, [0x14023da18]
lea rcx, [rsp + 0x40]
call fcn.1400020d0
mov rcx, qword [rsp + 0x3b0]
call fcn.14015a360
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 3
jne 0x14015c59b
lea rdx, [0x14023da28]
lea rcx, [rsp + 0x40]
call fcn.1400020d0
jmp 0x14015c5ae
lea rdx, [0x14023d684]
lea rcx, [rsp + 0x40]
call fcn.1400020d0
mov r8d, 1
mov rax, qword [rsp + 0x3b0]
movzx edx, word [rax + 0x218]
lea rcx, [rsp + 0x2b8]
call fcn.140005ec0
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.140006bd0
mov qword [rsp + 0x330], rax
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x338], rax
lea r8, [0x14023da38]
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.14000f8f0
mov rcx, rax
call fcn.140004bf0
nop
lea rcx, [rsp + 0x2d0]
call fcn.140001490
nop
lea rcx, [rsp + 0x2c8]
call fcn.140001490
nop
lea rcx, [rsp + 0x2c0]
call fcn.140001490
nop
lea rcx, [rsp + 0x2b8]
call fcn.140001490
lea rcx, [rsp + 0x60]
call fcn.140002de0
nop
lea rcx, [rsp + 0x38]
call fcn.140002de0
nop
lea rcx, [rsp + 0x68]
call fcn.140002de0
nop
lea rcx, [rsp + 0x48]
call fcn.140002de0
nop
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2d8]
call fcn.14015a1a0
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.140002db0
nop
lea rcx, [rsp + 0x2d8]
call fcn.140001490
lea rcx, [rsp + 0x50]
call fcn.14000f8f0
mov rdi, rax
lea rcx, [rsp + 0x60]
call fcn.14000f8f0
mov rdx, rdi
mov rcx, rax
call fcn.1400aa794
test eax, eax
je 0x14015c773
jmp 0x14015ca0b
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2e0]
call fcn.14015a1a0
mov qword [rsp + 0x360], rax
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x48]
call fcn.140019a90
lea rcx, [rsp + 0x2e0]
call fcn.140001490
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x88]
call fcn.140002100
nop
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x88]
call fcn.1400068a0
mov r8d, eax
lea rdx, [rsp + 0x2e8]
lea rcx, [rsp + 0x88]
call fcn.140006b20
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.140002db0
nop
lea rcx, [rsp + 0x2e8]
call fcn.140001490
lea rcx, [rsp + 0x48]
call fcn.140001a40
test eax, eax
jle 0x14015c864
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x88]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x38]
call fcn.140002c70
jmp 0x14015c882
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x88]
lea rdx, [0x14023daa0]
lea rcx, [rsp + 0x38]
call fcn.140002c70
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.140005ec0
mov qword [rsp + 0x378], rax
mov rax, qword [rsp + 0x378]
mov qword [rsp + 0x380], rax
lea r8, [0x14023dab0]
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.1400a97a4
lea rcx, [rsp + 0x2f8]
call fcn.140001490
nop
lea rcx, [rsp + 0x2f0]
call fcn.140001490
lea rcx, [rsp + 0x38]
call fcn.14000f8f0
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.1400a97a4
lea rcx, [rsp + 0x38]
call fcn.14000f8f0
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.1400a97a4
lea rcx, [rsp + 0x38]
call fcn.14000f8f0
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.140001490
jmp 0x14015ca23
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x14015c6fb
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x300], eax
lea rcx, [rsp + 0x48]
call fcn.140001490
nop
lea rcx, [rsp + 0x68]
call fcn.140001490
nop
lea rcx, [rsp + 0x38]
call fcn.140001490
nop
lea rcx, [rsp + 0x60]
call fcn.140001490
nop
lea rcx, [rsp + 0x40]
call fcn.140001490
nop
lea rcx, [rsp + 0x50]
call fcn.140001490
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x300]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x3a0
pop rdi
ret