Function at 0x140049960
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 [0x14016f048]
lea r14, [0x14016f048]
mov r13d, 0x200
cmp rcx, r14
je 0x1400499ae
test dword [rcx + 0x1c], r13d
je 0x1400499ae
cmp byte [rcx + 0x19], 4
jb 0x1400499ae
mov rcx, qword [rcx + 0x10]
lea edx, [r13 - 9]
lea r8, [0x140148ac8]
call fcn.1400049d8
lea r15, [rdi + 8]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400499c0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbp, [rdi + 0x10]
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400499d3
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.140103e50
mov ebx, eax
test eax, eax
jns 0x140049a37
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140049bd5
test dword [rcx + 0x1c], r13d
je 0x140049bd5
cmp byte [rcx + 0x19], 2
jb 0x140049bd5
mov edx, 0x1f8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.140005938
jmp 0x140049bce
mov eax, dword [rdi]
dec eax
test eax, 0xfffffffb
je 0x140049a5a
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.140082070
mov rdx, r15
mov rcx, rsi
call fcn.140128fc4
mov ebx, eax
test eax, eax
jns 0x140049a96
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140049bd5
test dword [rcx + 0x1c], r13d
je 0x140049bd5
cmp byte [rcx + 0x19], 2
jb 0x140049bd5
mov edx, 0x1f9
jmp 0x140049a1b
cmp qword [r15], 0
je 0x140049adb
mov rdx, rbp
mov rcx, rsi
call fcn.140129a40
mov ebx, eax
test eax, eax
jns 0x140049adb
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140049bd5
test dword [rcx + 0x1c], r13d
je 0x140049bd5
cmp byte [rcx + 0x19], 2
jb 0x140049bd5
mov edx, 0x1fa
jmp 0x140049a1b
cmp qword [r15], 0
lea r14, [rdi + 0x18]
mov rcx, rsi
je 0x140049b8f
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 0x140049b20
mov rcx, rsi
call fcn.14012aee4
mov ebx, eax
jmp 0x140049b36
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 0x140049b86
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140049bdc
test dword [rcx + 0x1c], r13d
je 0x140049bdc
cmp byte [rcx + 0x19], 2
jb 0x140049bdc
mov edx, 0x1fb
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov r9, rsi
call fcn.140005938
mov rcx, qword [0x14016f048]
jmp 0x140049bdc
lea r14, [0x14016f048]
jmp 0x140049c0b
mov rdx, r14
call fcn.140128b60
mov ebx, eax
test eax, eax
jns 0x140049bc7
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140049bdc
test dword [rcx + 0x1c], r13d
je 0x140049bdc
cmp byte [rcx + 0x19], 2
jb 0x140049bdc
mov edx, 0x1fc
mov dword [rsp + 0x20], eax
jmp 0x140049b6a
mov rax, qword [r14]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
test ebx, ebx
jns 0x140049c12
mov rcx, qword [r15]
test rcx, rcx
je 0x140049bee
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp]
test rcx, rcx
je 0x140049bfd
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 [0x14016f048]
cmp rcx, r14
je 0x140049c38
test dword [rcx + 0x1c], r13d
je 0x140049c38
cmp byte [rcx + 0x19], 4
jb 0x140049c38
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x1fd
call fcn.1400049d8
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret