Function at 0x140296934
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 [0x140379a08]
xor rax, rsp
mov qword [rbp + 0x700], rax
mov r14b, dl
mov r15, rcx
test byte [0x14037dc81], 0x20
je 0x14029699c
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x140327288]
lea rcx, [0x1403787c0]
call fcn.1400429a0
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.14008f3a8
test eax, eax
js 0x140296d53
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.140082024
or rdi, 0xffffffffffffffff
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea rcx, [rsp + 0x60]
call fcn.140082024
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1d0]
call fcn.14006f19c
test eax, eax
js 0x140296d3e
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x48]
call fcn.140082024
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.1402bcd7c
test eax, eax
js 0x140296d33
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 0x140296adf
movzx eax, ax
or eax, esi
mov rcx, qword [rbp + 0x738]
lea r13, str.shellliblogontaskslogontasks.cpp
test eax, eax
jns 0x140296afb
mov edx, 0xf6f
jmp 0x140296ba8
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 0x140296b2e
mov edx, 0xf73
jmp 0x140296ba8
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 0x140296c1f
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 0x140296b95
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140296b98
movzx eax, ax
or eax, esi
jmp 0x140296b98
mov eax, r12d
mov rcx, qword [rbp + 0x738]
test eax, eax
jns 0x140296bb5
mov edx, 0xf78
mov r9d, eax
mov r8, r13
call fcn.14009d7ec
jmp 0x140296c1f
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 0x140296be0
mov eax, r12d
jmp 0x140296be5
call fcn.14002154c
mov rcx, qword [rbp + 0x738]
test eax, eax
jns 0x140296c10
mov r9d, eax
mov r8, r13
mov edx, 0xf7b
call fcn.14009d7ec
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 0x140296c61
mov r8, r13
mov edx, 0xf88
call fcn.140190ca4
jmp 0x140296d33
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 0x140296cca
mov r9d, eax
mov r8, r13
mov edx, 0xf8e
call fcn.14009d7ec
test edi, edi
js 0x140296d25
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 0x140296d08
mov r9d, eax
mov r8, r13
mov edx, 0xf91
call fcn.14009d7ec
jmp 0x140296d25
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 0x140296c8b
lea rcx, [rsp + 0x48]
call fcn.140082024
nop
lea rcx, [rsp + 0x78]
call fcn.140082024
nop
lea rcx, [rsp + 0x60]
call fcn.140082024
test r14b, r14b
je 0x140296d6a
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x41]
mov rcx, r15
call fcn.14026cf68
test byte [0x14037dc81], 0x20
je 0x140296d95
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x140327268]
lea rcx, [0x1403787c0]
call fcn.1400429a0
mov rcx, qword [rbp + 0x700]
xor rcx, rsp
call fcn.1400a2260
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