Function at 0x1400011f0
Capabilities:
Check if file exists
Copy file
Create process on windows
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa10
mov rax, qword [0x1400175c8]
xor rax, rsp
mov qword [rsp + 0xa00], rax
mov rdi, rcx
xor r12d, r12d
mov ebx, r12d
mov dword [rsp + 0x60], ebx
mov esi, r12d
mov qword [rsp + 0x78], r12
mov r14d, r12d
mov qword [r11 - 0x9b8], r12
mov r15d, 0x208
mov r8d, r15d
xor edx, edx
lea rcx, [r11 - 0x878]
call sub.msvcrt.dll_memset
mov r8d, r15d
xor edx, edx
lea rcx, [rsp + 0x7f0]
call sub.msvcrt.dll_memset
mov r8d, r15d
xor edx, edx
lea rcx, [rsp + 0x3d0]
call sub.msvcrt.dll_memset
mov r15d, 0x104
mov r8d, r15d
lea rdx, [rsp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400018ab
lea r8, [rsp + 0x1c0]
mov edx, r15d
lea rcx, [rsp + 0x7f0]
call fcn.140004b80
test eax, eax
js 0x1400018ab
lea r13d, [r12 + 0x5c]
mov edx, r13d
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400018a7
mov word [rax], r12w
add rbx, 2
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str._s_s.mui
mov edx, r15d
lea rcx, [rsp + 0x3d0]
call fcn.140004afc
test eax, eax
js 0x1400018a7
lea rcx, [0x14000ebf0]
call fcn.140005a78
mov rsi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400018a7
mov rdx, rbx
mov rcx, rax
call fcn.140005fb0
mov r14, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1400018a7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001371
mov rcx, rsi
call fcn.140006ff8
test eax, eax
je 0x140001381
mov rcx, rsi
call fcn.140007548
test eax, eax
jne 0x140001417
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov r8, rsi
lea rdx, str.RespawnSelfFromTemp:_Failed_to_create_new_directory__s___u_
mov ecx, 0x30000e9
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.RespawnSelfFromTemp
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xc7
xor r9d, r9d
lea r8, [0x14000ed78]
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
jmp 0x1400018a7
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x138], r12
mov ebx, 1
mov dword [rsp + 0x140], ebx
lea rax, [rsp + 0x3d0]
mov qword [rsp + 0x148], rax
mov edx, r13d
lea rcx, [rsp + 0x3d0]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
add rax, 2
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x158], r12d
lea rax, [0x14000eea8]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], r12
mov dword [rsp + 0x170], ebx
lea rax, str.wdscore.dll
mov qword [rsp + 0x178], rax
mov qword [rsp + 0x180], r12
mov dword [rsp + 0x188], ebx
lea rax, str.migisol.dll
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x198], r12
mov dword [rsp + 0x1a0], ebx
lea rax, str.coverage.dll
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x1b0], r12
mov dword [rsp + 0x1b8], r12d
mov r13d, r12d
mov dword [rsp + 0x70], r12d
movsxd rax, r13d
cmp rax, 6
jae 0x14000172a
lea rax, [rax + rax*2]
mov rdx, qword [rsp + rax*8 + 0x130]
mov rcx, qword [rsp + rax*8 + 0x138]
mov eax, dword [rsp + rax*8 + 0x140]
mov dword [rsp + 0x64], eax
mov rbx, rdx
test rcx, rcx
cmovne rbx, rcx
mov r15, r12
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0x1c0]
call fcn.140005fb0
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000156e
mov rdx, rbx
mov rcx, rsi
call fcn.140005fb0
mov r15, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14000156e
mov r12d, 1
mov dword [rsp + 0x6c], r12d
xor ebx, ebx
test r12d, r12d
je 0x1400016b9
mov ebx, 1
mov dword [rsp + 0x68], ebx
xor eax, eax
cmp dword [rsp + 0x64], eax
jne 0x1400015ab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
lea eax, [rbx - 1]
cmove ebx, eax
mov dword [rsp + 0x68], ebx
test ebx, ebx
je 0x1400016b7
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
mov r12d, eax
mov dword [rsp + 0x6c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r10d, eax
lea rax, str.succeeded
lea rdx, str.FAILED
test r12d, r12d
cmovne rdx, rax
lea r9, str._null_
test r15, r15
cmovne r9, r15
lea r8, str._null_
mov rax, qword [rsp + 0x88]
test rax, rax
cmovne r8, rax
mov eax, r12d
neg eax
sbb ecx, ecx
and ecx, 0x1000000
add ecx, 0x3000000
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rdx
lea rdx, str.RespawnSelfFromTemp:_Copying___s__to___s___s___u_
call fcn.140004c0c
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.RespawnSelfFromTemp
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x102
xor r9d, r9d
lea r8, [0x14000ed78]
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov rdi, qword [rsp + 0x88]
xor ebx, ebx
test rdi, rdi
je 0x1400016de
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r15, r15
je 0x140001711
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
cmovne r15, rbx
mov qword [rsp + 0x90], r15
test r12d, r12d
je 0x1400018a7
inc r13d
mov dword [rsp + 0x70], r13d
xor r12d, r12d
jmp 0x1400014ef
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x5e0]
call sub.msvcrt.dll_memset
lea rax, str.DisplayReport
mov qword [rsp + 0x28], rax
lea rax, str.noui
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, str._s___s___s
mov edx, 0x104
lea rcx, [rsp + 0x5e0]
call fcn.140004afc
test eax, eax
js 0x1400018a7
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0xc0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xc0], ebx
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x5e0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x98], eax
test eax, eax
jne 0x14000187d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x5e0]
mov r8, r14
lea rdx, str.RespawnSelfFromTemp:_CreateProcess__s___s__failed__error__u_
mov ecx, 0x30000ea
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.RespawnSelfFromTemp
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x148
jmp 0x1400013f7
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400018ab
mov ebx, dword [rsp + 0x60]
test rsi, rsi
je 0x1400018d0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r14, r14
je 0x1400018f5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0xa00]
xor rcx, rsp
call fcn.14000c290
lea r11, [rsp + 0xa10]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret