Function at 0x14004faa0
Capabilities:
Get common file path
Get disk information
Write file on windows

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x2b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rcx, [rsp + 0x70]
call fcn.14002fe90
nop
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
cmp rsi, rbp
je 0x14004fd28
xor r14d, r14d
nop dword [rax + rax]
lea r8, [0x1401079f0]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140031400
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14004fb7d
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004fd1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fd16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fd66
jmp 0x14004fd16
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14004fb8a
mov rcx, qword [rsi]
lea r9, [rsp + 0x90]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14004fbeb
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004fd1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fd16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fd6c
jmp 0x14004fd16
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x24000002
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004fc80
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004fd1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fd16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fd72
jmp 0x14004fd16
mov edx, 0x80000
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
nop word [rax + rax]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
mov r8d, 0x80000
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004fca0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x80000
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004fd1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fd16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fd60
call fcn.1400765f0
add rsi, 0x20
cmp rsi, rbp
jne 0x14004fb00
lea rcx, [rsp + 0x70]
call fcn.140031330
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140076590
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.1400a3864
nop
call fcn.1400a3864
int3
call fcn.1400a3864
int3
call fcn.1400a3864
int3