Function at 0x1402a32c4
Capabilities:
Check if file exists
Copy file
Delete file
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x738]
sub rsp, 0x810
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rbp + 0x700], rax
mov r14b, dl
mov r15, rcx
test byte [0x14038bd81], 0x20
je 0x1402a332c
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x140335178]
lea rcx, [0x140386800]
call fcn.140041cf0
xor r12d, r12d
mov byte [rsp + 0x41], r12b
mov byte [rsp + 0x40], r12b
mov dword [rsp + 0x28], DAD_ShowDragImage
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 2]
lea r8, str.OEMAppId
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionOOBE
mov rbx, 0xffffffff80000002
mov rcx, rbx
call fcn.14008e8b8
test eax, eax
js 0x1402a36e3
mov byte [rsp + 0x41], 1
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
lea rcx, [rsp + 0x78]
call fcn.1400813e4
or rdi, 0xffffffffffffffff
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea rcx, [rsp + 0x60]
call fcn.1400813e4
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1d0]
call fcn.14006e4ac
test eax, eax
js 0x1402a36ce
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x48]
call fcn.1400813e4
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.1402c970c
test eax, eax
js 0x1402a36c3
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x44], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 8]
lea r8, str.EndTimeStamp
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionOOBEStats
mov rcx, rbx
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHRegGetValueW]
nop dword [rax + rax]
mov esi, 0x80070000
test eax, eax
jle 0x1402a346f
movzx eax, ax
or eax, esi
mov rcx, qword [rbp + 0x738]
lea r13, str.shellliblogontaskslogontasks.cpp
test eax, eax
jns 0x1402a348b
mov edx, 0xfb0
jmp 0x1402a3538
lea r9, str.timestamp.blob
mov r8, qword [rsp + 0x48]
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x738]
test eax, eax
jns 0x1402a34be
mov edx, 0xfb4
jmp 0x1402a3538
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
jne 0x1402a35af
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], DAD_DragLeave
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, rdi
jne 0x1402a3525
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1402a3528
movzx eax, ax
or eax, esi
jmp 0x1402a3528
mov eax, r12d
mov rcx, qword [rbp + 0x738]
test eax, eax
jns 0x1402a3545
mov edx, 0xfb9
mov r9d, eax
mov r8, r13
call fcn.14009cb2c
jmp 0x1402a35af
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x70]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x1402a3570
mov eax, r12d
jmp 0x1402a3575
call fcn.140020b4c
mov rcx, qword [rbp + 0x738]
test eax, eax
jns 0x1402a35a0
mov r9d, eax
mov r8, r13
mov edx, 0xfbc
call fcn.14009cb2c
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r8d, 0x104
lea rdx, [rbp + 0x2e0]
lea rcx, str._systemroot__system32oobeinfo
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_SHExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
setne al
mov rcx, qword [rbp + 0x738]
test al, al
jne 0x1402a35f1
mov r8, r13
mov edx, 0xfc9
call fcn.14019dc84
jmp 0x1402a36c3
lea rax, str.userdata.blob
mov qword [rbp - 0x58], rax
lea rax, str.sessionkey.blob
mov qword [rbp - 0x50], rax
lea rax, str.userchoices.xml
mov qword [rbp - 0x48], rax
lea rbx, [rbp - 0x58]
mov esi, 3
mov r9, qword [rbx]
lea r8, [rbp + 0x2e0]
mov edx, 0x104
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rbp + 0x738]
test eax, eax
jns 0x1402a365a
mov r9d, eax
mov r8, r13
mov edx, 0xfcf
call fcn.14009cb2c
test edi, edi
js 0x1402a36b5
mov r9, qword [rbx]
mov r8, qword [rsp + 0x48]
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x738]
test eax, eax
jns 0x1402a3698
mov r9d, eax
mov r8, r13
mov edx, 0xfd2
call fcn.14009cb2c
jmp 0x1402a36b5
mov r8d, 1
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.api_ms_win_core_file_l2_1_2.dll_CopyFileW]
nop dword [rax + rax]
add rbx, 8
sub rsi, 1
jne 0x1402a361b
lea rcx, [rsp + 0x48]
call fcn.1400813e4
nop
lea rcx, [rsp + 0x78]
call fcn.1400813e4
nop
lea rcx, [rsp + 0x60]
call fcn.1400813e4
test r14b, r14b
je 0x1402a36fa
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x41]
mov rcx, r15
call fcn.140279978
test byte [0x14038bd81], 0x20
je 0x1402a3725
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x140335158]
lea rcx, [0x140386800]
call fcn.140041cf0
mov rcx, qword [rbp + 0x700]
xor rcx, rsp
call fcn.1400a15a0
lea r11, [rsp + 0x810]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret