Function at 0x140012ce0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r14
push rbp
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x14006f100]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov dword [rbp - 0x60], ecx
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, str.Exc1hX.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140012d56
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
lea rcx, [rbp - 0x58]
call qword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x140012d7d
lea ecx, [rax + 1]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeEndPeriod]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
lea r14, [0x140056e38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140012dfd
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
lea r8, [rbp - 8]
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x40]
call fcn.1400526b0
lea r9, [rbp + 8]
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea r14, [0x140070f60]
mov qword [rsp + 0x50], r14
mov rcx, r14
call fcn.14002b7c4
test eax, eax
jne 0x140012f9a
cmp dword [0x140070fac], 0x7fffffff
je 0x140012f85
mov rcx, qword [0x140070fb0]
mov rax, qword [rcx + 8]
mov edx, dword [rbp - 0x60]
jmp 0x140012e7a
cmp dword [rax + 0x20], edx
jae 0x140012e74
mov rax, qword [rax + 0x10]
jmp 0x140012e7a
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140012e69
cmp byte [rcx + 0x19], 0
jne 0x140012f59
cmp edx, dword [rcx + 0x20]
jb 0x140012f59
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [0x140070fb0]
call fcn.140012ab0
mov rbx, qword [rax]
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140012ec0
lock inc dword [rax + 8]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x40], rax
mov rbx, qword [rbx + 0x30]
mov qword [rsp + 0x48], rbx
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [0x140070fb0]
call fcn.140012ab0
mov rdx, qword [rax]
add rdx, 0x28
lea rcx, [0x140070f30]
call fcn.1400092d4
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x70]
lea rcx, [0x140070fb0]
call fcn.140007e64
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [0x140070fb0]
call fcn.140007ed8
nop
test rbx, rbx
je 0x140012f59
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140012f59
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140012f59
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rcx, r14
call fcn.14002b7ec
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.14002dcb0
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov dword [0x140070fac], 0x7ffffffe
mov ecx, 6
call fcn.14002b648
int3
mov ecx, 5
call fcn.14002b648
int3