Function at 0x140116684
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
xor r12d, r12d
mov rcx, r9
mov byte [rbp - 0x1f], r12b
mov rsi, r9
mov r15b, r8b
mov r14d, edx
call fcn.1400fa79c
lea r8, [rbp - 0x20]
mov edx, r14d
mov rcx, rdi
call fcn.14012aef8
mov ebx, eax
test eax, eax
js 0x1401166de
cmp byte [rbp - 0x20], r12b
jne 0x140116741
mov ebx, 0x807800c6
lea r14, [0x140170048]
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x140116719
test byte [rcx + 0x1c], 1
je 0x140116719
cmp byte [rcx + 0x19], 3
jb 0x140116719
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159210]
mov edx, 0x16
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005c44
mov rcx, rsi
call fcn.1400fa79c
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [rbp - 0x20]
mov edx, r14d
mov rcx, rdi
call fcn.14012b0f0
mov ebx, eax
test eax, eax
js 0x1401166de
test r14b, 8
je 0x1401167ad
cmp byte [rbp - 0x20], r12b
jne 0x14011676c
mov ebx, 0x8078011d
jmp 0x1401166de
lea r8, [rbp - 0x18]
mov dword [rbp - 0x18], r12d
mov rcx, rdi
call fcn.14012b214
mov ebx, eax
test eax, eax
js 0x1401166de
mov ebx, dword [rbp - 0x18]
test ebx, ebx
jns 0x140116797
mov ebx, 0x80780061
jmp 0x1401166de
jle 0x1401167ad
call fcn.14011c37c
cmp ebx, 1
jle 0x1401167ad
mov ebx, 0x807800b4
jmp 0x1401166de
lea rdx, [rbp - 0x1f]
mov rcx, rdi
call fcn.140107884
test eax, eax
jns 0x14011688b
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1401167fc
test byte [rcx + 0x1c], 1
je 0x1401167fc
cmp byte [rcx + 0x19], 3
jb 0x1401167fc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159210]
mov edx, 0x10
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005c44
test r14b, 1
jne 0x1401168e2
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], r12w
jne 0x14011680a
mov r8, rsi
mov rcx, rdi
call fcn.140087070
mov ebx, eax
test eax, eax
js 0x1401166de
lea rdx, [rsi + 0x18]
mov rcx, rdi
call fcn.14012a94c
mov ebx, eax
test eax, eax
jns 0x1401168e2
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x140116a29
test byte [rcx + 0x1c], 1
je 0x140116a29
cmp byte [rcx + 0x19], 2
jb 0x140116a29
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159210]
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.140005c44
jmp 0x140116a22
cmp byte [rbp - 0x1f], r12b
je 0x1401167fc
mov ebx, 0x807800b2
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x140116719
test byte [rcx + 0x1c], 1
je 0x1401166ec
cmp byte [rcx + 0x19], 2
jb 0x1401166ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159210]
mov edx, 0x11
mov r9, rdi
call fcn.140005bdc
jmp 0x1401166e5
lea rdx, [rsi + 0x20]
mov dword [rsi + 0x10], r14d
mov rcx, rdi
call fcn.14012c648
mov ebx, eax
test eax, eax
jns 0x14011692d
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x140116a29
test byte [rcx + 0x1c], 1
je 0x140116a29
cmp byte [rcx + 0x19], 2
jb 0x140116a29
mov edx, 0x13
jmp 0x14011686f
lea r8, [rsi + 0x14]
mov dl, 1
mov rcx, rdi
call fcn.14012c890
mov ebx, eax
test eax, eax
jns 0x140116976
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x140116a29
test byte [rcx + 0x1c], 1
je 0x140116a29
cmp byte [rcx + 0x19], 2
jb 0x140116a29
mov edx, 0x14
jmp 0x14011686f
lea rdx, [rsi + 0x40]
mov rcx, rdi
call fcn.14012c048
mov ebx, eax
test eax, eax
jns 0x1401169b9
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x140116a29
test byte [rcx + 0x1c], 1
je 0x140116a29
cmp byte [rcx + 0x19], 2
jb 0x140116a29
mov edx, 0x15
jmp 0x14011686f
mov byte [rsi + 0x28], r15b
lea r9, [rbp - 8]
mov byte [rsi + 0x29], r12b
lea r8, [rbp - 0x18]
mov qword [rsi + 0x30], r12
lea rdx, [rbp - 0x10]
mov rcx, rdi
mov qword [rsi + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1401169ee
mov rcx, rdi
call fcn.14012db10
mov ebx, eax
jmp 0x140116a01
mov rax, qword [rbp - 0x18]
mov qword [rsi + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rsi + 0x38], rax
mov ebx, r12d
test ebx, ebx
js 0x1401166de
lea r8, [rsi + 0x44]
mov rcx, rdi
lea rdx, [rsi + 0x48]
call fcn.1400875f4
mov ebx, eax
lea r14, [0x140170048]
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x140116721
jmp 0x1401166ec