Function at 0x14004b79c
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
mov r13d, 0x200
cmp rcx, r14
je 0x14004b7ea
test dword [rcx + 0x1c], r13d
je 0x14004b7ea
cmp byte [rcx + 0x19], 4
jb 0x14004b7ea
mov rcx, qword [rcx + 0x10]
lea edx, [r13 - 0xf]
lea r8, [0x140152588]
call fcn.140004c6c
lea r15, [rdi + 8]
mov rcx, qword [r15]
test rcx, rcx
je 0x14004b7fc
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbp, [rdi + 0x10]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004b80f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rdx, rdi
mov rcx, rsi
call fcn.14010c03c
mov ebx, eax
test eax, eax
jns 0x14004b873
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14004b9ef
test dword [rcx + 0x1c], r13d
je 0x14004b9ef
cmp byte [rcx + 0x19], 2
jb 0x14004b9ef
mov edx, 0x1f2
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov r9, rsi
call fcn.140005ce8
jmp 0x14004b9e8
mov eax, dword [rdi]
dec eax
test eax, 0xfffffffb
je 0x14004b896
lea r8, str.pMedia__m_eMediaType__BLB_MT_SHINY__pMedia__m_eMediaType__BLB_MT_REMOVABLE
mov edx, 0x2799
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008624c
mov rdx, r15
mov rcx, rsi
call fcn.140131aac
mov ebx, eax
test eax, eax
jns 0x14004b8d2
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14004b9ef
test dword [rcx + 0x1c], r13d
je 0x14004b9ef
cmp byte [rcx + 0x19], 2
jb 0x14004b9ef
mov edx, 0x1f3
jmp 0x14004b857
cmp qword [r15], 0
je 0x14004b99e
mov rdx, rbp
mov rcx, rsi
call fcn.140132538
mov ebx, eax
test eax, eax
jns 0x14004b91b
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14004b9ef
test dword [rcx + 0x1c], r13d
je 0x14004b9ef
cmp byte [rcx + 0x19], 2
jb 0x14004b9ef
mov edx, 0x1f4
jmp 0x14004b857
cmp qword [r15], 0
je 0x14004b99e
and qword [rdi + 0x18], 0
lea r9, [rsp + 0x88]
and qword [rdi + 0x20], 0
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x14004b959
mov rcx, rsi
call fcn.140133a1c
mov ebx, eax
jmp 0x14004b970
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
xor ebx, ebx
test ebx, ebx
jns 0x14004ba1e
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14004b9ef
test dword [rcx + 0x1c], r13d
je 0x14004b9ef
cmp byte [rcx + 0x19], 2
jb 0x14004b9ef
mov edx, 0x1f5
mov dword [rsp + 0x20], ebx
jmp 0x14004b85b
lea rdx, [rdi + 0x18]
mov rcx, rsi
call fcn.140131640
mov ebx, eax
test eax, eax
jns 0x14004b9d9
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x14004b9ef
test dword [rcx + 0x1c], r13d
je 0x14004b9ef
cmp byte [rcx + 0x19], 2
jb 0x14004b9ef
mov edx, 0x1f6
jmp 0x14004b857
mov rax, qword [rdi + 0x18]
lea r14, [0x1401782b0]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x14004ba25
mov rcx, qword [r15]
test rcx, rcx
je 0x14004ba01
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004ba10
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14004ba4b
test dword [rcx + 0x1c], r13d
je 0x14004ba4b
cmp byte [rcx + 0x19], 4
jb 0x14004ba4b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x1f7
call fcn.140004c6c
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret