Function at 0x140154440
Capabilities:
Check if file exists
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, 0x3e0
mov qword [rsp + 0x320], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
lea rdx, [0x140237944]
lea rcx, [rsp + 0x30]
call fcn.1400020d0
nop
mov rcx, qword [rsp + 0x3f0]
call fcn.140152a50
mov eax, eax
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 6
jb 0x1401545a1
mov rcx, qword [rsp + 0x3f0]
call fcn.140152a50
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
test eax, eax
jne 0x1401544f0
lea rdx, str.Vista
lea rcx, [rsp + 0x30]
call fcn.1400020a0
mov rcx, qword [rsp + 0x3f0]
call fcn.140152a50
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
jne 0x14015452b
lea rdx, [0x140237960]
lea rcx, [rsp + 0x30]
call fcn.1400020a0
mov rcx, qword [rsp + 0x3f0]
call fcn.140152a50
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x140154566
lea rdx, str.Win8
lea rcx, [rsp + 0x30]
call fcn.1400020a0
mov rcx, qword [rsp + 0x3f0]
call fcn.140152a50
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 3
jne 0x1401545a1
lea rdx, str.Win10
lea rcx, [rsp + 0x30]
call fcn.1400020a0
mov r8d, 1
mov rax, qword [rsp + 0x3f0]
movzx edx, word [rax + 0x228]
lea rcx, [rsp + 0x2b8]
call fcn.140005df0
mov qword [rsp + 0x328], rax
mov rax, qword [rsp + 0x328]
mov qword [rsp + 0x330], rax
lea r8, str.:CCBootClientCCBootPnP_
mov rdx, qword [rsp + 0x330]
lea rcx, [rsp + 0x2c0]
call fcn.1400010b0
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x340], rax
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x340]
lea rcx, [rsp + 0x2c8]
call fcn.140006bd0
mov qword [rsp + 0x348], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x350], rax
lea r8, [0x140237990]
mov rdx, qword [rsp + 0x350]
lea rcx, [rsp + 0x2d0]
call fcn.1400010b0
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
mov rcx, qword [rsp + 0x360]
call fcn.140023510
mov rcx, rax
call fcn.140004bc0
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
mov r8d, 1
mov rax, qword [rsp + 0x3f0]
movzx edx, word [rax + 0x228]
lea rcx, [rsp + 0x2d8]
call fcn.140005df0
mov qword [rsp + 0x368], rax
mov rax, qword [rsp + 0x368]
mov qword [rsp + 0x370], rax
lea r8, [0x1402379e0]
mov rdx, qword [rsp + 0x370]
lea rcx, [rsp + 0x2e0]
call fcn.1400010b0
mov qword [rsp + 0x378], rax
mov rax, qword [rsp + 0x378]
mov qword [rsp + 0x380], rax
mov rcx, qword [rsp + 0x380]
call fcn.140023510
mov rcx, rax
call fcn.140004bc0
nop
lea rcx, [rsp + 0x2e0]
call fcn.140001490
nop
lea rcx, [rsp + 0x2d8]
call fcn.140001490
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep stosb byte [rdi], al
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x400]
mov rcx, qword [rsp + 0x3f8]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x1401547c3
mov dword [rsp + 0x2e8], 0
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x2e8]
jmp 0x140154c26
mov r8d, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140152750
nop
mov r8d, 2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140152750
nop
lea rcx, [rsp + 0x78]
call fcn.140006e20
movzx eax, al
test eax, eax
je 0x14015480f
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140002d80
mov qword [rsp + 0x2a0], 0
lea rdi, [rsp + 0x2a8]
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep stosb byte [rdi], al
lea rcx, [rsp + 0x78]
call fcn.140023510
lea r9, [rsp + 0x2a0]
mov r8, rax
lea rdx, [0x140237a20]
mov rcx, qword [rsp + 0x3f8]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x1401548a2
lea rcx, [rsp + 0x78]
call fcn.140023510
lea r9, [rsp + 0x2a0]
mov r8, rax
lea rdx, str.SourceDisksFiles.amd64
mov rcx, qword [rsp + 0x3f8]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x1401548a2
lea rcx, [rsp + 0x78]
call fcn.140001490
nop
lea rcx, [rsp + 0x60]
call fcn.140001490
jmp 0x140154bf2
mov r8d, 2
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x70]
call fcn.140152890
nop
lea rcx, [rsp + 0x68]
call fcn.140002db0
nop
mov rdx, qword [rsp + 0x408]
lea rcx, [rsp + 0x58]
call fcn.1400020d0
nop
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x58]
call fcn.1400068a0
mov r8d, eax
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x58]
call fcn.140006b20
mov qword [rsp + 0x388], rax
mov rax, qword [rsp + 0x388]
mov qword [rsp + 0x390], rax
mov rdx, qword [rsp + 0x390]
lea rcx, [rsp + 0x58]
call fcn.140002d80
nop
lea rcx, [rsp + 0x2f0]
call fcn.140001490
lea rcx, [rsp + 0x70]
call fcn.140006e20
movzx eax, al
test eax, eax
je 0x140154962
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x58]
lea rdx, [0x140237a78]
lea rcx, [rsp + 0x68]
call fcn.140002c40
jmp 0x140154987
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x58]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x68]
call fcn.140002c40
lea rcx, [rsp + 0x68]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140154a42
lea rcx, [rsp + 0x68]
call fcn.140001a40
mov r9d, eax
sub r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x68]
call fcn.140002270
mov qword [rsp + 0x398], rax
mov rax, qword [rsp + 0x398]
mov qword [rsp + 0x3a0], rax
lea r8, [0x140236204]
mov rdx, qword [rsp + 0x3a0]
lea rcx, [rsp + 0x300]
call fcn.1400010b0
mov qword [rsp + 0x3a8], rax
mov rax, qword [rsp + 0x3a8]
mov qword [rsp + 0x3b0], rax
mov rdx, qword [rsp + 0x3b0]
lea rcx, [rsp + 0x68]
call fcn.140002d80
nop
lea rcx, [rsp + 0x300]
call fcn.140001490
nop
lea rcx, [rsp + 0x2f8]
call fcn.140001490
xor eax, eax
mov word [rsp + 0x90], ax
lea rdi, [rsp + 0x92]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 1
mov rax, qword [rsp + 0x3f0]
movzx edx, word [rax + 0x228]
lea rcx, [rsp + 0x308]
call fcn.140005df0
mov qword [rsp + 0x3b8], rax
mov rax, qword [rsp + 0x3b8]
mov qword [rsp + 0x3c0], rax
lea r8, str.:CCBootClient
mov rdx, qword [rsp + 0x3c0]
lea rcx, [rsp + 0x310]
call fcn.1400010b0
mov qword [rsp + 0x3c8], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x3c8]
mov r8, qword [r8]
lea rdx, str._sCCBootPnP_sCCBootPnP_s
lea rcx, [rsp + 0x90]
call fcn.1400a9064
lea rcx, [rsp + 0x310]
call fcn.140001490
nop
lea rcx, [rsp + 0x308]
call fcn.140001490
lea rcx, [rsp + 0x68]
call fcn.140023510
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x3f0]
movzx r8d, word [rax + 0x228]
mov r9, qword [rsp + 0x60]
lea rdx, str._c:WindowsSystem32CCBootPnP_s
lea rcx, [rsp + 0x90]
call fcn.1400a9064
lea rcx, [rsp + 0x68]
call fcn.140023510
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x3f0]
movzx r8d, word [rax + 0x228]
mov r9, qword [rsp + 0x60]
lea rdx, str._c:WindowsSystem32drivers_s
lea rcx, [rsp + 0x90]
call fcn.1400a9064
lea rcx, [rsp + 0x68]
call fcn.140023510
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.140001490
nop
lea rcx, [rsp + 0x68]
call fcn.140001490
nop
lea rcx, [rsp + 0x70]
call fcn.140001490
nop
lea rcx, [rsp + 0x78]
call fcn.140001490
nop
lea rcx, [rsp + 0x60]
call fcn.140001490
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1401547c3
mov dword [rsp + 0x318], 1
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x318]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x3e0
pop rdi
ret