Function at 0x140126f54
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.14010a190
lea r8, [rbp - 0x20]
mov edx, r14d
mov rcx, rdi
call fcn.14013c368
mov ebx, eax
test eax, eax
js 0x140126fae
cmp byte [rbp - 0x20], r12b
jne 0x140127012
mov ebx, 0x807800c6
lea r14, [0x140183048]
mov rcx, qword [0x140183048]
cmp rcx, r14
je 0x140126fe9
test byte [rcx + 0x1c], 1
je 0x140126fe9
cmp byte [rcx + 0x19], 3
jb 0x140126fe9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bb00]
mov edx, 0x16
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005f80
mov rcx, rsi
call fcn.14010a190
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.14013c594
mov ebx, eax
test eax, eax
js 0x140126fae
test r14b, 8
je 0x14012707e
cmp byte [rbp - 0x20], r12b
jne 0x14012703d
mov ebx, 0x8078011d
jmp 0x140126fae
lea r8, [rbp - 0x18]
mov dword [rbp - 0x18], r12d
mov rcx, rdi
call fcn.14013c6bc
mov ebx, eax
test eax, eax
js 0x140126fae
mov ebx, dword [rbp - 0x18]
test ebx, ebx
jns 0x140127068
mov ebx, 0x80780061
jmp 0x140126fae
jle 0x14012707e
call fcn.14012cdec
cmp ebx, 1
jle 0x14012707e
mov ebx, 0x807800b4
jmp 0x140126fae
lea rdx, [rbp - 0x1f]
mov rcx, rdi
call fcn.1401178b0
test eax, eax
jns 0x14012715c
mov rcx, qword [0x140183048]
lea rdx, [0x140183048]
cmp rcx, rdx
je 0x1401270cd
test byte [rcx + 0x1c], 1
je 0x1401270cd
cmp byte [rcx + 0x19], 3
jb 0x1401270cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bb00]
mov edx, 0x10
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005f80
test r14b, 1
jne 0x1401271b3
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], r12w
jne 0x1401270db
mov r8, rsi
mov rcx, rdi
call fcn.140092f30
mov ebx, eax
test eax, eax
js 0x140126fae
lea rdx, [rsi + 0x18]
mov rcx, rdi
call fcn.14013bd58
mov ebx, eax
test eax, eax
jns 0x1401271b3
mov rcx, qword [0x140183048]
lea r14, [0x140183048]
cmp rcx, r14
je 0x140127304
test byte [rcx + 0x1c], 1
je 0x140127304
cmp byte [rcx + 0x19], 2
jb 0x140127304
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bb00]
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.140005f80
jmp 0x1401272fd
cmp byte [rbp - 0x1f], r12b
je 0x1401270cd
mov ebx, 0x807800b2
mov rcx, qword [0x140183048]
lea r14, [0x140183048]
cmp rcx, r14
je 0x140126fe9
test byte [rcx + 0x1c], 1
je 0x140126fbc
cmp byte [rcx + 0x19], 2
jb 0x140126fbc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bb00]
mov edx, 0x11
mov r9, rdi
call fcn.140005f10
jmp 0x140126fb5
lea rdx, [rsi + 0x20]
mov dword [rsi + 0x10], r14d
mov rcx, rdi
call fcn.14013dbfc
mov ebx, eax
test eax, eax
jns 0x1401271fe
mov rcx, qword [0x140183048]
lea r14, [0x140183048]
cmp rcx, r14
je 0x140127304
test byte [rcx + 0x1c], 1
je 0x140127304
cmp byte [rcx + 0x19], 2
jb 0x140127304
mov edx, 0x13
jmp 0x140127140
lea r8, [rsi + 0x14]
mov dl, 1
mov rcx, rdi
call fcn.14013de5c
mov ebx, eax
test eax, eax
jns 0x140127247
mov rcx, qword [0x140183048]
lea r14, [0x140183048]
cmp rcx, r14
je 0x140127304
test byte [rcx + 0x1c], 1
je 0x140127304
cmp byte [rcx + 0x19], 2
jb 0x140127304
mov edx, 0x14
jmp 0x140127140
lea rdx, [rsi + 0x40]
mov rcx, rdi
call fcn.14013d5c0
mov ebx, eax
test eax, eax
jns 0x14012728e
mov rcx, qword [0x140183048]
lea r14, [0x140183048]
cmp rcx, r14
je 0x140127304
test byte [rcx + 0x1c], 1
je 0x140127304
cmp byte [rcx + 0x19], 2
jb 0x140127304
mov edx, 0x15
jmp 0x140127140
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]
nop dword [rax + rax]
test eax, eax
jne 0x1401272c9
mov rcx, rdi
call fcn.14013f1f4
mov ebx, eax
jmp 0x1401272dc
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 0x140126fae
lea r8, [rsi + 0x44]
mov rcx, rdi
lea rdx, [rsi + 0x48]
call fcn.140093500
mov ebx, eax
lea r14, [0x140183048]
mov rcx, qword [0x140183048]
test ebx, ebx
jns 0x140126ff1
jmp 0x140126fbc