Function at 0x140049834
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov rdi, rcx
lea r15, [0x140170048]
mov r13d, 0x200
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049894
test dword [rcx + 0x1c], r13d
je 0x140049894
cmp byte [rcx + 0x19], 4
jb 0x140049894
lea edx, [r13 - 0x1f]
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140004c54
movups xmm0, xmmword [0x14014fd28]
movdqu xmmword [rbp - 0x38], xmm0
xor r12d, r12d
mov qword [rbp - 0x28], r12
xor r14d, r14d
mov qword [rbp - 0x20], r14
and qword [rbp - 0x18], r12
and dword [rbp - 0x10], r12d
mov rcx, rsi
call fcn.140137ee4
mov rdx, rsi
mov rcx, rdi
call fcn.140105804
mov ebx, eax
test eax, eax
jns 0x14004991b
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049efa
test dword [rcx + 0x1c], r13d
je 0x140049efa
cmp byte [rcx + 0x19], 3
jb 0x140049efa
mov edx, 0x1e2
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140005c44
mov rcx, qword [0x140170048]
jmp 0x140049efa
lea rdx, [rsi + 0x10]
mov rcx, rdi
call fcn.140084524
mov ebx, eax
test eax, eax
js 0x140049ebe
lea rdx, [rsi + 0x18]
mov rcx, rdi
call fcn.14012a94c
mov ebx, eax
test eax, eax
jns 0x14004996e
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049efa
test dword [rcx + 0x1c], r13d
je 0x140049efa
cmp byte [rcx + 0x19], 3
jb 0x140049efa
mov edx, 0x1e3
jmp 0x1400498f8
mov ecx, dword [rsi]
call fcn.14008e76c
test r13d, eax
jne 0x140049be8
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.14012c648
mov ebx, eax
test eax, eax
jns 0x1400499be
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049efa
test dword [rcx + 0x1c], r13d
je 0x140049efa
cmp byte [rcx + 0x19], 3
jb 0x140049efa
mov edx, 0x1e4
jmp 0x1400498f8
lea r15, [rsi + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.14012bbbc
mov ebx, eax
test eax, eax
jns 0x140049a1b
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x140049efa
test dword [rcx + 0x1c], r13d
je 0x140049efa
cmp byte [rcx + 0x19], 3
jb 0x140049efa
mov edx, 0x1e5
mov r9d, eax
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140004c78
jmp 0x14004990f
mov rcx, qword [r15]
test rcx, rcx
je 0x140049b8a
lea rdx, str.CSVFS
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
sete r13b
and qword [rsi + 0x28], 0
and qword [rsi + 0x30], 0
lea r9, [rbp + 0x58]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140049a69
mov rcx, rdi
call fcn.14012db10
mov ebx, eax
jmp 0x140049a7b
mov rax, qword [rbp + 0x48]
mov qword [rsi + 0x28], rax
mov rax, qword [rbp + 0x50]
mov qword [rsi + 0x30], rax
xor ebx, ebx
test ebx, ebx
jns 0x140049aba
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x140049efa
test dword [rcx + 0x1c], 0x200
je 0x140049efa
cmp byte [rcx + 0x19], 3
jb 0x140049efa
mov edx, 0x1e6
mov r9d, ebx
jmp 0x140049a06
mov byte [rbp + 0x48], 0
lea rcx, [rbp + 0x48]
call fcn.14008c630
mov ebx, eax
test eax, eax
js 0x140049ebe
mov rcx, qword [r15]
call fcn.140088138
test al, al
je 0x140049b4c
cmp byte [rbp + 0x48], 0
jne 0x140049b4c
test r13b, r13b
jne 0x140049b4c
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsi + 0x40]
xor edx, edx
mov rcx, rdi
call fcn.140120718
test eax, eax
jns 0x140049bdb
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
mov r13d, 0x200
cmp rcx, r15
je 0x140049b42
test dword [rcx + 0x1c], r13d
je 0x140049b42
cmp byte [rcx + 0x19], 3
jb 0x140049b42
lea edx, [r13 - 0x19]
mov r9d, eax
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140004c78
and qword [rsi + 0x40], 0
jmp 0x140049be8
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov r13d, 0x200
cmp rcx, rax
je 0x140049be1
test dword [rcx + 0x1c], r13d
je 0x140049be1
cmp byte [rcx + 0x19], 4
jb 0x140049be1
lea edx, [r13 - 0x18]
mov r9, qword [r15]
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140005bdc
jmp 0x140049be1
lea rdx, [rsi + 0x28]
mov rcx, rdi
call fcn.14012b750
mov ebx, eax
test eax, eax
jns 0x140049bd1
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x140049efa
test dword [rcx + 0x1c], r13d
je 0x140049efa
cmp byte [rcx + 0x19], 3
jb 0x140049efa
mov edx, 0x1e9
jmp 0x140049a03
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x30], rax
jmp 0x140049be1
mov r13d, 0x200
lea r15, [0x140170048]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14010c6cc
mov ebx, eax
test eax, eax
jns 0x140049c48
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049c3b
test dword [rcx + 0x1c], r13d
je 0x140049c3b
cmp byte [rcx + 0x19], 3
jb 0x140049c3b
mov edx, 0x1ea
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140005c44
mov r14, qword [rbp - 0x20]
mov r12, qword [rbp - 0x28]
jmp 0x140049ebe
mov r14, qword [rbp - 0x20]
mov r12, qword [rbp - 0x28]
jmp 0x140049ec5
mov r12, qword [rbp - 0x28]
mov r14, qword [rbp - 0x20]
test r14, r14
jne 0x140049c97
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049c85
test dword [rcx + 0x1c], r13d
je 0x140049c85
cmp byte [rcx + 0x19], 4
jb 0x140049c85
mov edx, 0x1eb
mov r9, rdi
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140005bdc
mov byte [rsi + 0x48], 0
xor ebx, ebx
mov rcx, qword [0x140170048]
jmp 0x140049d9c
lea rdx, [rsi + 0x38]
mov rcx, rdi
call fcn.14010bb58
mov ebx, eax
test eax, eax
jns 0x140049ce2
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049c3f
test dword [rcx + 0x1c], r13d
je 0x140049c3f
cmp byte [rcx + 0x19], 3
jb 0x140049c3f
mov edx, 0x1ec
mov r9d, eax
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140004c78
jmp 0x140049c32
xor r15d, r15d
test r14, r14
je 0x140049d8e
and qword [rbp + 0x48], 0
cmp r15, r14
jae 0x140049f5f
lea r8, [rbp + 0x48]
mov rdx, qword [r12 + r15*8]
mov rcx, rdi
call fcn.14010c4cc
mov ebx, eax
test eax, eax
js 0x140049df6
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp + 0x48]
call fcn.14010a06c
mov ebx, eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x140049d8a
mov byte [rsi + 0x48], 0
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x140049d7b
test dword [rcx + 0x1c], r13d
je 0x140049d7b
cmp byte [rcx + 0x19], 3
jb 0x140049d7b
mov edx, 0x1ee
and qword [rsp + 0x20], 0
mov r9d, ebx
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.14000ff2c
mov rcx, qword [0x140170048]
xor ebx, ebx
inc r15
cmp r15, r14
jae 0x140049d95
jmp 0x140049cee
mov byte [rsi + 0x48], 1
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
mov eax, dword [rsi]
sub eax, 2
cmp eax, 1
ja 0x140049e50
lea r8, [rsi + 0x4a]
lea rdx, [rsi + 0x50]
mov rcx, rdi
call fcn.1400875f4
mov ebx, eax
test eax, eax
jns 0x140049e49
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049ec5
test dword [rcx + 0x1c], r13d
je 0x140049ec5
cmp byte [rcx + 0x19], 2
jb 0x140049ec5
mov edx, 0x1ef
mov dword [rsp + 0x20], eax
mov r9, rdi
jmp 0x140049e37
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x140049ec5
test dword [rcx + 0x1c], r13d
je 0x140049ec5
cmp byte [rcx + 0x19], 3
jb 0x140049ec5
cmp r15, r14
jae 0x140049fa5
mov edx, 0x1ed
mov dword [rsp + 0x20], ebx
mov r9, qword [r12 + r15*8]
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140005c44
jmp 0x140049ebe
mov rcx, qword [0x140170048]
cmp dword [rsi], 1
jne 0x140049ec5
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x50], 0
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.14011f710
mov ebx, eax
test eax, eax
jns 0x140049eb0
cmp eax, 0x8007000e
je 0x140049ebe
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049eae
test byte [rcx + 0x1c], 1
je 0x140049eae
cmp byte [rcx + 0x19], 3
jb 0x140049eae
mov edx, 0x1f0
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140005c44
xor ebx, ebx
mov al, byte [rbp + 0x48]
neg al
sbb ecx, ecx
neg ecx
inc ecx
mov dword [rsi + 0x58], ecx
mov rcx, qword [0x140170048]
xor edi, edi
test r14, r14
je 0x140049ef3
cmp rdi, r14
jae 0x140049f82
mov rcx, qword [r12 + rdi*8]
test rcx, rcx
je 0x140049ee4
call qword [sym.imp.ole32.dll_CoTaskMemFree]
inc rdi
cmp rdi, r14
jb 0x140049ed5
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
test ebx, ebx
jns 0x140049f0d
mov rcx, rsi
call fcn.140137ee4
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140049f37
test dword [rcx + 0x1c], 0x200
je 0x140049f37
cmp byte [rcx + 0x19], 4
jb 0x140049f37
mov edx, 0x1f1
lea r8, [0x14014bb48]
mov rcx, qword [rcx + 0x10]
call fcn.140004c54
nop
test r12, r12
je 0x140049f45
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008388c
mov ecx, 0x80070057
call fcn.140001c2c
int3
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008388c
mov ecx, 0x80070057
call fcn.140001c2c
int3
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008388c
mov ecx, 0x80070057
call fcn.140001c2c
int3