Function at 0x10003822c
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rdi, rcx
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x100038274
test byte [rcx + 0x1c], 1
je 0x100038274
cmp byte [rcx + 0x19], 4
jb 0x100038274
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x24c
call fcn.10001c7b8
mov ecx, dword [rdi + 0x170]
xor ebp, ebp
xor esi, esi
and qword [rsp + 0xb0], rbp
and qword [rsp + 0xc8], rbp
xor r12d, r12d
shl rcx, 4
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], r12
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1000382c2
mov ebx, 0x8007000e
jmp 0x1000385c4
mov ecx, dword [rdi + 0x170]
shl rcx, 2
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r13, rax
test rax, rax
je 0x1000382ee
mov ecx, dword [rdi + 0x170]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x1000382f8
mov ebx, 0x8007000e
jmp 0x100038581
xor r8d, r8d
cmp dword [rdi + 0x170], esi
jbe 0x100038356
mov r9, rax
xor edx, edx
mov r10, r13
mov r11, rbx
mov rax, qword [rdi + 0xd8]
inc r8d
add rdx, 0x160
movdqu xmm0, xmmword [rdx + rax - 0x11c]
movdqu xmmword [r11], xmm0
mov rax, qword [rdi + 0xd8]
add r11, 0x10
mov ecx, dword [rdx + rax - 0x10c]
mov dword [r10], ecx
mov byte [r9], 1
inc r9
add r10, 4
cmp r8d, dword [rdi + 0x170]
jb 0x10003830e
mov rcx, qword [rdi + 0x238]
lea rax, [rsp + 0xc8]
mov r9, r13
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov r8, rbx
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0x170]
xor edx, edx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call fcn.100122f48
mov ebx, eax
test eax, eax
js 0x100038581
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0xb8]
lea rdx, [0x100002954]
call fcn.10009b5b0
mov rsi, qword [rsp + 0xb8]
mov ebx, eax
test eax, eax
js 0x100038581
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0x40]
mov rcx, rsi
xor r15d, r15d
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1000383fb
mov rcx, rsi
call fcn.100134ad4
mov ebx, eax
jmp 0x10003840a
mov r15, qword [rsp + 0xc8]
mov r14, qword [rsp + 0x40]
xor ebx, ebx
test ebx, ebx
js 0x10003857a
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10003845a
test byte [rcx + 0x1c], 1
je 0x10003845a
cmp byte [rcx + 0x19], 4
jb 0x10003845a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x24d
mov r9, rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.10001dcb0
mov rcx, qword [0x1001653b8]
mov eax, dword [rdi + 0x14c]
cmp eax, 2
je 0x10003848e
cmp eax, 3
je 0x10003848e
cmp eax, 4
je 0x10003848e
lea r8, [0x100005370]
lea rcx, [0x1000046e0]
mov edx, 0x392a
call fcn.100099ad8
mov rcx, qword [0x1001653b8]
cmp dword [rdi + 0x14c], 4
mov eax, 0x50
lea r14d, [rax - 0x14]
cmove r14, rax
movabs rax, 0x47ae147ae147ae15
imul r14, r15
mul r14
sub r14, rdx
shr r14, 1
add r14, rdx
shr r14, 6
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x1000384fa
test byte [rcx + 0x1c], 1
je 0x1000384fa
cmp byte [rcx + 0x19], 4
jb 0x1000384fa
mov r9, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x24e
mov qword [rsp + 0x20], r14
call fcn.10001d714
cmp qword [rsp + 0xb0], r14
jbe 0x100038581
mov edx, dword [rdi + 0x14c]
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0xc0]
call fcn.10011cd60
mov r12, qword [rsp + 0xc0]
test eax, eax
js 0x100038544
mov rdx, qword [rdi + 0x160]
lea r8, [0x10000dc40]
mov rcx, r12
call fcn.1000eacd4
test eax, eax
jns 0x100038581
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100038581
test byte [rcx + 0x1c], 1
je 0x100038581
cmp byte [rcx + 0x19], 2
jb 0x100038581
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x24f
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x100038581
lea r15, [0x1001653b8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r13, r13
je 0x10003859a
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbp, rbp
je 0x1000385a8
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x1000385b6
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r12, r12
je 0x1000385c4
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000385f1
test byte [rcx + 0x1c], 1
je 0x1000385f1
cmp byte [rcx + 0x19], 4
jb 0x1000385f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x250
call fcn.10001c7b8
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret