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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rbx, rdx
xor ecx, ecx
call fcn.140012480
xor r15d, r15d
mov rcx, qword [0x140040be0]
cmp rcx, 0xffffffffffffffff
jne 0x140006dc8
nop
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140040be0], rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140040be0]
cmp rcx, 0xffffffffffffffff
je 0x140006d80
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, qword [0x140040be0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x18]
lea rcx, [0x140042bb8]
call fcn.140009ce0
mov dword [rbp - 0x18], r15d
lea rcx, [rbp - 0x18]
call fcn.1400065c0
mov rsi, rax
call fcn.1400028f0
test al, al
je 0x140006e22
mov byte [0x140040bf0], 1
mov rcx, rsi
call fcn.140005e70
jmp 0x14000717a
lea rdx, [rbp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movabs rbx, 0xfe39e2d120ed8ef5
mov qword [rbp + 0x10], rbx
movabs r14, 0x7151e144a61b4be6
mov qword [rbp + 0x18], r14
movabs rax, 0xfe39e2d14595ebdb
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r14
movdqa xmm0, xmmword [rbp - 0x70]
pxor xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rbp - 0x70], xmm0
mov r8d, 0xa
lea rdx, [rbp - 0x40]
lea rcx, [0x140042bb8]
call fcn.140009c20
mov rdi, rax
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], r14
movabs rax, 0xfe39e2d120ed8ea9
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], r14
movdqa xmm0, xmmword [rbp + 0x10]
pxor xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
lea rax, [rbp + 0x30]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140006ed0
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.140008800
nop
lea rax, [rbp + 0x10]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140006ef0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140008940
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, qword [rdi + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
mov r9, qword [rsp + 0x78]
sub rax, r9
cmp r8, rax
jbe 0x140006f6d
mov rax, qword [rdi + 0x18]
sub rax, r8
cmp rax, r9
jb 0x140006f6d
lea r8, [rsp + 0x68]
cmp rcx, 0x10
cmovae r8, qword [rsp + 0x68]
mov rcx, rdi
call fcn.140008f10
jmp 0x140006f84
cmp qword [rdi + 0x18], 0x10
jb 0x140006f77
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140008940
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov byte [rax], 0
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r15
lea rax, [rbp - 0x70]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140006fb2
mov r8, rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140008940
mov qword [rbp], r15
mov qword [rbp + 8], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000700a
inc rdx
mov rcx, qword [rsp + 0x48]
call fcn.140004a10
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140007034
inc rdx
mov rcx, qword [rsp + 0x68]
call fcn.140004a10
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14000705c
inc rdx
mov rcx, qword [rbp - 0x60]
call fcn.140004a10
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140007082
inc rdx
mov rcx, qword [rbp - 0x40]
call fcn.140004a10
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x40]
call fcn.1400064b0
mov rdi, rax
test rax, rax
je 0x140007164
nop dword [rax]
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400070b0
test rax, rax
je 0x14000713f
mov dword [rbp - 0x20], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x20]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp - 0x20], r15d
mov r8d, dword [rbp - 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.140006aa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
call fcn.140002f70
lea rcx, [0x140042bb8]
call fcn.140009230
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140007185
inc rdx
mov rcx, qword [rbp - 0x10]
call fcn.140004a10
jmp 0x140007185
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14000717a
inc rdx
mov rcx, qword [rbp - 0x10]
call fcn.140004a10
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000a750
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret