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

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x6b0
mov rax, qword [0x1400212c0]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0xfffff
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140001318
xor eax, eax
jmp 0x140001503
lea r9, str.fmp909910ALK_1.tmp
lea r8, [rsp + 0x80]
lea rdx, str._s_s
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfW]
nop
mov qword [rsp + 0x68], 0
jmp 0x140001355
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x6c0]
cmp qword [rsp + 0x68], rax
jae 0x1400014fe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x1400013ad
xor eax, eax
jmp 0x140001503
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
xor ecx, ecx
call fcn.140001be0
mov ecx, eax
call fcn.140005894
call fcn.140005868
cdq
mov ecx, 0xff
idiv ecx
mov eax, edx
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000142f
mov eax, dword [rsp + 0x70]
cmp rax, qword [rsp + 0x40]
je 0x140001436
xor eax, eax
jmp 0x140001503
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140001493
xor eax, eax
jmp 0x140001503
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400014c5
mov eax, dword [rsp + 0x74]
cmp rax, qword [rsp + 0x40]
je 0x1400014c9
xor eax, eax
jmp 0x140001503
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140001348
mov eax, 1
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1400023c0
add rsp, 0x6b0
pop rdi
ret