Function at 0x14004dc97
Capabilities:
Check if file exists
Get disk size

Disassembly:
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x38], r8
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
mov dword [rbp], 0
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0x40], rax
mov eax, 0xffffffff
add eax, dword [rbp + 0x40]
mov dword [rbp + 4], eax
mov qword [rbp + 0x48], 0xffffffffffffffff
mov rax, qword [rbp + 0xb8]
mov edx, 0x80000000
mov ecx, 1
mov ebx, 0
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000080
mov qword [rsp + 0x30], 0
mov rsi, qword [sym.imp.orauts.dll_CreateFileA]
mov dword [rbp + 0x60], ecx
mov rcx, rax
mov eax, dword [rbp + 0x60]
mov r8d, eax
mov r9, rbx
call rsi
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x14004de36
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x14004dde6
lea rax, [rbp + 0x58]
mov rdx, qword [rbp + 0xb8]
mov qword [rax], rdx
mov rax, qword [rbp + 0xb0]
lea rdx, str.prvf
lea rcx, str.9406
mov ebx, 1
lea rsi, [rbp + 0x58]
mov qword [rsp + 0x20], rsi
lea rsi, str.CVU00362
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov qword [rbp + 0x68], rcx
mov rcx, rax
mov rax, qword [rbp + 0x68]
mov r8, rax
mov r9d, ebx
call fcn.14002d0f9
mov dword [rbp + 0x18], eax
mov dword [rbp], 0xfffffff1
jmp 0x14004df58
mov rax, qword [rbp + 0xb0]
lea rdx, str.CreateFile
mov ecx, dword [rbp + 0x10]
mov rbx, qword [rbp + 0xb8]
lea rsi, str.CVU00367
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x70], ecx
mov rcx, rax
mov eax, dword [rbp + 0x70]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x1c], eax
mov dword [rbp], 0xfffffff0
jmp 0x14004df58
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0xc], eax
mov rax, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xc0]
lea rdx, [rdx + 0x100]
mov rcx, qword [rbp + 0xc0]
lea rcx, [rcx + 0x108]
mov rbx, qword [rbp + 0xc0]
lea rbx, [rbx + 0x110]
mov rsi, qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov qword [rbp + 0x78], rcx
mov rcx, rax
mov rax, qword [rbp + 0x78]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x14004def7
mov rax, qword [rbp + 0xb0]
lea rdx, str.GetDiskFreeSpaceEx
mov ecx, dword [rbp + 0x10]
mov rbx, qword [rbp + 0xb8]
lea rsi, str.CVU00424
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x80], ecx
mov rcx, rax
mov eax, dword [rbp + 0x80]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x20], eax
mov dword [rbp], 0xfffffff0
jmp 0x14004df58
mov rax, qword [rbp + 0xc0]
mov edx, 0x100
lea rcx, [0x1400afa9c]
mov rbx, qword [rbp + 0xb8]
mov qword [rbp + 0x88], rcx
mov rcx, rax
mov rax, qword [rbp + 0x88]
mov r8, rax
mov r9, rbx
call fcn.14001428c
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
movsxd rax, eax
add rax, qword [rbp + 0xc0]
movzx eax, byte [rax]
movzx eax, al
cmp eax, 0x5c
jne 0x14004df58
mov eax, dword [rbp + 4]
movsxd rax, eax
add rax, qword [rbp + 0xc0]
mov byte [rax], 0
mov eax, dword [rbp]
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
lea rsp, [rbp + 0xa0]
pop rbp
ret