Function at 0x1400495d8
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 [0x14016d090]
lea r14, [0x14016d090]
mov r13d, 0x200
cmp rcx, r14
je 0x140049626
test dword [rcx + 0x1c], r13d
je 0x140049626
cmp byte [rcx + 0x19], 4
jb 0x140049626
mov rcx, qword [rcx + 0x10]
lea edx, [r13 - 9]
lea r8, [0x140147af8]
call fcn.140004968
lea r15, [rdi + 8]
mov rcx, qword [r15]
test rcx, rcx
je 0x140049638
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbp, [rdi + 0x10]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004964b
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.1401031b0
mov ebx, eax
test eax, eax
jns 0x1400496af
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14004982b
test dword [rcx + 0x1c], r13d
je 0x14004982b
cmp byte [rcx + 0x19], 2
jb 0x14004982b
mov edx, 0x1f8
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140147af8]
mov r9, rsi
call fcn.1400058c8
jmp 0x140049824
mov eax, dword [rdi]
dec eax
test eax, 0xfffffffb
je 0x1400496d2
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.140081b60
mov rdx, r15
mov rcx, rsi
call fcn.140128144
mov ebx, eax
test eax, eax
jns 0x14004970e
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14004982b
test dword [rcx + 0x1c], r13d
je 0x14004982b
cmp byte [rcx + 0x19], 2
jb 0x14004982b
mov edx, 0x1f9
jmp 0x140049693
cmp qword [r15], 0
je 0x1400497da
mov rdx, rbp
mov rcx, rsi
call fcn.140128bc0
mov ebx, eax
test eax, eax
jns 0x140049757
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14004982b
test dword [rcx + 0x1c], r13d
je 0x14004982b
cmp byte [rcx + 0x19], 2
jb 0x14004982b
mov edx, 0x1fa
jmp 0x140049693
cmp qword [r15], 0
je 0x1400497da
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 0x140049795
mov rcx, rsi
call fcn.14012a050
mov ebx, eax
jmp 0x1400497ac
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 0x14004985a
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14004982b
test dword [rcx + 0x1c], r13d
je 0x14004982b
cmp byte [rcx + 0x19], 2
jb 0x14004982b
mov edx, 0x1fb
mov dword [rsp + 0x20], ebx
jmp 0x140049697
lea rdx, [rdi + 0x18]
mov rcx, rsi
call fcn.140127ce0
mov ebx, eax
test eax, eax
jns 0x140049815
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x14004982b
test dword [rcx + 0x1c], r13d
je 0x14004982b
cmp byte [rcx + 0x19], 2
jb 0x14004982b
mov edx, 0x1fc
jmp 0x140049693
mov rax, qword [rdi + 0x18]
lea r14, [0x14016d090]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x14016d090]
test ebx, ebx
jns 0x140049861
mov rcx, qword [r15]
test rcx, rcx
je 0x14004983d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004984c
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 [0x14016d090]
cmp rcx, r14
je 0x140049887
test dword [rcx + 0x1c], r13d
je 0x140049887
cmp byte [rcx + 0x19], 4
jb 0x140049887
mov rcx, qword [rcx + 0x10]
lea r8, [0x140147af8]
mov edx, 0x1fd
call fcn.140004968
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret