Function at 0x140001b18
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x1400175c8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
je 0x140001dbd
mov ecx, 0x82
lea rax, [rbp - 0x60]
mov edx, ecx
cmp word [rax], si
je 0x140001b91
add rax, 2
sub rdx, 1
jne 0x140001b82
test rdx, rdx
je 0x140001b9e
mov rax, rcx
sub rax, rdx
jmp 0x140001ba1
mov rax, rsi
test rdx, rdx
je 0x140001dbd
lea rdx, [rbp - 0x60]
lea rdx, [rdx + rax*2]
sub rcx, rax
je 0x140001bec
lea r8, [rax + 0x7fffff7c]
add r8, rcx
lea rax, str._system32winpeshl.ini
sub rax, rdx
test r8, r8
je 0x140001bec
movzx r9d, word [rax + rdx]
test r9w, r9w
je 0x140001bec
mov word [rdx], r9w
dec r8
add rdx, 2
sub rcx, 1
jne 0x140001bcb
test rcx, rcx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], si
je 0x140001dbd
movups xmm0, xmmword [str._LaunchApp__r_nAppPath_SystemRoot_System32cmd.exe_r_n]
mov eax, dword [0x14000f0c0]
lea rcx, [rbp - 0x60]
movups xmm1, xmmword [0x14000f0a0]
xor r9d, r9d
mov dword [rbp - 0x68], eax
mov al, byte [0x14000f0c4]
mov edx, 0x40000000
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x30], rsi
movups xmm0, xmmword [0x14000f0b0]
mov dword [rsp + 0x28], 0x88000080
lea r8d, [r9 + 1]
movups xmmword [rsp + 0x78], xmm1
mov byte [rbp - 0x64], al
movups xmmword [rbp - 0x78], xmm0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001ce7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
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]
lea r8, [rbp - 0x60]
mov ecx, 0x20000ca
lea rdx, str.SetWinPEShellDefault:_Error_opening_file___s__to_save_winpeshl.ini.
mov rbx, rax
call fcn.140004c0c
mov dword [rsp + 0x50], esi
mov rcx, rax
mov qword [rsp + 0x48], rsi
lea rax, str.SetWinPEShellDefault
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1bd
jmp 0x140001da2
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], esi
mov r8d, 0x34
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
je 0x140001d3b
cmp dword [rsp + 0x60], 0x34
je 0x140001dbd
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]
lea r8, [rbp - 0x60]
mov ecx, 0x20000cb
lea rdx, str.SetWinPEShellDefault:_Failed_to_write_default___s_.
mov rbx, rax
call fcn.140004c0c
mov dword [rsp + 0x50], esi
mov rcx, rax
mov qword [rsp + 0x48], rsi
lea rax, str.SetWinPEShellDefault
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1cf
xor r9d, r9d
lea r8, [0x14000ed78]
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14000c290
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret