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

Disassembly:
push rbp
sub rsp, 0x680
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor ebp, ebp
lea rdx, [rsp + 0x50]
mov ecx, 0x104
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x44], ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140001d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetTempPathW_Failed_With_Error_:__d__n
call fcn.140001180
xor eax, eax
jmp 0x140001f4a
mov qword [rsp + 0x698], rsi
lea r9, str.7801010.tmp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x6a0], rdi
lea rdx, str._s_s
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rsi, rbp
mov qword [rsp + 0x690], rbx
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x260]
mov dword [rsp + 0x28], 0x100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001f1c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0xfffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov r8d, 0xfffff
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov rcx, rbx
mov edx, r9d
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbp
mov r8d, 0xfffff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001ef0
cmp dword [rsp + 0x44], 0xfffff
jne 0x140001ef0
xor edx, edx
mov r8d, 0xfffff
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x260]
mov dword [rsp + 0x28], 0x4000100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001f1c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0xfffff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001ec4
cmp dword [rsp + 0x40], 0xfffff
jne 0x140001ec4
xor edx, edx
mov r8d, 0xfffff
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
cmp rsi, 0x3e8
jb 0x140001d40
mov eax, 1
jmp 0x140001f32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ReadFile_Failed_With_Error_:__d__n
call fcn.140001180
mov edx, dword [rsp + 0x40]
lea rcx, str._i__Read__d_Bytes_of__d__n
mov r8d, 0xfffff
call fcn.140001180
jmp 0x140001f30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteFile_Failed_With_Error_:__d__n
call fcn.140001180
mov edx, dword [rsp + 0x44]
lea rcx, str._i__Written__d_Bytes_of__d__n
mov r8d, 0xfffff
call fcn.140001180
jmp 0x140001f30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW_Failed_With_Error_:__d__n
call fcn.140001180
xor eax, eax
mov rbx, qword [rsp + 0x690]
mov rsi, qword [rsp + 0x698]
mov rdi, qword [rsp + 0x6a0]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140001fe0
add rsp, 0x680
pop rbp
ret