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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov rdi, 0xffffffffffffffff
mov qword [rbp + 0x1f], rdi
cmp qword [rcx + 0x18], 8
jb 0x14001e619
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e7ef
test al, 0x10
je 0x14001e7ef
xor esi, esi
mov qword [rbp + 0x1f], rsi
lea rdx, [rbp + 0x2f]
mov rcx, rbx
call fcn.14001cf40
nop
mov rdx, rbx
lea rcx, [rbp + 0x2f]
call fcn.14001ce30
test eax, eax
jne 0x14001e683
xor eax, eax
mov qword [rbp + 0x27], rax
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
xor r9d, r9d
lea r8, [rbp + 0x27]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rbp + 0x27]
mov qword [rbp + 0x1f], rax
jmp 0x14001e7a9
cmp qword [rbx + 0x18], 8
jb 0x14001e68d
mov rbx, qword [rbx]
lea rdx, [0x1401241f8]
test rbx, rbx
cmovne rdx, rbx
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], si
nop dword [rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x14001e6b0
mov r8, rdi
lea rcx, [rbp - 9]
call fcn.1400149d0
nop
lea rax, [rbp + 0x1f]
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x29], 1
lea rax, [0x14001e5b0]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x11], 0
xor edx, edx
xor ecx, ecx
call fcn.14001f480
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.14001f480
mov rdi, rax
mov rcx, qword [rbp - 0x21]
cmp rcx, rax
je 0x14001e729
cmp byte [rbp - 0x11], 0
je 0x14001e725
test rcx, rcx
je 0x14001e725
mov r8, qword [rcx]
mov edx, 1
call qword [rreloc.WS2_32.dll_htonl + 8]
mov qword [rbp - 0x21], rdi
mov rcx, qword [rbp - 0x19]
cmp rcx, rbx
je 0x14001e74c
cmp byte [rbp - 0x11], 0
je 0x14001e748
test rcx, rcx
je 0x14001e748
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp - 0x19], rbx
mov byte [rbp - 0x11], 1
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.14001f6d0
nop
lea rcx, [rbp - 0x39]
call fcn.14001f3d0
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14001e7a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e7a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e880
call fcn.1400ccd64
nop
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14001e851
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e7e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e87a
call fcn.1400ccd64
jmp 0x14001e851
cmp qword [rbx + 0x18], 8
jb 0x14001e7f9
mov rbx, qword [rbx]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rdi
je 0x14001e851
xor eax, eax
mov qword [rbp + 0x27], rax
lea rdx, [rbp + 0x27]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x27]
mov qword [rbp + 0x1f], rax
mov rax, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400ccd40
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
int3