Function at 0x140154370
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 [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
lea rdx, [0x140238944]
lea rcx, [rsp + 0x30]
call fcn.140002090
nop
mov rcx, qword [rsp + 0x3f0]
call fcn.140152980
mov eax, eax
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 6
jb 0x1401544d1
mov rcx, qword [rsp + 0x3f0]
call fcn.140152980
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
test eax, eax
jne 0x140154420
lea rdx, str.Vista
lea rcx, [rsp + 0x30]
call fcn.140002060
mov rcx, qword [rsp + 0x3f0]
call fcn.140152980
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
jne 0x14015445b
lea rdx, [0x140238960]
lea rcx, [rsp + 0x30]
call fcn.140002060
mov rcx, qword [rsp + 0x3f0]
call fcn.140152980
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x140154496
lea rdx, str.Win8
lea rcx, [rsp + 0x30]
call fcn.140002060
mov rcx, qword [rsp + 0x3f0]
call fcn.140152980
mov eax, eax
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 3
jne 0x1401544d1
lea rdx, str.Win10
lea rcx, [rsp + 0x30]
call fcn.140002060
mov r8d, 1
mov rax, qword [rsp + 0x3f0]
movzx edx, word [rax + 0x228]
lea rcx, [rsp + 0x2b8]
call fcn.140005d90
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.140006b70
mov qword [rsp + 0x348], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x350], rax
lea r8, [0x140238990]
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.1400012c0
mov rcx, rax
call fcn.140004b80
nop
lea rcx, [rsp + 0x2d0]
call fcn.140001470
nop
lea rcx, [rsp + 0x2c8]
call fcn.140001470
nop
lea rcx, [rsp + 0x2c0]
call fcn.140001470
nop
lea rcx, [rsp + 0x2b8]
call fcn.140001470
mov r8d, 1
mov rax, qword [rsp + 0x3f0]
movzx edx, word [rax + 0x228]
lea rcx, [rsp + 0x2d8]
call fcn.140005d90
mov qword [rsp + 0x368], rax
mov rax, qword [rsp + 0x368]
mov qword [rsp + 0x370], rax
lea r8, [0x1402389e0]
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.1400012c0
mov rcx, rax
call fcn.140004b80
nop
lea rcx, [rsp + 0x2e0]
call fcn.140001470
nop
lea rcx, [rsp + 0x2d8]
call fcn.140001470
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 0x1401546f3
mov dword [rsp + 0x2e8], 0
lea rcx, [rsp + 0x30]
call fcn.140001470
mov eax, dword [rsp + 0x2e8]
jmp 0x140154b56
mov r8d, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140152680
nop
mov r8d, 2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140152680
nop
lea rcx, [rsp + 0x78]
call fcn.140007b70
movzx eax, al
test eax, eax
je 0x14015473f
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140002d20
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.1400012c0
lea r9, [rsp + 0x2a0]
mov r8, rax
lea rdx, [0x140238a20]
mov rcx, qword [rsp + 0x3f8]
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x1401547d2
lea rcx, [rsp + 0x78]
call fcn.1400012c0
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 0x1401547d2
lea rcx, [rsp + 0x78]
call fcn.140001470
nop
lea rcx, [rsp + 0x60]
call fcn.140001470
jmp 0x140154b22
mov r8d, 2
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x70]
call fcn.1401527c0
nop
lea rcx, [rsp + 0x68]
call fcn.140002d50
nop
mov rdx, qword [rsp + 0x408]
lea rcx, [rsp + 0x58]
call fcn.140002090
nop
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x58]
call fcn.140006840
mov r8d, eax
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x58]
call fcn.140006ac0
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.140002d20
nop
lea rcx, [rsp + 0x2f0]
call fcn.140001470
lea rcx, [rsp + 0x70]
call fcn.140007b70
movzx eax, al
test eax, eax
je 0x140154892
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x58]
lea rdx, [0x140238a78]
lea rcx, [rsp + 0x68]
call fcn.140002be0
jmp 0x1401548b7
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.140002be0
lea rcx, [rsp + 0x68]
call fcn.1400012c0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140154972
lea rcx, [rsp + 0x68]
call fcn.1400019f0
mov r9d, eax
sub r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x68]
call fcn.140002230
mov qword [rsp + 0x398], rax
mov rax, qword [rsp + 0x398]
mov qword [rsp + 0x3a0], rax
lea r8, [0x140237204]
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.140002d20
nop
lea rcx, [rsp + 0x300]
call fcn.140001470
nop
lea rcx, [rsp + 0x2f8]
call fcn.140001470
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.140005d90
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.1400a9054
lea rcx, [rsp + 0x310]
call fcn.140001470
nop
lea rcx, [rsp + 0x308]
call fcn.140001470
lea rcx, [rsp + 0x68]
call fcn.1400012c0
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.1400a9054
lea rcx, [rsp + 0x68]
call fcn.1400012c0
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.1400a9054
lea rcx, [rsp + 0x68]
call fcn.1400012c0
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.140001470
nop
lea rcx, [rsp + 0x68]
call fcn.140001470
nop
lea rcx, [rsp + 0x70]
call fcn.140001470
nop
lea rcx, [rsp + 0x78]
call fcn.140001470
nop
lea rcx, [rsp + 0x60]
call fcn.140001470
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1401546f3
mov dword [rsp + 0x318], 1
lea rcx, [rsp + 0x30]
call fcn.140001470
mov eax, dword [rsp + 0x318]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x3e0
pop rdi
ret