Function at 0x14001eb40
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 [0x14015b138]
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 0x14001eb89
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ed5f
test al, 0x10
je 0x14001ed5f
xor esi, esi
mov qword [rbp + 0x1f], rsi
lea rdx, [rbp + 0x2f]
mov rcx, rbx
call fcn.14001d4b0
nop
mov rdx, rbx
lea rcx, [rbp + 0x2f]
call fcn.14001d3a0
test eax, eax
jne 0x14001ebf3
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 0x14001ed19
cmp qword [rbx + 0x18], 8
jb 0x14001ebfd
mov rbx, qword [rbx]
lea rdx, [0x140125218]
test rbx, rbx
cmovne rdx, rbx
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], si
nop dword [rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x14001ec20
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, [0x14001eb20]
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.14001f9f0
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.14001f9f0
mov rdi, rax
mov rcx, qword [rbp - 0x21]
cmp rcx, rax
je 0x14001ec99
cmp byte [rbp - 0x11], 0
je 0x14001ec95
test rcx, rcx
je 0x14001ec95
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 0x14001ecbc
cmp byte [rbp - 0x11], 0
je 0x14001ecb8
test rcx, rcx
je 0x14001ecb8
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.14001fc40
nop
lea rcx, [rbp - 0x39]
call fcn.14001f940
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14001ed19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ed13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001edf0
call fcn.1400cd424
nop
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14001edc1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ed58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001edea
call fcn.1400cd424
jmp 0x14001edc1
cmp qword [rbx + 0x18], 8
jb 0x14001ed69
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 0x14001edc1
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.1400cd400
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.1400d20f4
nop
call fcn.1400d20f4
nop
int3