Function at 0x14004c400
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 [0x140124190]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rcx, [rsp + 0x70]
call fcn.14002fe80
nop
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
cmp rsi, rbp
je 0x14004c688
xor r14d, r14d
nop dword [rax + rax]
lea r8, [0x1401049f0]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400313f0
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 0x14004c4dd
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004c67b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c676
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c6c6
jmp 0x14004c676
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14004c4ea
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 0x14004c54b
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004c67b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c676
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c6cc
jmp 0x14004c676
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 0x14004c5e0
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004c67b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c676
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c6d2
jmp 0x14004c676
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 0x14004c600
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 0x14004c67b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c676
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c6c0
call fcn.140072f50
add rsi, 0x20
cmp rsi, rbp
jne 0x14004c460
lea rcx, [rsp + 0x70]
call fcn.140031320
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140072ef0
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.1400a01c4
nop
call fcn.1400a01c4
int3
call fcn.1400a01c4
int3
call fcn.1400a01c4
int3