Function at 0x14004a824
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 [0x1401720a0]
lea r14, [0x1401720a0]
mov r13d, 0x200
cmp rcx, r14
je 0x14004a872
test dword [rcx + 0x1c], r13d
je 0x14004a872
cmp byte [rcx + 0x19], 4
jb 0x14004a872
mov rcx, qword [rcx + 0x10]
lea edx, [r13 - 0xc]
lea r8, [0x14014c7e8]
call fcn.140004b74
lea r15, [rdi + 8]
mov rcx, qword [r15]
test rcx, rcx
je 0x14004a884
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbp, [rdi + 0x10]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004a897
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.1401077cc
mov ebx, eax
test eax, eax
jns 0x14004a8fb
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14004aa77
test dword [rcx + 0x1c], r13d
je 0x14004aa77
cmp byte [rcx + 0x19], 2
jb 0x14004aa77
mov edx, 0x1f5
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov r9, rsi
call fcn.140005b60
jmp 0x14004aa70
mov eax, dword [rdi]
dec eax
test eax, 0xfffffffb
je 0x14004a91e
lea r8, str.pMedia__m_eMediaType__BLB_MT_SHINY__pMedia__m_eMediaType__BLB_MT_REMOVABLE
mov edx, 0x27bb
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008410c
mov rdx, r15
mov rcx, rsi
call fcn.14012cc9c
mov ebx, eax
test eax, eax
jns 0x14004a95a
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14004aa77
test dword [rcx + 0x1c], r13d
je 0x14004aa77
cmp byte [rcx + 0x19], 2
jb 0x14004aa77
mov edx, 0x1f6
jmp 0x14004a8df
cmp qword [r15], 0
je 0x14004aa26
mov rdx, rbp
mov rcx, rsi
call fcn.14012d728
mov ebx, eax
test eax, eax
jns 0x14004a9a3
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14004aa77
test dword [rcx + 0x1c], r13d
je 0x14004aa77
cmp byte [rcx + 0x19], 2
jb 0x14004aa77
mov edx, 0x1f7
jmp 0x14004a8df
cmp qword [r15], 0
je 0x14004aa26
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 0x14004a9e1
mov rcx, rsi
call fcn.14012ebe0
mov ebx, eax
jmp 0x14004a9f8
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 0x14004aaa6
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14004aa77
test dword [rcx + 0x1c], r13d
je 0x14004aa77
cmp byte [rcx + 0x19], 2
jb 0x14004aa77
mov edx, 0x1f8
mov dword [rsp + 0x20], ebx
jmp 0x14004a8e3
lea rdx, [rdi + 0x18]
mov rcx, rsi
call fcn.14012c830
mov ebx, eax
test eax, eax
jns 0x14004aa61
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x14004aa77
test dword [rcx + 0x1c], r13d
je 0x14004aa77
cmp byte [rcx + 0x19], 2
jb 0x14004aa77
mov edx, 0x1f9
jmp 0x14004a8df
mov rax, qword [rdi + 0x18]
lea r14, [0x1401720a0]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x1401720a0]
test ebx, ebx
jns 0x14004aaad
mov rcx, qword [r15]
test rcx, rcx
je 0x14004aa89
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004aa98
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 [0x1401720a0]
cmp rcx, r14
je 0x14004aad3
test dword [rcx + 0x1c], r13d
je 0x14004aad3
cmp byte [rcx + 0x19], 4
jb 0x14004aad3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0x1fa
call fcn.140004b74
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret