Function at 0x14004bfe0
Capabilities:
Get common file path
Get disk size
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x958]
sub rsp, 0xa20
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, r9
mov r14, r8
mov r15d, edx
mov r13, rcx
xor edi, edi
mov dword [rcx + 0x1950], edi
add rcx, 0xc
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov r9d, dword [r13 + 0x68]
xor edx, edx
mov rax, qword [rbp - 0x70]
div r9
mov qword [rsp + 0x68], rax
imul eax, r15d
mov dword [rsp + 0x44], eax
mov r9, qword [rbx]
mov r8d, eax
xor edx, edx
mov rcx, rbx
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
mov ebx, edi
test r15d, r15d
je 0x14004c09f
lea rsi, [rbp]
nop dword [rax]
cmp ebx, 0x20
jae 0x14004c09f
mov ecx, dword [r13 + 0x68]
call fcn.14004f8a0
mov qword [rsi], rax
mov r10, qword [r14]
mov r9d, dword [r13 + 0x68]
mov r8, rax
mov edx, ebx
mov rcx, r14
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
inc ebx
add rsi, 8
cmp ebx, r15d
jb 0x14004c070
xor r9d, r9d
mov r8, qword [r13 + 0x30]
mov rdx, qword [r13 + 0x20]
lea rcx, [rbp - 0x38]
call fcn.14006a9c0
nop
mov r12d, 1
mov dword [rbp + 0x960], r12d
mov qword [rsp + 0x60], rdi
mov esi, edi
mov dword [rsp + 0x40], edi
mov rbx, qword [rbp + 0x978]
cmp dword [rsp + 0x68], edi
jbe 0x14004c473
lea r15, vtable.CSABString.0
nop dword [rax]
nop dword [rax + rax]
cmp dword [r13 + 0x1950], 0
jne 0x14004c46c
test r12d, r12d
je 0x14004c3ac
mov qword [rsp + 0x70], r15
mov dword [rbp - 0x80], edi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov r12, rax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
mov dword [rbp - 0x7c], 1
lea r14, [r13 + 0x50]
mov qword [rbp - 0x68], r15
test r14, r14
je 0x14004c18d
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x14004c150
mov dword [rbp - 0x58], ebx
lea eax, [rbx + 1]
mov r15d, eax
mov ecx, eax
call fcn.140247068
mov rsi, rax
mov qword [rbp - 0x60], rax
test rax, rax
je 0x14004c184
mov r8d, r15d
mov rdx, r14
mov rcx, rax
call fcn.1402496a0
lea r15, vtable.CSABString.0
jmp 0x14004c1ac
mov dword [rbp - 0x58], edi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rsi, rax
mov qword [rbp - 0x60], rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov ebx, edi
mov dword [rbp - 0x54], 1
mov qword [rsp + 0x48], r15
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov r14, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov dword [rsp + 0x5c], 1
test ebx, ebx
jne 0x14004c24f
lea rdx, [rbp + 0x100]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test r14, r14
je 0x14004c203
mov rcx, r14
call fcn.140247060
mov qword [rsp + 0x50], rdi
lea rcx, [rbp + 0x100]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14004c211
mov dword [rsp + 0x58], eax
inc eax
mov r14d, eax
mov ecx, eax
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14004c2c5
mov r8d, r14d
lea rdx, [rbp + 0x100]
mov rcx, rax
call fcn.1402496a0
jmp 0x14004c2c5
test r14, r14
je 0x14004c261
mov rcx, r14
call fcn.140247060
mov qword [rsp + 0x50], rdi
test rsi, rsi
je 0x14004c2a6
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x14004c270
mov dword [rsp + 0x58], eax
inc eax
mov r14d, eax
mov ecx, eax
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14004c2c5
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.1402496a0
jmp 0x14004c2c5
mov dword [rsp + 0x58], edi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
lea r9, [rbp + 0x510]
xor r8d, r8d
lea rdx, [0x14029055c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test r12, r12
je 0x14004c2f1
mov rcx, r12
call fcn.140247060
mov qword [rsp + 0x78], rdi
lea rcx, [rbp + 0x510]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14004c300
mov dword [rbp - 0x80], eax
inc eax
mov r15d, eax
mov ecx, eax
call fcn.140247068
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14004c338
mov r8d, r15d
lea rdx, [rbp + 0x510]
mov rcx, rax
call fcn.1402496a0
nop
test rbx, rbx
je 0x14004c346
mov rcx, rbx
call fcn.140247060
nop
test rsi, rsi
je 0x14004c353
mov rcx, rsi
call fcn.140247060
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004c394
mov r8, r14
mov rdx, r14
lea rcx, [rbp - 0x38]
call fcn.14006abb0
mov r12d, edi
mov dword [rbp + 0x960], edi
mov esi, edi
test r14, r14
je 0x14004c3ac
mov rcx, r14
call fcn.140247060
mov r15d, edi
cmp dword [rbp + 0x968], edi
jbe 0x14004c42d
lea r14, [rbp]
mov r12, qword [rsp + 0x60]
cmp dword [r13 + 0x1950], 0
jne 0x14004c421
mov edx, dword [r13 + 0x68]
imul edx, esi
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x78]
mov r8d, dword [r13 + 0x68]
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc r12
mov rcx, qword [rbp + 0x978]
mov rax, qword [rcx]
mov r8d, dword [rsp + 0x44]
mov edx, r12d
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r15d
add r14, 8
cmp r15d, dword [rbp + 0x968]
jb 0x14004c3c0
mov qword [rsp + 0x60], r12
mov r12d, dword [rbp + 0x960]
inc esi
mov eax, dword [r13 + 0x68]
imul eax, esi
cmp eax, 0xffffffff
jb 0x14004c451
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, 1
mov dword [rbp + 0x960], r12d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp eax, dword [rsp + 0x68]
lea r15, vtable.CSABString.0
jb 0x14004c0f0
mov r15d, dword [rbp + 0x968]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x14004c4a2
lea rbx, [rbp]
cmp edi, 0x20
jae 0x14004c4a2
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004c497
call fcn.140052840
inc edi
add rbx, 8
cmp edi, r15d
jb 0x14004c485
mov rcx, r13
call fcn.1400491b0
nop
lea rcx, [rbp - 0x38]
call fcn.14006aa90
mov eax, 1
mov rbx, qword [rsp + 0xa70]
add rsp, 0xa20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret