Function at 0x1400165d0
Capabilities:
Get disk size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x140079258]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [rdx], r15
mov qword [r8], r15
mov qword [r9], r15
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
xor r9d, r9d
lea r8, [0x14005ae48]
lea rdx, [rbp - 0x30]
call fcn.140010a00
test al, al
je 0x14001686c
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x14001686c
lea rdx, [rax - 1]
cmp rdx, rax
ja 0x14001666e
mov qword [rbp - 0x20], rdx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov word [rax + rdx*2], r15w
jmp 0x14001667d
xor r8d, r8d
sub rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140009d70
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x18]
cmp r8, 8
cmovae rax, rcx
cmp word [rax], 0x5c
je 0x1400166a8
mov r9d, 4
lea r8, [0x14005ae28]
xor edx, edx
jmp 0x1400166cc
lea rax, [rbp - 0x30]
cmp r8, 8
cmovae rax, rcx
cmp word [rax + 4], 0x3f
je 0x1400166dd
mov r9d, 6
lea r8, str._UNC
lea edx, [r9 - 5]
lea rcx, [rbp - 0x30]
call fcn.14001f180
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
lea rdx, [rax - 1]
cmp rdx, rax
ja 0x140016701
mov qword [rbp - 0x20], rdx
lea rax, [rbp - 0x30]
cmp r8, 8
cmovae rax, rcx
mov word [rax + rdx*2], r15w
jmp 0x140016710
xor r8d, r8d
sub rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140009d70
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
lea r8, [rbx + 0x10]
add r8, rcx
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.14002f550
nop
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
mov rax, qword [rcx + rbx + 0x10]
test rax, rax
je 0x14001674a
cmp dword [rax + 4], 0
jne 0x14001685d
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140016829
movabs rax, 0xf35f747b3b21fb2f
mov qword [rsp + 0x30], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_dir.cpp
mov qword [rsp + 0x38], rax
lea rax, str.winnt_dir::GetDriveSize
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x426
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x60], xmm1
lea rcx, [0x1400569a4]
call fcn.140005930
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40001
lea r9, [rbp - 0x30]
lea r8, [0x14005b078]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.1400147a0
nop
mov rcx, qword [rbx + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbx + 0x10]
add rcx, rdx
mov rdx, rax
call fcn.1400064c0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001685d
nop dword [rax + rax]
lock dec dword [rcx]
jne 0x14001685d
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x140016810
jmp 0x14001685d
mov rax, qword [rsp + 0x60]
mov qword [rdi], rax
mov rax, qword [rsp + 0x78]
mov qword [rsi], rax
mov rax, qword [rsp + 0x70]
mov qword [r14], rax
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 0x10
add rcx, rbx
lea rdx, [0x14007bf60]
call fcn.1400064c0
nop
lea rcx, [rsp + 0x58]
call fcn.14002f6c0
jmp 0x14001690a
movabs rax, 0xf35f747b3b21fb23
mov qword [rsp + 0x30], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_dir.cpp
mov qword [rsp + 0x38], rax
lea rax, str.winnt_dir::GetDriveSize
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x41a
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x40], xmm1
lea rcx, [0x1400569a4]
call fcn.140005930
mov r9, rax
mov r8d, 0x40001
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140033ba0
nop
mov rcx, qword [rbx + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbx + 0x10]
add rcx, rdx
mov rdx, rax
call fcn.1400064c0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001690a
lock dec dword [rcx]
jne 0x14001690a
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x1400168f3
cmp qword [rbp - 0x18], 8
jb 0x14001691a
mov rcx, qword [rbp - 0x30]
call fcn.1400376e4
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140038d80
add rsp, 0x108
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret