Function at 0x10012f5d8
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0x50
mov rbx, rcx
mov rcx, r9
mov rsi, r9
mov r12b, r8b
mov ebp, edx
mov byte [rax - 0x37], 0
mov byte [rax - 0x36], 0
call fcn.10012c854
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rbx
call fcn.100135490
lea r15, [0x1001653b8]
mov edi, eax
test eax, eax
js 0x10012f633
cmp byte [rsp + 0x30], 0
jne 0x10012f68b
mov edi, 0x807800c6
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f667
test byte [rcx + 0x1c], 1
je 0x10012f667
cmp byte [rcx + 0x19], 3
jb 0x10012f667
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002ea0]
mov edx, 0x1a
mov r9, rbx
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, rsi
call fcn.10012c854
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rbx
call fcn.100135674
mov edi, eax
test eax, eax
js 0x10012f633
test bpl, 8
je 0x10012f6fb
cmp byte [rsp + 0x30], 0
jne 0x10012f6b7
mov edi, 0x8078011d
jmp 0x10012f633
and dword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov edx, ebp
mov rcx, rbx
call fcn.1001357a0
mov edi, eax
test eax, eax
js 0x10012f633
mov eax, dword [rsp + 0x38]
test eax, eax
jns 0x10012f6e7
mov edi, 0x80780061
jmp 0x10012f633
jle 0x10012f6fb
mov rcx, rbx
call fcn.1001262dc
mov edi, 0x807800b4
jmp 0x10012f633
lea rdx, [rsp + 0x31]
mov rcx, rbx
call fcn.10011d438
mov edi, eax
test eax, eax
jns 0x10012f753
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f9cd
test byte [rcx + 0x1c], 1
je 0x10012f9cd
cmp byte [rcx + 0x19], 2
jb 0x10012f9cd
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002ea0]
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x10012f9c6
cmp byte [rsp + 0x31], 0
je 0x10012f7a0
mov edi, 0x807800b2
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f667
test byte [rcx + 0x1c], 1
je 0x10012f63a
cmp byte [rcx + 0x19], 2
jb 0x10012f63a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002ea0]
mov edx, 0x13
mov r9, rbx
call fcn.10001da24
jmp 0x10012f633
lea rdx, [rsp + 0x32]
mov rcx, rbx
call fcn.10011f638
test eax, eax
jns 0x10012f85b
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f7e9
test byte [rcx + 0x1c], 1
je 0x10012f7e9
cmp byte [rcx + 0x19], 3
jb 0x10012f7e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002ea0]
mov edx, 0x14
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.10001daa4
test bpl, 1
jne 0x10012f8a3
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov r8, rsi
not rcx
lea rdx, [rcx - 1]
mov rcx, rbx
call fcn.10009c2e4
mov edi, eax
test eax, eax
js 0x10012f633
lea rdx, [rsi + 0x18]
mov rcx, rbx
call fcn.100134eb4
mov edi, eax
test eax, eax
jns 0x10012f8a3
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f9cd
test byte [rcx + 0x1c], 1
je 0x10012f9cd
cmp byte [rcx + 0x19], 2
jb 0x10012f9cd
mov edx, 0x16
jmp 0x10012f737
cmp byte [rsp + 0x32], 0
je 0x10012f7e9
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f899
test byte [rcx + 0x1c], 1
je 0x10012f899
cmp byte [rcx + 0x19], 2
jb 0x10012f899
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002ea0]
mov edx, 0x15
mov r9, rbx
call fcn.10001da24
mov rcx, qword [0x1001653b8]
mov edi, 0x8078015f
jmp 0x10012f63a
lea rdx, [rsi + 0x20]
mov rcx, rbx
mov dword [rsi + 0x10], ebp
call fcn.100136af8
mov edi, eax
test eax, eax
jns 0x10012f8e6
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f9cd
test byte [rcx + 0x1c], 1
je 0x10012f9cd
cmp byte [rcx + 0x19], 2
jb 0x10012f9cd
mov edx, 0x17
jmp 0x10012f737
lea rdx, [rsi + 0x14]
mov rcx, rbx
call fcn.100136d34
mov edi, eax
test eax, eax
jns 0x10012f926
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f9cd
test byte [rcx + 0x1c], 1
je 0x10012f9cd
cmp byte [rcx + 0x19], 2
jb 0x10012f9cd
mov edx, 0x18
jmp 0x10012f737
lea rdx, [rsi + 0x40]
mov rcx, rbx
call fcn.1001365b8
mov edi, eax
test eax, eax
jns 0x10012f95e
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f9cd
test byte [rcx + 0x1c], 1
je 0x10012f9cd
cmp byte [rcx + 0x19], 2
jb 0x10012f9cd
mov edx, 0x19
jmp 0x10012f737
mov byte [rsi + 0x28], r12b
mov byte [rsi + 0x29], 0
and qword [rsi + 0x30], 0
and qword [rsi + 0x38], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10012f998
mov rcx, rbx
call fcn.100134ad4
mov edi, eax
jmp 0x10012f9ac
mov rax, qword [rsp + 0x38]
xor edi, edi
mov qword [rsi + 0x30], rax
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x38], rax
test edi, edi
js 0x10012f633
lea r8, [rsi + 0x44]
lea rdx, [rsi + 0x48]
mov rcx, rbx
call fcn.10009c81c
mov edi, eax
mov rcx, qword [0x1001653b8]
test edi, edi
jns 0x10012f66f
jmp 0x10012f63a