Function at 0x140048940
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 [0x14011f190]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rcx, [rsp + 0x70]
call fcn.14002fe50
nop
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
cmp rsi, rbp
je 0x140048bc8
xor r14d, r14d
nop dword [rax + rax]
lea r8, [0x1401008f0]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400313c0
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 0x140048a1d
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140048bbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048bb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048c06
jmp 0x140048bb6
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140048a2a
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 0x140048a8b
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140048bbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048bb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048c0c
jmp 0x140048bb6
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 0x140048b20
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140048bbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048bb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048c12
jmp 0x140048bb6
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 0x140048b40
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 0x140048bbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048bb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048c00
call fcn.14006f490
add rsi, 0x20
cmp rsi, rbp
jne 0x1400489a0
lea rcx, [rsp + 0x70]
call fcn.1400312f0
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14006f430
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.14009c704
nop
call fcn.14009c704
int3
call fcn.14009c704
int3
call fcn.14009c704
int3