Function at 0x10003830c
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 0x100038354
test byte [rcx + 0x1c], 1
je 0x100038354
cmp byte [rcx + 0x19], 4
jb 0x100038354
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x24c
call fcn.10001c854
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 0x1000383a2
mov ebx, 0x8007000e
jmp 0x1000386a4
mov ecx, dword [rdi + 0x170]
shl rcx, 2
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r13, rax
test rax, rax
je 0x1000383ce
mov ecx, dword [rdi + 0x170]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x1000383d8
mov ebx, 0x8007000e
jmp 0x100038661
xor r8d, r8d
cmp dword [rdi + 0x170], esi
jbe 0x100038436
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 0x1000383ee
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.100122fec
mov ebx, eax
test eax, eax
js 0x100038661
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0xb8]
lea rdx, [0x100002934]
call fcn.10009bb88
mov rsi, qword [rsp + 0xb8]
mov ebx, eax
test eax, eax
js 0x100038661
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 0x1000384db
mov rcx, rsi
call fcn.100134b20
mov ebx, eax
jmp 0x1000384ea
mov r15, qword [rsp + 0xc8]
mov r14, qword [rsp + 0x40]
xor ebx, ebx
test ebx, ebx
js 0x10003865a
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10003853a
test byte [rcx + 0x1c], 1
je 0x10003853a
cmp byte [rcx + 0x19], 4
jb 0x10003853a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x24d
mov r9, rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.10001dcfc
mov rcx, qword [0x1001653b8]
mov eax, dword [rdi + 0x14c]
cmp eax, 2
je 0x10003856e
cmp eax, 3
je 0x10003856e
cmp eax, 4
je 0x10003856e
lea r8, [0x100005310]
lea rcx, [0x100004680]
mov edx, 0x392a
call fcn.10009a050
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 0x1000385da
test byte [rcx + 0x1c], 1
je 0x1000385da
cmp byte [rcx + 0x19], 4
jb 0x1000385da
mov r9, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x24e
mov qword [rsp + 0x20], r14
call fcn.10001d7b0
cmp qword [rsp + 0xb0], r14
jbe 0x100038661
mov edx, dword [rdi + 0x14c]
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0xc0]
call fcn.10011ce04
mov r12, qword [rsp + 0xc0]
test eax, eax
js 0x100038624
mov rdx, qword [rdi + 0x160]
lea r8, [0x10000db30]
mov rcx, r12
call fcn.1000eb120
test eax, eax
jns 0x100038661
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100038661
test byte [rcx + 0x1c], 1
je 0x100038661
cmp byte [rcx + 0x19], 2
jb 0x100038661
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x24f
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x100038661
lea r15, [0x1001653b8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r13, r13
je 0x10003867a
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbp, rbp
je 0x100038688
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x100038696
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r12, r12
je 0x1000386a4
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000386d1
test byte [rcx + 0x1c], 1
je 0x1000386d1
cmp byte [rcx + 0x19], 4
jb 0x1000386d1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x250
call fcn.10001c854
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret