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

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x698
mov qword [rsp + 0x48], 0xffffffffffffffff
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400150b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400152ea
lea r9, str.nTesting.xml
lea r8, [rsp + 0x70]
lea rdx, str._s_s
lea rcx, [rsp + 0x280]
call qword [sym.imp.USER32.dll_wsprintfW]
xor ecx, ecx
call fcn.140006784
mov ecx, eax
call fcn.1400044f0
nop
mov dword [rsp + 0x58], 0
jmp 0x1400150f5
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x6a0]
cmp dword [rsp + 0x58], eax
jae 0x1400152ea
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14001513b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400152ea
call fcn.1400044c4
cdq
mov ecx, 0xff
idiv ecx
mov eax, edx
mov byte [rsp + 0x40], al
mov qword [rsp + 0x60], 0
jmp 0x140015166
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x14001518b
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
jmp 0x140015159
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 + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1400151d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400152ea
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001520d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x140015228
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400152ea
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
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 + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14001527e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400152ea
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400152bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400152ea
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x50], 0
jmp 0x1400150eb
cmp qword [rsp + 0x50], 0
je 0x140015309
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x14001531d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rsp + 0x44], 0
jne 0x14001532e
mov dword [rsp + 0x5c], 1
jmp 0x140015336
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
add rsp, 0x698
ret