Function at 0x14004a278
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 [0x140170048]
lea r14, [0x140170048]
mov r13d, 0x200
cmp rcx, r14
je 0x14004a2c6
test dword [rcx + 0x1c], r13d
je 0x14004a2c6
cmp byte [rcx + 0x19], 4
jb 0x14004a2c6
mov rcx, qword [rcx + 0x10]
lea edx, [r13 - 9]
lea r8, [0x14014bb48]
call fcn.140004c54
lea r15, [rdi + 8]
mov rcx, qword [r15]
test rcx, rcx
je 0x14004a2d8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbp, [rdi + 0x10]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004a2eb
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.140105804
mov ebx, eax
test eax, eax
jns 0x14004a34f
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14004a4ed
test dword [rcx + 0x1c], r13d
je 0x14004a4ed
cmp byte [rcx + 0x19], 2
jb 0x14004a4ed
mov edx, 0x1f8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.140005c44
jmp 0x14004a4e6
mov eax, dword [rdi]
dec eax
test eax, 0xfffffffb
je 0x14004a372
lea r8, str.pMedia__m_eMediaType__BLB_MT_SHINY__pMedia__m_eMediaType__BLB_MT_REMOVABLE
mov edx, 0x27cb
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008388c
mov rdx, r15
mov rcx, rsi
call fcn.14012bbdc
mov ebx, eax
test eax, eax
jns 0x14004a3ae
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14004a4ed
test dword [rcx + 0x1c], r13d
je 0x14004a4ed
cmp byte [rcx + 0x19], 2
jb 0x14004a4ed
mov edx, 0x1f9
jmp 0x14004a333
cmp qword [r15], 0
je 0x14004a3f3
mov rdx, rbp
mov rcx, rsi
call fcn.14012c668
mov ebx, eax
test eax, eax
jns 0x14004a3f3
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14004a4ed
test dword [rcx + 0x1c], r13d
je 0x14004a4ed
cmp byte [rcx + 0x19], 2
jb 0x14004a4ed
mov edx, 0x1fa
jmp 0x14004a333
cmp qword [r15], 0
lea r14, [rdi + 0x18]
mov rcx, rsi
je 0x14004a4a7
and qword [r14], 0
lea r9, [rsp + 0x88]
and qword [rdi + 0x20], 0
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x14004a438
mov rcx, rsi
call fcn.14012db30
mov ebx, eax
jmp 0x14004a44e
mov rax, qword [rsp + 0x78]
mov qword [r14], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
xor ebx, ebx
test ebx, ebx
jns 0x14004a49e
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14004a4f4
test dword [rcx + 0x1c], r13d
je 0x14004a4f4
cmp byte [rcx + 0x19], 2
jb 0x14004a4f4
mov edx, 0x1fb
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov r9, rsi
call fcn.140005c44
mov rcx, qword [0x140170048]
jmp 0x14004a4f4
lea r14, [0x140170048]
jmp 0x14004a523
mov rdx, r14
call fcn.14012b770
mov ebx, eax
test eax, eax
jns 0x14004a4df
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14004a4f4
test dword [rcx + 0x1c], r13d
je 0x14004a4f4
cmp byte [rcx + 0x19], 2
jb 0x14004a4f4
mov edx, 0x1fc
mov dword [rsp + 0x20], eax
jmp 0x14004a482
mov rax, qword [r14]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
test ebx, ebx
jns 0x14004a52a
mov rcx, qword [r15]
test rcx, rcx
je 0x14004a506
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004a515
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 [0x140170048]
cmp rcx, r14
je 0x14004a550
test dword [rcx + 0x1c], r13d
je 0x14004a550
cmp byte [rcx + 0x19], 4
jb 0x14004a550
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x1fd
call fcn.140004c54
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret