Function at 0x14016ae10
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 [0x14072dc30], r14b
jne 0x14016b03e
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 0x14016b308
xor eax, eax
lock cmpxchg qword [0x14072dc38], rbx
mov rdi, rax
jne 0x14016b027
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [fcn.1400140f0]
call fcn.14033326c
lea rcx, [0x14072dc48]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.14016f1b0
call fcn.14016ffc0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x78]
lea rcx, [0x14072cba8]
mov dword [0x14072cba0], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r8d, r14d
lea rdx, [0x14072cbd8]
lea r9, [0x1404a4ba0]
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 0x14016aed0
lea rcx, [0x14072dbd0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x140165fd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14016b31d
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x1404a4b98], rax
test rax, rax
jne 0x14016af54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
test eax, eax
jne 0x14016b31d
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 [0x140496bc0], rax
cmp rax, 0xffffffffffffffff
je 0x14016af9f
xor edx, edx
lea rcx, [0x140161080]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
lea rcx, [0x14072dc00]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14016afd9
movsd xmm1, qword [0x14044edf0]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0xb0]
divsd xmm1, xmm0
jmp 0x14016afdc
xorps xmm1, xmm1
mov rax, qword [0x14073a650]
movsd qword [0x14072dc28], xmm1
test rax, rax
je 0x14016b015
lea rcx, [0x140170800]
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 [0x14072dc30], 1
jmp 0x14016b03e
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 [0x1404a49e8], rax
test rax, rax
jne 0x14016b077
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x90
pop r14
pop rdi
pop rbx
jmp fcn.14016e340
movsd xmm0, qword [0x14044ee38]
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], r15
mov qword [0x1404a49f0], r14
call fcn.1401670e0
mov qword [0x1404a49f0], rax
mov ecx, reloc.WS2_32.dll_recv
lea rax, [0x1404a4a68]
mov dword [0x1404a49d0], r14d
mov qword [0x1404a4a68], rax
mov qword [0x1404a4a70], rax
lea rax, [0x1404a49c0]
mov qword [0x1404a49c0], rax
mov qword [0x1404a49c8], rax
mov dword [0x1404a49b8], r14d
mov qword [0x1404a49f8], r14
mov qword [0x1404a4a00], r14
call qword [str.p3_]
mov qword [0x1404a4a08], rax
mov rsi, rax
test rax, rax
jne 0x14016b114
mov ebx, 0xfffff027
jmp 0x14016b2a6
mov qword [rax], r14
lea rcx, [0x1404a4a78]
mov dword [rax + 8], r14d
xorps xmm0, xmm0
xor eax, eax
mov qword [0x1404a4a18], r14
xorps xmm1, xmm1
mov qword [0x1404a4a40], rax
mov qword [0x1404a4a48], rax
mov qword [0x1404a4a50], rax
mov qword [0x1404a4a10], r14
movdqa xmmword [0x1404a4a20], xmm0
movdqa xmmword [0x1404a4a30], xmm1
mov qword [0x1404a4a58], r14
mov qword [0x1404a4a60], r14
mov dword [0x1404a49e0], r14d
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r15, [0x1404a49b0]
mov rcx, r15
lea r8, [0x14016fa80]
lea rdx, [0x1404a4aa0]
call fcn.14015c8a0
mov ebx, eax
test eax, eax
jne 0x14016b27b
mov eax, dword [0x1404a4af8]
test al, 8
je 0x14016b1ce
mov ecx, eax
and eax, 0xfffffff7
mov dword [0x1404a4af8], eax
test cl, 1
jne 0x14016b1ce
test cl, 4
je 0x14016b1ce
mov rax, qword [0x1404a4aa8]
dec dword [rax + 8]
mov eax, dword [0x1404a4af8]
or eax, 0x10
lea rcx, [0x14072dc48]
mov dword [0x1404a4af8], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x14072dc70]
mov ebx, dword [0x14072cba4]
cmp eax, ebx
jne 0x14016b2e4
mov rbp, qword [0x14072dc40]
add ebx, 8
movsxd rdx, ebx
shl rdx, 3
test rdx, rdx
je 0x14016b252
mov rcx, rbp
call qword [str.d3_]
mov r8, rax
test rax, rax
je 0x14016b269
mov qword [0x14072dc40], rax
movsxd rax, dword [0x14072cba4]
cmp eax, ebx
jge 0x14016b241
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 [0x14072dc70]
mov dword [0x14072cba4], ebx
jmp 0x14016b2eb
call fcn.1403379a0
mov rcx, rbp
mov edi, dword [rax]
call qword [fcn.1403379d4]
call fcn.1403379a0
mov dword [rax], edi
lea rcx, [0x14072dc48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, recv
lea rcx, [0x1404a4a78]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.1403379a0
mov rcx, rsi
mov edi, dword [rax]
call qword [fcn.1403379d4]
call fcn.1403379a0
mov dword [rax], edi
mov qword [0x1404a4a08], r14
mov rcx, qword [0x1404a49e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [0x1404a49e8], 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 [0x14072dc40]
cdqe
lea rcx, [0x14072dc48]
mov qword [r8 + rax*8], r15
inc dword [0x14072dc70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14016b2c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14016e290
int3
call fcn.140339b18
int3