Function at 0x140090390
Capabilities:
Get disk size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp], rax
mov r14, r8
mov rsi, rdx
mov r13, rcx
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov rcx, r8
call fcn.140054db0
test eax, eax
jne 0x140090900
mov rdi, qword [rsi + 0x798]
test rdi, rdi
je 0x1400906ca
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
mov r15, rax
test rax, rax
je 0x1400906ba
mov rbx, qword [rsi + 0x770]
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x70]
call fcn.14027b2c0
mov r8, qword [rbx]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rsp + 0x70]
lea r9, [0x1403346f0]
or r8, 0xffffffffffffffff
mov rcx, r8
nop dword [rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x14009052b
add rcx, 2
cmp rcx, 0x15
je 0x14009047c
movzx eax, word [rdx + rcx*2]
cmp ax, word [r9 + rcx*2]
jne 0x14009052b
jmp 0x140090450
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
cmp word [r14], 0
jne 0x1400904a0
mov r8, r12
jmp 0x1400904ab
inc r8
cmp word [r14 + r8*2], 0
jne 0x1400904a0
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14004dd70
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x74]
call fcn.1400a1de0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x74]
call fcn.140068630
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140090500
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14004e2e0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
test rax, rax
je 0x140090640
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rcx, rax
call fcn.14008f0c0
jmp 0x140090640
mov rdx, qword [rsp + 0x70]
lea r9, [0x1403346c8]
mov rcx, r12
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
cmp ax, word [r9 + rcx*2]
jne 0x140090640
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x140090640
add rcx, 2
cmp rcx, 0x14
jne 0x140090540
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
cmp word [r14], 0
jne 0x140090590
mov r8, r12
jmp 0x14009059b
inc r8
cmp word [r14 + r8*2], 0
jne 0x140090590
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14004dd70
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x84]
call fcn.1400a1de0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x84]
call fcn.140068630
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x1400905f6
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14004e2e0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
mov rbx, rax
test rax, rax
je 0x140090640
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov qword [rsp + 0x48], rdx
mov rcx, qword [rax]
test rcx, rcx
je 0x14009062b
mov edx, 0x478
call fcn.14012a2d4
mov qword [rbx], r12
mov rcx, rbx
call fcn.14008efe0
mov edx, WSASetLastError
mov rcx, rbx
call fcn.14012a2d4
cmp qword [r15 + 0x7c], 0
ja 0x1400906a6
cmp qword [r15 + 0x8c], 0
ja 0x1400906a6
lea rdx, [0x140323b74]
mov rcx, qword [rdi + 0x778]
call fcn.1400cfb80
lea rdx, [0x140323bec]
mov rcx, qword [rdi + 0x778]
call fcn.1400cfc00
mov rcx, qword [rdi + 0x778]
mov rax, qword [rcx]
lea rdx, [0x140323bbc]
call qword [rax + 0x318]
mov rcx, qword [rdi + 0x778]
mov rax, qword [rcx]
lea rdx, [0x140323b8c]
call qword [rax + 0x328]
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x1400906ba
call fcn.1402804a8
lea rcx, [rdi + 0x5a8]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x30]
mov rcx, qword [r13 + 0xcd0]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x450]
test rdi, rdi
je 0x140090711
cmp dword [0x14045e968], 0
jne 0x140090711
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
test rax, rax
je 0x140090705
mov rcx, qword [rsp + 0x48]
sub qword [rax + 8], rcx
mov rdi, qword [rdi + 0x798]
test rdi, rdi
jne 0x1400906e2
mov rcx, qword [r13 + 0xcd0]
mov rax, qword [rcx]
call qword [rax + 0x1f0]
mov rdi, rax
lea rbx, [rax + 0x34]
cmp qword [rbx + 0x18], 8
jb 0x140090734
mov rcx, qword [rbx]
jmp 0x140090737
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x1400907b7
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], r12
cmp qword [rbx + 0x18], 8
jb 0x140090755
mov rbx, qword [rbx]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400907b7
mov rax, qword [rsp + 0x60]
mov rcx, rax
sub rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movsd xmm2, qword [0x140363c58]
jns 0x140090791
addsd xmm0, xmm2
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x1400907a2
addsd xmm1, xmm2
divsd xmm0, xmm1
mulsd xmm0, qword [0x140363c08]
cvtpd2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm0
mov r11d, dword [0x14045e968]
cmp qword [rdi + 0x7c], 0
jbe 0x140090834
mov rax, qword [rdi + 0x74]
mov r10, qword [rax]
cmp r10, rax
je 0x140090834
test r11d, r11d
jne 0x140090834
mov rdx, qword [rdi + 8]
mov rcx, r10
call fcn.14008ea60
cmp byte [r10 + 0x19], r11b
jne 0x14009082e
mov rax, qword [r10 + 0x10]
cmp byte [rax + 0x19], r11b
jne 0x14009080e
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r11b
jne 0x14009082e
nop
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140090800
jmp 0x14009082e
mov rax, qword [r10 + 8]
cmp byte [rax + 0x19], 0
jne 0x14009082b
cmp r10, qword [rax + 0x10]
jne 0x14009082b
mov r10, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140090818
mov r10, rax
cmp r10, qword [rdi + 0x74]
jne 0x1400907d1
cmp qword [rdi + 0x8c], 0
jbe 0x140090d5b
mov rax, qword [rdi + 0x84]
mov rcx, qword [rax]
cmp rcx, rax
je 0x140090d5b
movss xmm2, dword [0x140363c68]
movss xmm3, dword [0x140363c30]
test r11d, r11d
jne 0x140090d5b
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rax + 0x28]
mov rax, qword [rdi + 8]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
test rax, rax
jns 0x140090893
addss xmm1, xmm2
divss xmm0, xmm1
mulss xmm0, xmm3
movss dword [rdx + 8], xmm0
cmp byte [rcx + 0x19], 0
jne 0x1400908ee
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400908ce
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400908ee
nop dword [rax]
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400908c0
jmp 0x1400908ee
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400908eb
cmp rcx, qword [rax + 0x10]
jne 0x1400908eb
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400908d8
mov rcx, rax
cmp rcx, qword [rdi + 0x84]
jne 0x140090865
jmp 0x140090d5b
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140090d89
mov rdx, rsi
mov rcx, r13
call fcn.14008ffb0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
mov r15, rax
test rax, rax
je 0x140090d89
cmp qword [rax + 0x7c], r12
jbe 0x140090a28
mov rcx, qword [rax + 0x74]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140090a28
nop
cmp dword [0x14045e968], r12d
jne 0x140090a28
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14008fcf0
mov rax, qword [rbx + 0x40]
cmp qword [rax + 0x8c], r12
ja 0x1400909ce
cmp qword [rax + 0x7c], r12
ja 0x1400909ce
mov rcx, qword [rax]
test rcx, rcx
je 0x140090996
mov edx, 0x478
call fcn.14012a2d4
mov rax, qword [rbx + 0x40]
mov qword [rax], r12
mov rdi, qword [rbx + 0x40]
test rdi, rdi
je 0x1400909b8
mov rcx, rdi
call fcn.14008eeb0
mov edx, __WSAFDIsSet
mov rcx, rdi
call fcn.14012a2d4
mov qword [rbx + 0x40], r12
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x74]
call fcn.140067ef0
mov rbx, qword [rax]
jmp 0x140090a1e
cmp byte [rbx + 0x19], r12b
jne 0x140090a1e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x1400909fe
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x140090a1e
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x1400909f0
jmp 0x140090a1e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], r12b
jne 0x140090a1b
cmp rbx, qword [rax + 0x10]
jne 0x140090a1b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x140090a08
mov rbx, rax
cmp rbx, qword [r15 + 0x74]
jne 0x140090950
cmp qword [r15 + 0x8c], r12
jbe 0x140090b40
mov rax, qword [r15 + 0x84]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140090b40
nop dword [rax + rax]
cmp dword [0x14045e968], r12d
jne 0x140090b6f
lea rcx, [rbx + 0x20]
cmp qword [rcx + 0x18], 8
jb 0x140090a6b
mov rcx, qword [rcx]
call fcn.140054db0
test eax, eax
jne 0x140090adc
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x28]
add qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140090aa1
mov edx, 0x478
call fcn.14012a2d4
mov rax, qword [rbx + 0x40]
mov qword [rax], r12
mov rdi, qword [rbx + 0x40]
test rdi, rdi
je 0x140090ac3
mov rcx, rdi
call fcn.14008efe0
mov edx, WSASetLastError
mov rcx, rdi
call fcn.14012a2d4
mov qword [rbx + 0x40], r12
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x84]
call fcn.140067ef0
mov rbx, qword [rax]
jmp 0x140090b2e
cmp byte [rbx + 0x19], r12b
jne 0x140090b2e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x140090b0e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x140090b2e
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x140090b00
jmp 0x140090b2e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], r12b
jne 0x140090b2b
cmp rbx, qword [rax + 0x10]
jne 0x140090b2b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x140090b18
mov rbx, rax
cmp rbx, qword [r15 + 0x84]
jne 0x140090a50
nop dword [rax + rax]
cmp dword [0x14045e968], r12d
jne 0x140090b6f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
test rax, rax
je 0x140090b63
mov rcx, qword [rsp + 0x48]
sub qword [rax + 8], rcx
mov rsi, qword [rsi + 0x798]
test rsi, rsi
jne 0x140090b40
mov rcx, qword [r13 + 0xcd0]
mov rax, qword [rcx]
call qword [rax + 0x1f0]
mov rdi, rax
lea rbx, [rax + 0x34]
cmp qword [rbx + 0x18], 8
jb 0x140090b92
mov rcx, qword [rbx]
jmp 0x140090b95
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x140090c15
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
cmp qword [rbx + 0x18], 8
jb 0x140090bb3
mov rbx, qword [rbx]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140090c15
mov rax, qword [rsp + 0x50]
mov rcx, rax
sub rcx, qword [rsp + 0x60]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movsd xmm2, qword [0x140363c58]
jns 0x140090bef
addsd xmm0, xmm2
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x140090c00
addsd xmm1, xmm2
divsd xmm0, xmm1
mulsd xmm0, qword [0x140363c08]
cvtpd2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm0
mov r11d, dword [0x14045e968]
cmp qword [rdi + 0x7c], r12
jbe 0x140090c94
mov rax, qword [rdi + 0x74]
mov r10, qword [rax]
cmp r10, rax
je 0x140090c94
nop
test r11d, r11d
jne 0x140090c94
mov rdx, qword [rdi + 8]
mov rcx, r10
call fcn.14008ea60
cmp byte [r10 + 0x19], r12b
jne 0x140090c8e
mov rax, qword [r10 + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x140090c6e
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x140090c8e
nop dword [rax]
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x140090c60
jmp 0x140090c8e
mov rax, qword [r10 + 8]
cmp byte [rax + 0x19], r12b
jne 0x140090c8b
cmp r10, qword [rax + 0x10]
jne 0x140090c8b
mov r10, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x140090c78
mov r10, rax
cmp r10, qword [rdi + 0x74]
jne 0x140090c30
cmp qword [rdi + 0x8c], r12
jbe 0x140090d5b
mov rax, qword [rdi + 0x84]
mov rcx, qword [rax]
cmp rcx, rax
je 0x140090d5b
movss xmm2, dword [0x140363c68]
movss xmm3, dword [0x140363c30]
test r11d, r11d
jne 0x140090d5b
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rax + 0x28]
mov rax, qword [rdi + 8]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
test rax, rax
jns 0x140090cf2
addss xmm1, xmm2
divss xmm0, xmm1
mulss xmm0, xmm3
movss dword [rdx + 8], xmm0
cmp byte [rcx + 0x19], r12b
jne 0x140090d4e
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x140090d2e
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x140090d4e
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x140090d20
jmp 0x140090d4e
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], r12b
jne 0x140090d4b
cmp rcx, qword [rax + 0x10]
jne 0x140090d4b
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x140090d38
mov rcx, rax
cmp rcx, qword [rdi + 0x84]
jne 0x140090cc4
mov rcx, qword [r13 + 0xcd0]
add rcx, 0x5a8
mov rax, qword [rcx]
xor edx, edx
call qword [rax]
mov rbx, rax
mov r8, rdi
mov rdx, rax
call fcn.14008f9c0
mov rdx, rbx
mov rcx, r13
call fcn.14008fb40
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret