Function at 0x1400aa890
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
push r14
sub rsp, 0x90
xor r14d, r14d
cmp byte [0x1404e03e0], r14b
jne 0x1400aaabe
xor r9d, r9d
lea edx, [r14 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov rbx, rax
test rax, rax
je 0x1400aad88
xor eax, eax
lock cmpxchg qword [0x1404e03e8], rbx
mov rdi, rax
jne 0x1400aaaa7
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea rcx, [fcn.140002640]
call fcn.1400edbb4
lea rcx, [0x1404e03f0]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call fcn.1400ae200
call fcn.1400af720
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [rsp + 0x78]
lea rcx, [0x1404df268]
mov dword [0x1404df260], eax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov r8d, r14d
lea rdx, [0x1404df298]
lea r9, [0x140257260]
mov edi, r14d
nop word [rax + rax]
movsxd rax, r8d
inc edi
mov qword [rdx - 8], r14
lea rdx, [rdx + 0x10]
imul rcx, rax, 0x288
add r8d, 0x10
add rcx, r9
mov qword [rdx - 0x10], rcx
cmp edi, 0x100
jb 0x1400aa950
lea rcx, [0x1404e02c0]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x1400a6a00]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
test eax, eax
je 0x1400aad9d
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov qword [0x140257080], rax
test rax, rax
jne 0x1400aa9d4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400ae540
test eax, eax
jne 0x1400aad9d
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, str.CONOUT_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [0x14024b820], rax
cmp rax, 0xffffffffffffffff
je 0x1400aaa1f
xor edx, edx
lea rcx, [0x14009fca0]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
lea rcx, [0x1404e0290]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
test eax, eax
je 0x1400aaa59
movsd xmm1, qword [0x1401e69d8]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0xb0]
divsd xmm1, xmm0
jmp 0x1400aaa5c
xorps xmm1, xmm1
mov rax, qword [0x1405608d8]
movsd qword [0x1404e02b8], xmm1
test rax, rax
je 0x1400aaa95
lea rcx, [0x1400afec0]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rcx
lea r8, [rsp + 0xb8]
mov ecx, 2
lea rdx, [rsp + 0x40]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov byte [0x1404e03e0], 1
jmp 0x1400aaabe
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor edx, edx
mov r9d, 1
xor r8d, r8d
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov qword [0x1402570c8], rax
test rax, rax
jne 0x1400aaaf7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
add rsp, 0x90
pop r14
pop rdi
pop rbx
jmp fcn.1400ae540
movsd xmm0, qword [0x1401e6a10]
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], r15
mov qword [0x1402570d0], r14
call fcn.1400a5a30
mov qword [0x1402570d0], rax
mov ecx, select
lea rax, [0x140257148]
mov dword [0x1402570b0], r14d
mov qword [0x140257148], rax
mov qword [0x140257150], rax
lea rax, [0x1402570a0]
mov qword [0x1402570a0], rax
mov qword [0x1402570a8], rax
mov dword [0x140257098], r14d
mov qword [0x1402570d8], r14
mov qword [0x1402570e0], r14
call qword [fcn.1400edbe8]
mov qword [0x1402570e8], rax
mov rsi, rax
test rax, rax
jne 0x1400aab94
mov ebx, 0xfffff027
jmp 0x1400aad26
mov qword [rax], r14
lea rcx, [0x140257158]
mov dword [rax + 8], r14d
xorps xmm0, xmm0
xor eax, eax
mov qword [0x1402570f8], r14
xorps xmm1, xmm1
mov qword [0x140257120], rax
mov qword [0x140257128], rax
mov qword [0x140257130], rax
mov qword [0x1402570f0], r14
movdqa xmmword [0x140257100], xmm0
movdqa xmmword [0x140257110], xmm1
mov qword [0x140257138], r14
mov qword [0x140257140], r14
mov dword [0x1402570c0], r14d
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea r15, [0x140257090]
mov rcx, r15
lea r8, [0x1400a9b70]
lea rdx, [0x140257180]
call fcn.1400ab380
mov ebx, eax
test eax, eax
jne 0x1400aacfb
mov eax, dword [0x1402571d8]
test al, 8
je 0x1400aac4e
mov ecx, eax
and eax, 0xfffffff7
mov dword [0x1402571d8], eax
test cl, 1
jne 0x1400aac4e
test cl, 4
je 0x1400aac4e
mov rax, qword [0x140257188]
dec dword [rax + 8]
mov eax, dword [0x1402571d8]
or eax, 0x10
lea rcx, [0x1404e03f0]
mov dword [0x1402571d8], eax
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x1404e041c]
mov ebx, dword [0x1404e0418]
cmp eax, ebx
jne 0x1400aad64
mov rbp, qword [0x1404e0388]
add ebx, 8
movsxd rdx, ebx
shl rdx, 3
test rdx, rdx
je 0x1400aacd2
mov rcx, rbp
call qword [fcn.1400ed900]
mov r8, rax
test rax, rax
je 0x1400aace9
mov qword [0x1404e0388], rax
movsxd rax, dword [0x1404e0418]
cmp eax, ebx
jge 0x1400aacc1
mov ecx, ebx
lea rdi, [r8 + rax*8]
sub ecx, eax
movsxd rcx, ecx
xor eax, eax
rep stosq qword [rdi], rax
mov eax, dword [0x1404e041c]
mov dword [0x1404e0418], ebx
jmp 0x1400aad6b
call fcn.1400f51e4
mov rcx, rbp
mov edi, dword [rax]
call qword [fcn.1400ed908]
call fcn.1400f51e4
mov dword [rax], edi
lea rcx, [0x1404e03f0]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebx, ntohs
lea rcx, [0x140257158]
call qword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
call fcn.1400f51e4
mov rcx, rsi
mov edi, dword [rax]
call qword [fcn.1400ed908]
call fcn.1400f51e4
mov dword [rax], edi
mov qword [0x1402570e8], r14
mov rcx, qword [0x1402570c8]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
mov qword [0x1402570c8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rbx
ret
mov r8, qword [0x1404e0388]
cdqe
lea rcx, [0x1404e03f0]
mov qword [r8 + rax*8], r15
inc dword [0x1404e041c]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor eax, eax
jmp 0x1400aad40
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1400ae490
int3
call fcn.1400f4acc
int3