Function at 0x140049de0
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, [0x1401720a0]
mov r13d, 0x200
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x140049e40
test dword [rcx + 0x1c], r13d
je 0x140049e40
cmp byte [rcx + 0x19], 4
jb 0x140049e40
lea edx, [r13 - 0x22]
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140004b74
movups xmm0, xmmword [0x14015b8f8]
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.140138f10
mov rdx, rsi
mov rcx, rdi
call fcn.1401077cc
mov ebx, eax
test eax, eax
jns 0x140049ec7
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a510
test dword [rcx + 0x1c], r13d
je 0x14004a510
cmp byte [rcx + 0x19], 3
jb 0x14004a510
mov edx, 0x1df
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140005b60
mov rcx, qword [0x1401720a0]
jmp 0x14004a510
lea rdx, [rsi + 0x10]
mov rcx, rdi
call fcn.140084d90
mov ebx, eax
test eax, eax
js 0x14004a4b3
lea rdx, [rsi + 0x18]
mov rcx, rdi
call fcn.14012ba2c
mov ebx, eax
test eax, eax
jns 0x140049f1a
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a510
test dword [rcx + 0x1c], r13d
je 0x14004a510
cmp byte [rcx + 0x19], 3
jb 0x14004a510
mov edx, 0x1e0
jmp 0x140049ea4
mov ecx, dword [rsi]
call fcn.14008f280
test r13d, eax
jne 0x14004a194
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.14012d728
mov ebx, eax
test eax, eax
jns 0x140049f6a
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a510
test dword [rcx + 0x1c], r13d
je 0x14004a510
cmp byte [rcx + 0x19], 3
jb 0x14004a510
mov edx, 0x1e1
jmp 0x140049ea4
lea r15, [rsi + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.14012cc9c
mov ebx, eax
test eax, eax
jns 0x140049fc7
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x14004a510
test dword [rcx + 0x1c], r13d
je 0x14004a510
cmp byte [rcx + 0x19], 3
jb 0x14004a510
mov edx, 0x1e2
mov r9d, eax
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140004b98
jmp 0x140049ebb
mov rcx, qword [r15]
test rcx, rcx
je 0x14004a136
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 0x14004a015
mov rcx, rdi
call fcn.14012ebe0
mov ebx, eax
jmp 0x14004a027
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 0x14004a066
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x14004a510
test dword [rcx + 0x1c], 0x200
je 0x14004a510
cmp byte [rcx + 0x19], 3
jb 0x14004a510
mov edx, 0x1e3
mov r9d, ebx
jmp 0x140049fb2
mov byte [rbp + 0x48], 0
lea rcx, [rbp + 0x48]
call fcn.14008ceb4
mov ebx, eax
test eax, eax
js 0x14004a4b3
mov rcx, qword [r15]
call fcn.1400889a8
test al, al
je 0x14004a0f8
cmp byte [rbp + 0x48], 0
jne 0x14004a0f8
test r13b, r13b
jne 0x14004a0f8
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsi + 0x40]
xor edx, edx
mov rcx, rdi
call fcn.140121708
test eax, eax
jns 0x14004a187
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
mov r13d, 0x200
cmp rcx, r15
je 0x14004a0ee
test dword [rcx + 0x1c], r13d
je 0x14004a0ee
cmp byte [rcx + 0x19], 3
jb 0x14004a0ee
lea edx, [r13 - 0x1c]
mov r9d, eax
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140004b98
and qword [rsi + 0x40], 0
jmp 0x14004a194
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
mov r13d, 0x200
cmp rcx, rax
je 0x14004a18d
test dword [rcx + 0x1c], r13d
je 0x14004a18d
cmp byte [rcx + 0x19], 4
jb 0x14004a18d
lea edx, [r13 - 0x1b]
mov r9, qword [r15]
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140005afc
jmp 0x14004a18d
lea rdx, [rsi + 0x28]
mov rcx, rdi
call fcn.14012c830
mov ebx, eax
test eax, eax
jns 0x14004a17d
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x14004a510
test dword [rcx + 0x1c], r13d
je 0x14004a510
cmp byte [rcx + 0x19], 3
jb 0x14004a510
mov edx, 0x1e6
jmp 0x140049faf
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x30], rax
jmp 0x14004a18d
mov r13d, 0x200
lea r15, [0x1401720a0]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14010e67c
mov ebx, eax
test eax, eax
jns 0x14004a1f4
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a1e7
test dword [rcx + 0x1c], r13d
je 0x14004a1e7
cmp byte [rcx + 0x19], 3
jb 0x14004a1e7
mov edx, 0x1e7
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140005b60
mov r14, qword [rbp - 0x20]
mov r12, qword [rbp - 0x28]
jmp 0x14004a4b3
mov r14, qword [rbp - 0x20]
mov r12, qword [rbp - 0x28]
jmp 0x14004a4ba
mov r12, qword [rbp - 0x28]
mov r14, qword [rbp - 0x20]
test r14, r14
jne 0x14004a243
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a231
test dword [rcx + 0x1c], r13d
je 0x14004a231
cmp byte [rcx + 0x19], 4
jb 0x14004a231
mov edx, 0x1e8
mov r9, rdi
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140005afc
mov byte [rsi + 0x48], 0
xor ebx, ebx
mov rcx, qword [0x1401720a0]
jmp 0x14004a3e9
lea rdx, [rsi + 0x38]
mov rcx, rdi
call fcn.14010db08
mov ebx, eax
test eax, eax
jns 0x14004a28e
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a1eb
test dword [rcx + 0x1c], r13d
je 0x14004a1eb
cmp byte [rcx + 0x19], 3
jb 0x14004a1eb
mov edx, 0x1e9
mov r9d, eax
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140004b98
jmp 0x14004a1de
xor r15d, r15d
test r14, r14
je 0x14004a3db
and qword [rbp + 0x48], 0
cmp r15, r14
jae 0x14004a3b8
lea r8, [rbp + 0x48]
mov rdx, qword [r12 + r15*8]
mov rcx, rdi
call fcn.14010e47c
mov ebx, eax
test eax, eax
js 0x14004a343
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp + 0x48]
call fcn.14010bf68
mov ebx, eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x14004a33a
mov byte [rsi + 0x48], 0
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14004a327
test dword [rcx + 0x1c], r13d
je 0x14004a327
cmp byte [rcx + 0x19], 3
jb 0x14004a327
mov edx, 0x1eb
and qword [rsp + 0x20], 0
mov r9d, ebx
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400100f0
mov rcx, qword [0x1401720a0]
xor ebx, ebx
inc r15
cmp r15, r14
jae 0x14004a3e2
jmp 0x14004a29a
mov byte [rsi + 0x48], 1
jmp 0x14004a3db
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14004a4ba
test dword [rcx + 0x1c], r13d
je 0x14004a4ba
cmp byte [rcx + 0x19], 3
jb 0x14004a4ba
cmp r15, r14
jb 0x14004a396
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008410c
mov ecx, 0x80070057
call fcn.140001b00
int3
mov edx, 0x1ea
mov dword [rsp + 0x20], ebx
mov r9, qword [r12 + r15*8]
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140005b60
jmp 0x14004a4b3
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008410c
mov ecx, 0x80070057
call fcn.140001b00
int3
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
mov eax, dword [rsi]
sub eax, 2
cmp eax, 1
ja 0x14004a445
lea r8, [rsi + 0x4a]
lea rdx, [rsi + 0x50]
mov rcx, rdi
call fcn.140087e70
mov ebx, eax
test eax, eax
jns 0x14004a43e
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a4ba
test dword [rcx + 0x1c], r13d
je 0x14004a4ba
cmp byte [rcx + 0x19], 2
jb 0x14004a4ba
mov edx, 0x1ec
mov dword [rsp + 0x20], eax
mov r9, rdi
jmp 0x14004a3a3
mov rcx, qword [0x1401720a0]
cmp dword [rsi], 1
jne 0x14004a4ba
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x50], 0
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.140120700
mov ebx, eax
test eax, eax
jns 0x14004a4a5
cmp eax, 0x8007000e
je 0x14004a4b3
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a4a3
test byte [rcx + 0x1c], 1
je 0x14004a4a3
cmp byte [rcx + 0x19], 3
jb 0x14004a4a3
mov edx, 0x1ed
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140005b60
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 [0x1401720a0]
xor edi, edi
test r14, r14
je 0x14004a509
cmp rdi, r14
jae 0x14004a4e6
mov rcx, qword [r12 + rdi*8]
test rcx, rcx
je 0x14004a4d5
call qword [sym.imp.ole32.dll_CoTaskMemFree]
inc rdi
cmp rdi, r14
jb 0x14004a4c6
mov rcx, qword [0x1401720a0]
jmp 0x14004a509
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008410c
mov ecx, 0x80070057
call fcn.140001b00
int3
lea r15, [0x1401720a0]
test ebx, ebx
jns 0x14004a523
mov rcx, rsi
call fcn.140138f10
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14004a54d
test dword [rcx + 0x1c], 0x200
je 0x14004a54d
cmp byte [rcx + 0x19], 4
jb 0x14004a54d
mov edx, 0x1ee
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
call fcn.140004b74
nop
test r12, r12
je 0x14004a55b
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