Function at 0x14008b750
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 [0x1403a0088]
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.1400546f0
test eax, eax
jne 0x14008bcc0
mov rdi, qword [rsi + 0x798]
test rdi, rdi
je 0x14008ba8a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
mov r15, rax
test rax, rax
je 0x14008ba7a
mov rbx, qword [rsi + 0x770]
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x70]
call fcn.1402767a0
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, [0x14032da88]
or r8, 0xffffffffffffffff
mov rcx, r8
nop dword [rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x14008b8eb
add rcx, 2
cmp rcx, 0x15
je 0x14008b83c
movzx eax, word [rdx + rcx*2]
cmp ax, word [r9 + rcx*2]
jne 0x14008b8eb
jmp 0x14008b810
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
cmp word [r14], 0
jne 0x14008b860
mov r8, r12
jmp 0x14008b86b
inc r8
cmp word [r14 + r8*2], 0
jne 0x14008b860
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14004db90
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x74]
call fcn.14009db50
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x74]
call fcn.140067fb0
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14008b8c0
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14004e100
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
test rax, rax
je 0x14008ba00
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rcx, rax
call fcn.14008a480
jmp 0x14008ba00
mov rdx, qword [rsp + 0x70]
lea r9, [0x14032db38]
mov rcx, r12
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
cmp ax, word [r9 + rcx*2]
jne 0x14008ba00
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x14008ba00
add rcx, 2
cmp rcx, 0x14
jne 0x14008b900
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
cmp word [r14], 0
jne 0x14008b950
mov r8, r12
jmp 0x14008b95b
inc r8
cmp word [r14 + r8*2], 0
jne 0x14008b950
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14004db90
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x84]
call fcn.14009db50
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x84]
call fcn.140067fb0
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14008b9b6
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14004e100
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
mov rbx, rax
test rax, rax
je 0x14008ba00
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov qword [rsp + 0x48], rdx
mov rcx, qword [rax]
test rcx, rcx
je 0x14008b9eb
mov edx, 0x478
call fcn.140125e14
mov qword [rbx], r12
mov rcx, rbx
call fcn.14008a3a0
mov edx, WSASetLastError
mov rcx, rbx
call fcn.140125e14
cmp qword [r15 + 0x7c], 0
ja 0x14008ba66
cmp qword [r15 + 0x8c], 0
ja 0x14008ba66
lea rdx, [0x14031eb8c]
mov rcx, qword [rdi + 0x778]
call fcn.1400cb320
lea rdx, [0x14031eb5c]
mov rcx, qword [rdi + 0x778]
call fcn.1400cb3a0
mov rcx, qword [rdi + 0x778]
mov rax, qword [rcx]
lea rdx, [0x14031eb44]
call qword [rax + 0x318]
mov rcx, qword [rdi + 0x778]
mov rax, qword [rcx]
lea rdx, [0x14031ebec]
call qword [rax + 0x328]
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14008ba7a
call fcn.14027b988
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 0x14008bad1
cmp dword [0x140455b64], 0
jne 0x14008bad1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
test rax, rax
je 0x14008bac5
mov rcx, qword [rsp + 0x48]
sub qword [rax + 8], rcx
mov rdi, qword [rdi + 0x798]
test rdi, rdi
jne 0x14008baa2
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 0x14008baf4
mov rcx, qword [rbx]
jmp 0x14008baf7
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x14008bb77
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], r12
cmp qword [rbx + 0x18], 8
jb 0x14008bb15
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 0x14008bb77
mov rax, qword [rsp + 0x60]
mov rcx, rax
sub rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movsd xmm2, qword [0x14035d108]
jns 0x14008bb51
addsd xmm0, xmm2
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x14008bb62
addsd xmm1, xmm2
divsd xmm0, xmm1
mulsd xmm0, qword [0x14035d0b8]
cvtpd2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm0
mov r11d, dword [0x140455b64]
cmp qword [rdi + 0x7c], 0
jbe 0x14008bbf4
mov rax, qword [rdi + 0x74]
mov r10, qword [rax]
cmp r10, rax
je 0x14008bbf4
test r11d, r11d
jne 0x14008bbf4
mov rdx, qword [rdi + 8]
mov rcx, r10
call fcn.140089e20
cmp byte [r10 + 0x19], r11b
jne 0x14008bbee
mov rax, qword [r10 + 0x10]
cmp byte [rax + 0x19], r11b
jne 0x14008bbce
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r11b
jne 0x14008bbee
nop
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14008bbc0
jmp 0x14008bbee
mov rax, qword [r10 + 8]
cmp byte [rax + 0x19], 0
jne 0x14008bbeb
cmp r10, qword [rax + 0x10]
jne 0x14008bbeb
mov r10, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14008bbd8
mov r10, rax
cmp r10, qword [rdi + 0x74]
jne 0x14008bb91
cmp qword [rdi + 0x8c], 0
jbe 0x14008c11b
mov rax, qword [rdi + 0x84]
mov rcx, qword [rax]
cmp rcx, rax
je 0x14008c11b
movss xmm2, dword [0x14035d118]
movss xmm3, dword [0x14035d0e0]
test r11d, r11d
jne 0x14008c11b
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 0x14008bc53
addss xmm1, xmm2
divss xmm0, xmm1
mulss xmm0, xmm3
movss dword [rdx + 8], xmm0
cmp byte [rcx + 0x19], 0
jne 0x14008bcae
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14008bc8e
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14008bcae
nop dword [rax]
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14008bc80
jmp 0x14008bcae
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14008bcab
cmp rcx, qword [rax + 0x10]
jne 0x14008bcab
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14008bc98
mov rcx, rax
cmp rcx, qword [rdi + 0x84]
jne 0x14008bc25
jmp 0x14008c11b
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14008c149
mov rdx, rsi
mov rcx, r13
call fcn.14008b370
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
mov r15, rax
test rax, rax
je 0x14008c149
cmp qword [rax + 0x7c], r12
jbe 0x14008bde8
mov rcx, qword [rax + 0x74]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x14008bde8
nop
cmp dword [0x140455b64], r12d
jne 0x14008bde8
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14008b0b0
mov rax, qword [rbx + 0x40]
cmp qword [rax + 0x8c], r12
ja 0x14008bd8e
cmp qword [rax + 0x7c], r12
ja 0x14008bd8e
mov rcx, qword [rax]
test rcx, rcx
je 0x14008bd56
mov edx, 0x478
call fcn.140125e14
mov rax, qword [rbx + 0x40]
mov qword [rax], r12
mov rdi, qword [rbx + 0x40]
test rdi, rdi
je 0x14008bd78
mov rcx, rdi
call fcn.14008a270
mov edx, __WSAFDIsSet
mov rcx, rdi
call fcn.140125e14
mov qword [rbx + 0x40], r12
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x74]
call fcn.1400678a0
mov rbx, qword [rax]
jmp 0x14008bdde
cmp byte [rbx + 0x19], r12b
jne 0x14008bdde
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x14008bdbe
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x14008bdde
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x14008bdb0
jmp 0x14008bdde
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], r12b
jne 0x14008bddb
cmp rbx, qword [rax + 0x10]
jne 0x14008bddb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x14008bdc8
mov rbx, rax
cmp rbx, qword [r15 + 0x74]
jne 0x14008bd10
cmp qword [r15 + 0x8c], r12
jbe 0x14008bf00
mov rax, qword [r15 + 0x84]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14008bf00
nop dword [rax + rax]
cmp dword [0x140455b64], r12d
jne 0x14008bf2f
lea rcx, [rbx + 0x20]
cmp qword [rcx + 0x18], 8
jb 0x14008be2b
mov rcx, qword [rcx]
call fcn.1400546f0
test eax, eax
jne 0x14008be9c
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 0x14008be61
mov edx, 0x478
call fcn.140125e14
mov rax, qword [rbx + 0x40]
mov qword [rax], r12
mov rdi, qword [rbx + 0x40]
test rdi, rdi
je 0x14008be83
mov rcx, rdi
call fcn.14008a3a0
mov edx, WSASetLastError
mov rcx, rdi
call fcn.140125e14
mov qword [rbx + 0x40], r12
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x84]
call fcn.1400678a0
mov rbx, qword [rax]
jmp 0x14008beee
cmp byte [rbx + 0x19], r12b
jne 0x14008beee
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x14008bece
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x14008beee
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x14008bec0
jmp 0x14008beee
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], r12b
jne 0x14008beeb
cmp rbx, qword [rax + 0x10]
jne 0x14008beeb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x14008bed8
mov rbx, rax
cmp rbx, qword [r15 + 0x84]
jne 0x14008be10
nop dword [rax + rax]
cmp dword [0x140455b64], r12d
jne 0x14008bf2f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1f0]
test rax, rax
je 0x14008bf23
mov rcx, qword [rsp + 0x48]
sub qword [rax + 8], rcx
mov rsi, qword [rsi + 0x798]
test rsi, rsi
jne 0x14008bf00
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 0x14008bf52
mov rcx, qword [rbx]
jmp 0x14008bf55
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x14008bfd5
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
cmp qword [rbx + 0x18], 8
jb 0x14008bf73
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 0x14008bfd5
mov rax, qword [rsp + 0x50]
mov rcx, rax
sub rcx, qword [rsp + 0x60]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movsd xmm2, qword [0x14035d108]
jns 0x14008bfaf
addsd xmm0, xmm2
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x14008bfc0
addsd xmm1, xmm2
divsd xmm0, xmm1
mulsd xmm0, qword [0x14035d0b8]
cvtpd2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm0
mov r11d, dword [0x140455b64]
cmp qword [rdi + 0x7c], r12
jbe 0x14008c054
mov rax, qword [rdi + 0x74]
mov r10, qword [rax]
cmp r10, rax
je 0x14008c054
nop
test r11d, r11d
jne 0x14008c054
mov rdx, qword [rdi + 8]
mov rcx, r10
call fcn.140089e20
cmp byte [r10 + 0x19], r12b
jne 0x14008c04e
mov rax, qword [r10 + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x14008c02e
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x14008c04e
nop dword [rax]
mov r10, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x14008c020
jmp 0x14008c04e
mov rax, qword [r10 + 8]
cmp byte [rax + 0x19], r12b
jne 0x14008c04b
cmp r10, qword [rax + 0x10]
jne 0x14008c04b
mov r10, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x14008c038
mov r10, rax
cmp r10, qword [rdi + 0x74]
jne 0x14008bff0
cmp qword [rdi + 0x8c], r12
jbe 0x14008c11b
mov rax, qword [rdi + 0x84]
mov rcx, qword [rax]
cmp rcx, rax
je 0x14008c11b
movss xmm2, dword [0x14035d118]
movss xmm3, dword [0x14035d0e0]
test r11d, r11d
jne 0x14008c11b
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 0x14008c0b2
addss xmm1, xmm2
divss xmm0, xmm1
mulss xmm0, xmm3
movss dword [rdx + 8], xmm0
cmp byte [rcx + 0x19], r12b
jne 0x14008c10e
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x14008c0ee
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
jne 0x14008c10e
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x14008c0e0
jmp 0x14008c10e
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], r12b
jne 0x14008c10b
cmp rcx, qword [rax + 0x10]
jne 0x14008c10b
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x14008c0f8
mov rcx, rax
cmp rcx, qword [rdi + 0x84]
jne 0x14008c084
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.14008ad80
mov rdx, rbx
mov rcx, r13
call fcn.14008af00
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret