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

Disassembly:
push rbp
push rbx
sub rsp, 0x3a8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x340], ecx
mov qword [rbp + 0x310], 0xffffffffffffffff
mov qword [rbp + 0x308], 0xffffffffffffffff
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x38], 0
mov qword [rbp + 0x300], 0
mov qword [rbp + 0x2f8], 0xfffff
mov dword [rbp + 0x2f4], 0
lea rax, [rbp - 0x30]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
test eax, eax
je 0x218631364
mov rax, qword [0x21863e170]
mov r10, qword [rax + 0x60]
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0xe0]
lea r9, str.delays.tmp
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
call r10
mov qword [rbp + 0x318], 0
jmp 0x21863134a
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x308], rax
cmp qword [rbp + 0x308], 0xffffffffffffffff
je 0x218631367
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x2f8]
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x300], rax
mov rax, qword [0x21863e170]
mov rbx, qword [rax + 8]
mov rax, qword [0x21863e170]
mov rax, qword [rax]
mov ecx, 0
call rax
mov ecx, eax
call rbx
mov rax, qword [0x21863e170]
mov rax, qword [rax + 0x10]
call rax
movsxd rdx, eax
imul rdx, rdx, 0xffffffff80808081
shr rdx, 0x20
add edx, eax
sar edx, 7
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
mov dword [rbp + 0x2f4], edx
mov ecx, dword [rbp + 0x2f4]
mov edx, ecx
shl edx, 8
sub edx, ecx
sub eax, edx
mov dword [rbp + 0x2f4], eax
mov rax, qword [0x21863e170]
mov r9, qword [rax + 0x18]
mov rcx, qword [rbp + 0x2f8]
mov edx, dword [rbp + 0x2f4]
mov rax, qword [rbp + 0x300]
mov r8, rcx
mov rcx, rax
call r9
mov rax, qword [rbp + 0x2f8]
mov r8d, eax
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp + 0x300]
mov rax, qword [rbp + 0x308]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x21863136a
mov eax, dword [rbp - 0x38]
mov eax, eax
cmp qword [rbp + 0x2f8], rax
jne 0x21863136a
mov rax, qword [0x21863e170]
mov r9, qword [rax + 0x18]
mov rdx, qword [rbp + 0x2f8]
mov rax, qword [rbp + 0x300]
mov r8, rdx
mov edx, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x308]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x310], rax
cmp qword [rbp + 0x310], 0xffffffffffffffff
je 0x21863136d
mov rax, qword [rbp + 0x2f8]
mov r8d, eax
lea rcx, [rbp - 0x34]
mov rdx, qword [rbp + 0x300]
mov rax, qword [rbp + 0x310]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x218631370
mov eax, dword [rbp - 0x34]
mov eax, eax
cmp qword [rbp + 0x2f8], rax
jne 0x218631370
mov rax, qword [0x21863e170]
mov r9, qword [rax + 0x18]
mov rdx, qword [rbp + 0x2f8]
mov rax, qword [rbp + 0x300]
mov r8, rdx
mov edx, 0
mov rcx, rax
call r9
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x300]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov rax, qword [rbp + 0x310]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add qword [rbp + 0x318], 1
mov eax, dword [rbp + 0x340]
cmp qword [rbp + 0x318], rax
jb 0x2186310b5
mov eax, 1
jmp 0x218631376
nop
jmp 0x218631371
nop
jmp 0x218631371
nop
jmp 0x218631371
nop
jmp 0x218631371
nop
mov eax, 0
add rsp, 0x3a8
pop rbx
pop rbp
ret