Function at 0x1000521e4
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rdx
mov rsi, rcx
lea r15, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052253
bt dword [rcx + 0x1c], 9
jae 0x100052253
cmp byte [rcx + 0x19], 4
jb 0x100052253
mov edx, 0x1c3
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c854
movdqu xmm0, xmmword [0x10000f0f8]
movdqu xmmword [rsp + 0x78], xmm0
xor r14d, r14d
mov r13, r14
mov qword [rsp + 0x40], r14
mov r12, r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov rcx, rbp
call fcn.100144d74
mov rdx, rbp
mov rcx, rsi
call fcn.10011b7a8
mov ebx, eax
cmp eax, r14d
jge 0x1000522e5
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 3
jb 0x100052982
mov edx, 0x1c4
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
jmp 0x100052982
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.10009ba10
mov ebx, eax
cmp eax, r14d
jl 0x10005297b
lea rdx, [rbp + 0x18]
mov rcx, rsi
call fcn.100134f00
mov ebx, eax
cmp eax, r14d
jge 0x10005235c
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 3
jb 0x100052982
mov edx, 0x1c5
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov ecx, dword [rbp]
call fcn.1000a35bc
bt eax, 9
jb 0x1000525f8
lea rdx, [rbp + 8]
mov rcx, rsi
call fcn.100136b44
mov ebx, eax
cmp eax, r14d
jge 0x1000523ce
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 3
jb 0x100052982
mov edx, 0x1c6
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
jmp 0x100052982
lea rdx, [rbp + 0x20]
mov rcx, rsi
call fcn.10013610c
mov ebx, eax
cmp eax, r14d
jge 0x10005242a
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 3
jb 0x100052982
mov edx, 0x1c7
mov r9d, eax
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
jmp 0x100052982
cmp qword [rbp + 0x20], r14
je 0x100052594
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, r14d
jne 0x100052465
mov rcx, rsi
call fcn.100134b20
mov ebx, eax
jmp 0x10005247a
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x30], rax
mov ebx, r14d
cmp ebx, r14d
jge 0x1000524c8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 3
jb 0x100052982
mov edx, 0x1c8
mov r9d, ebx
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov byte [rsp + 0x30], r14b
lea rcx, [rsp + 0x30]
call fcn.1000a1d7c
mov ebx, eax
cmp eax, r14d
jl 0x10005297b
lea rdx, [0x100004a40]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
jne 0x100052558
cmp byte [rsp + 0x30], r14b
jne 0x100052558
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, rsi
call fcn.100129aac
cmp eax, r14d
jge 0x1000525f8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10005254f
bt dword [rcx + 0x1c], 9
jae 0x10005254f
cmp byte [rcx + 0x19], 3
jb 0x10005254f
mov edx, 0x1c9
mov r9d, eax
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov qword [rbp + 0x40], r14
jmp 0x1000525f8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000525f8
bt dword [rcx + 0x1c], 9
jae 0x1000525f8
cmp byte [rcx + 0x19], 4
jb 0x1000525f8
mov edx, 0x1ca
mov r9, qword [rbp + 0x20]
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001db08
jmp 0x1000525f8
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.100135c9c
mov ebx, eax
cmp eax, r14d
jge 0x1000525f0
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 3
jb 0x100052982
mov edx, 0x1cb
mov r9d, eax
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.100123a50
mov ebx, eax
cmp eax, r14d
jge 0x100052666
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052657
bt dword [rcx + 0x1c], 9
jae 0x100052657
cmp byte [rcx + 0x19], 3
jb 0x100052657
mov edx, 0x1cc
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
jmp 0x100052982
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
cmp r12, r14
jne 0x1000526b9
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000526a6
bt dword [rcx + 0x1c], 9
jae 0x1000526a6
cmp byte [rcx + 0x19], 4
jb 0x1000526a6
mov edx, 0x1cd
mov r9, rsi
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001db08
mov byte [rbp + 0x48], r14b
mov ebx, r14d
mov rcx, qword [0x1001653b8]
jmp 0x100052876
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.100122e84
mov ebx, eax
cmp eax, r14d
jge 0x100052718
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10005270e
bt dword [rcx + 0x1c], 9
jae 0x10005270e
cmp byte [rcx + 0x19], 3
jb 0x10005270e
mov edx, 0x1ce
mov r9d, eax
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov r13, qword [rsp + 0x40]
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov r13, qword [rsp + 0x40]
jmp 0x100052982
mov rdi, r14
cmp r12, r14
jbe 0x10005286f
mov qword [rsp + 0x38], r14
cmp rdi, r12
jae 0x10005284c
lea r8, [rsp + 0x38]
mov rdx, qword [r13 + rdi*8]
mov rcx, rsi
call fcn.100123848
mov ebx, eax
cmp eax, r14d
jl 0x1000527d5
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call fcn.100120e48
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, r14d
jge 0x1000527c5
mov byte [rbp + 0x48], r14b
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000527b1
bt dword [rcx + 0x1c], 9
jae 0x1000527b1
cmp byte [rcx + 0x19], 3
jb 0x1000527b1
mov edx, 0x1d0
mov qword [rsp + 0x20], r14
mov r9d, ebx
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001d9dc
mov rcx, qword [0x1001653b8]
mov ebx, r14d
inc rdi
cmp rdi, r12
jae 0x100052876
jmp 0x100052724
mov byte [rbp + 0x48], 1
mov rcx, qword [0x1001653b8]
jmp 0x100052876
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 3
jb 0x100052982
cmp rdi, r12
jb 0x100052822
lea r8, [0x100005a58]
mov edx, 0x2cd
lea rcx, [0x1000059a0]
call fcn.10009a050
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov edx, 0x1cf
mov dword [rsp + 0x20], eax
mov r9, qword [r13 + rdi*8]
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
jmp 0x100052982
lea r8, [0x100005a58]
mov edx, 0x2cd
lea rcx, [0x1000059a0]
call fcn.10009a050
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov rcx, qword [0x1001653b8]
cmp dword [rbp], 2
je 0x100052882
cmp dword [rbp], 3
jne 0x1000528ed
lea r8, [rbp + 0x4a]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.10009cdf4
mov ebx, eax
cmp eax, r14d
jge 0x1000528e6
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052982
bt dword [rcx + 0x1c], 9
jae 0x100052982
cmp byte [rcx + 0x19], 2
jb 0x100052982
mov edx, 0x1d1
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov rcx, qword [0x1001653b8]
cmp dword [rbp], 1
jne 0x100052982
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x31], r14b
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x31]
mov rcx, rsi
call fcn.10012857c
mov ebx, eax
cmp eax, r14d
jge 0x100052963
cmp eax, 0x8007000e
je 0x10005295a
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052955
test byte [rcx + 0x1c], 1
je 0x100052955
cmp byte [rcx + 0x19], 3
jb 0x100052955
mov edx, 0x1d2
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov ebx, r14d
jmp 0x100052963
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov al, byte [rsp + 0x30]
neg al
sbb ecx, ecx
neg ecx
inc ecx
mov dword [rbp + 0x58], ecx
mov rcx, qword [0x1001653b8]
jmp 0x100052982
mov rcx, qword [0x1001653b8]
mov rdi, r14
cmp r12, r14
jbe 0x1000529d5
cmp rdi, r12
jae 0x1000529b2
cmp qword [r13 + rdi*8], r14
je 0x1000529a1
mov rcx, qword [r13 + rdi*8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
inc rdi
cmp rdi, r12
jb 0x10005298a
mov rcx, qword [0x1001653b8]
jmp 0x1000529d5
lea r8, [0x100005a58]
mov edx, 0x2cd
lea rcx, [0x1000059a0]
call fcn.10009a050
mov ecx, 0x80070057
call fcn.1000196c8
int3
cmp ebx, r14d
jge 0x1000529e9
mov rcx, rbp
call fcn.100144d74
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052a11
bt dword [rcx + 0x1c], 9
jae 0x100052a11
cmp byte [rcx + 0x19], 4
jb 0x100052a11
mov edx, 0x1d3
lea r8, [0x100003cb8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c854
nop
cmp r13, r14
je 0x100052a1f
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret