Function at 0x10012f67c
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.10012c8f8
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rbx
call fcn.1001354dc
lea r15, [0x1001653b8]
mov edi, eax
test eax, eax
js 0x10012f6d7
cmp byte [rsp + 0x30], 0
jne 0x10012f72f
mov edi, 0x807800c6
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f70b
test byte [rcx + 0x1c], 1
je 0x10012f70b
cmp byte [rcx + 0x19], 3
jb 0x10012f70b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0x1a
mov r9, rbx
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rcx, rsi
call fcn.10012c8f8
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.1001356c0
mov edi, eax
test eax, eax
js 0x10012f6d7
test bpl, 8
je 0x10012f79f
cmp byte [rsp + 0x30], 0
jne 0x10012f75b
mov edi, 0x8078011d
jmp 0x10012f6d7
and dword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov edx, ebp
mov rcx, rbx
call fcn.1001357ec
mov edi, eax
test eax, eax
js 0x10012f6d7
mov eax, dword [rsp + 0x38]
test eax, eax
jns 0x10012f78b
mov edi, 0x80780061
jmp 0x10012f6d7
jle 0x10012f79f
mov rcx, rbx
call fcn.100126380
mov edi, 0x807800b4
jmp 0x10012f6d7
lea rdx, [rsp + 0x31]
mov rcx, rbx
call fcn.10011d4dc
mov edi, eax
test eax, eax
jns 0x10012f7f7
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012fa71
test byte [rcx + 0x1c], 1
je 0x10012fa71
cmp byte [rcx + 0x19], 2
jb 0x10012fa71
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x10012fa6a
cmp byte [rsp + 0x31], 0
je 0x10012f844
mov edi, 0x807800b2
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f70b
test byte [rcx + 0x1c], 1
je 0x10012f6de
cmp byte [rcx + 0x19], 2
jb 0x10012f6de
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0x13
mov r9, rbx
call fcn.10001db08
jmp 0x10012f6d7
lea rdx, [rsp + 0x32]
mov rcx, rbx
call fcn.10011f6dc
test eax, eax
jns 0x10012f8ff
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f88d
test byte [rcx + 0x1c], 1
je 0x10012f88d
cmp byte [rcx + 0x19], 3
jb 0x10012f88d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0x14
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
test bpl, 1
jne 0x10012f947
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.10009c8bc
mov edi, eax
test eax, eax
js 0x10012f6d7
lea rdx, [rsi + 0x18]
mov rcx, rbx
call fcn.100134f00
mov edi, eax
test eax, eax
jns 0x10012f947
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012fa71
test byte [rcx + 0x1c], 1
je 0x10012fa71
cmp byte [rcx + 0x19], 2
jb 0x10012fa71
mov edx, 0x16
jmp 0x10012f7db
cmp byte [rsp + 0x32], 0
je 0x10012f88d
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012f93d
test byte [rcx + 0x1c], 1
je 0x10012f93d
cmp byte [rcx + 0x19], 2
jb 0x10012f93d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0x15
mov r9, rbx
call fcn.10001db08
mov rcx, qword [0x1001653b8]
mov edi, 0x8078015f
jmp 0x10012f6de
lea rdx, [rsi + 0x20]
mov rcx, rbx
mov dword [rsi + 0x10], ebp
call fcn.100136b44
mov edi, eax
test eax, eax
jns 0x10012f98a
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012fa71
test byte [rcx + 0x1c], 1
je 0x10012fa71
cmp byte [rcx + 0x19], 2
jb 0x10012fa71
mov edx, 0x17
jmp 0x10012f7db
lea rdx, [rsi + 0x14]
mov rcx, rbx
call fcn.100136d80
mov edi, eax
test eax, eax
jns 0x10012f9ca
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012fa71
test byte [rcx + 0x1c], 1
je 0x10012fa71
cmp byte [rcx + 0x19], 2
jb 0x10012fa71
mov edx, 0x18
jmp 0x10012f7db
lea rdx, [rsi + 0x40]
mov rcx, rbx
call fcn.100136604
mov edi, eax
test eax, eax
jns 0x10012fa02
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10012fa71
test byte [rcx + 0x1c], 1
je 0x10012fa71
cmp byte [rcx + 0x19], 2
jb 0x10012fa71
mov edx, 0x19
jmp 0x10012f7db
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 0x10012fa3c
mov rcx, rbx
call fcn.100134b20
mov edi, eax
jmp 0x10012fa50
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 0x10012f6d7
lea r8, [rsi + 0x44]
lea rdx, [rsi + 0x48]
mov rcx, rbx
call fcn.10009cdf4
mov edi, eax
mov rcx, qword [0x1001653b8]
test edi, edi
jns 0x10012f713
jmp 0x10012f6de