Function at 0x14004460c
Capabilities:
Get disk size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov rdi, rcx
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x140044657
test byte [rcx + 0x1c], 1
je 0x140044657
cmp byte [rcx + 0x19], 4
jb 0x140044657
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x2a2
call fcn.14001dd24
mov ecx, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
xor r15d, r15d
xor esi, esi
and qword [rbp + 0x50], r15
and qword [rbp + 0x48], r15
xor r12d, r12d
shl rcx, 4
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], r12
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rbp - 0x18], rax
test rax, rax
jne 0x140044695
mov ebx, 0x8007000e
jmp 0x14004496c
mov ecx, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
shl rcx, 2
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r13, rax
test rax, rax
je 0x1400446c1
mov ecx, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
test rax, rax
jne 0x1400446cb
mov ebx, 0x8007000e
jmp 0x14004492a
xor r8d, r8d
cmp dword [rdi + reloc.ADVAPI32.dll_TraceEvent], esi
jbe 0x140044728
mov r9, rax
xor edx, edx
mov r10, r13
mov r11, rbx
mov rax, qword [rdi + 0xd8]
inc r8d
add rdx, 0x170
movups xmm0, xmmword [rdx + rax - 0x12c]
movdqu xmmword [r11], xmm0
mov rax, qword [rdi + 0xd8]
add r11, 0x10
mov ecx, dword [rdx + rax - reloc.ADVAPI32.dll_TraceEvent]
mov dword [r10], ecx
mov byte [r9], 1
inc r9
add r10, 4
cmp r8d, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
jb 0x1400446e1
mov rcx, qword [rdi + 0x238]
lea rax, [rbp + 0x48]
mov r9, r13
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x50]
mov r8, rbx
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
xor edx, edx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call fcn.14013388c
mov ebx, eax
test eax, eax
js 0x14004492a
mov rcx, qword [rdi + 0x158]
lea r8, [rbp + 0x58]
lea rdx, [0x140001800]
call fcn.1400a9ab8
mov rsi, qword [rbp + 0x58]
mov ebx, eax
test eax, eax
js 0x14004492a
xor eax, eax
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x20]
mov rcx, rsi
xor r14d, r14d
mov qword [rbp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1400447bd
mov rcx, rsi
call fcn.140154be4
mov ebx, eax
mov rax, r12
jmp 0x1400447cb
mov rax, qword [rbp - 0x28]
mov r14, qword [rbp - 0x20]
mov qword [rbp + 0x48], rax
xor ebx, ebx
test ebx, ebx
js 0x140044923
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x14004480b
test byte [rcx + 0x1c], 1
je 0x14004480b
cmp byte [rcx + 0x19], 4
jb 0x14004480b
mov rcx, qword [rcx + 0x10]
mov r9, r14
mov r8, rax
mov rdx, rsi
call fcn.140028c54
mov rcx, qword [0x14017d3a8]
mov eax, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
cmp eax, 2
je 0x14004483f
cmp eax, 3
je 0x14004483f
cmp eax, 4
je 0x14004483f
lea r8, [0x140004af0]
lea rcx, [0x140003c50]
mov edx, 0x4050
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
cmp dword [rdi + reloc.ADVAPI32.dll_TraceEvent], 4
mov eax, EventWrite
lea r14d, [rax - 0x14]
cmove r14d, eax
movabs rax, 0x47ae147ae147ae15
imul r14, qword [rbp + 0x48]
mul r14
sub r14, rdx
shr r14, 1
add r14, rdx
shr r14, 6
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400448a8
test byte [rcx + 0x1c], 1
je 0x1400448a8
cmp byte [rcx + 0x19], 4
jb 0x1400448a8
mov r9, qword [rbp + 0x50]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x2a4
mov qword [rsp + 0x20], r14
call fcn.14001deac
cmp qword [rbp + 0x50], r14
jbe 0x140044923
mov edx, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
mov rcx, qword [rdi + 0x158]
lea r8, [rbp + 0x60]
call fcn.14012ed28
mov r12, qword [rbp + 0x60]
test eax, eax
js 0x1400448e6
mov rdx, qword [rdi + 0x160]
lea r8, [0x14000edb8]
mov rcx, r12
call fcn.1400fe798
test eax, eax
jns 0x140044923
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x14004492a
test byte [rcx + 0x1c], 1
je 0x14004492a
cmp byte [rcx + 0x19], 2
jb 0x14004492a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x2a5
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x14004492a
lea r14, [0x14017d3a8]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r13, r13
je 0x140044942
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x140044950
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x14004495e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r12, r12
je 0x14004496c
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140044999
test byte [rcx + 0x1c], 1
je 0x140044999
cmp byte [rcx + 0x19], 4
jb 0x140044999
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x2a6
call fcn.14001dd24
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret