Function at 0x140013270
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400ac2c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov rcx, rdx
cmp qword [rdx + 0x18], 7
jbe 0x1400132ac
mov rcx, qword [rdx]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14001344e
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x60]
call fcn.140088570
lea rcx, [rsp + 0x60]
call fcn.140051350
nop
lea rdx, str.___
lea rcx, [rsp + 0x60]
call fcn.140057bd0
mov rsi, rax
cmp qword [rbx + 0x18], 7
jbe 0x140013311
mov rdx, qword [rbx]
mov rcx, qword [rbx + 0x10]
lea r8, [rdx + rcx*2]
mov rbx, rdx
jmp 0x140013319
mov rax, qword [rbx + 0x10]
lea r8, [rbx + rax*2]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140058760
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140013335
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call fcn.14005d490
lea rdx, str.:_Free:
mov rcx, rax
call fcn.140057bd0
mov rdx, qword [rsp + 0x50]
shr rdx, 0x1e
mov rcx, rax
call fcn.140051610
mov rcx, rax
lea rdx, str._GB___Total:
call fcn.140057bd0
mov rdx, qword [rsp + 0x48]
shr rdx, 0x1e
mov rcx, rax
call fcn.140051610
mov rcx, rax
lea rdx, str._GB___
call fcn.140057bd0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400133cd
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400133c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013518
call fcn.1400626b0
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140055890
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140051110
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x5c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14006133c
nop
jmp 0x1400134f0
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140013465
mov rcx, qword [rbx]
lea r8, [rcx + rax*2]
mov rbx, rcx
jmp 0x140013469
lea r8, [rbx + rax*2]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140058760
nop
mov r9d, 0x23
lea r8, str.Failed_to_get_disk_space_for_drive
mov rcx, rax
call fcn.14005ccf0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400134f0
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400134eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013512
call fcn.1400626b0
mov rax, rdi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140062690
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
call fcn.14007025c
nop
call fcn.14007025c
nop
int3