Function at 0x1400b4960
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 [0x1406b1b90], r14b
jne 0x1400b4b8e
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 0x1400b4e58
xor eax, eax
lock cmpxchg qword [0x1406b1b98], rbx
mov rdi, rax
jne 0x1400b4b77
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [fcn.140002640]
call fcn.140220200
lea rcx, [0x1406b1ba8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.1400b82d0
call fcn.1400b97f0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x78]
lea rcx, [0x1406b1a20]
mov dword [0x140428848], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r8d, r14d
lea rdx, [0x1406b0a28]
lea r9, [0x140428a20]
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 0x1400b4a20
lea rcx, [0x1406b1a78]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x1400b0ad0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400b4e6d
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x140428838], rax
test rax, rax
jne 0x1400b4aa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b8610
test eax, eax
jne 0x1400b4e6d
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 [0x14041ab70], rax
cmp rax, 0xffffffffffffffff
je 0x1400b4aef
xor edx, edx
lea rcx, [0x1400a9dc0]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
lea rcx, [0x1406b1a48]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400b4b29
movsd xmm1, qword [0x14039c4b0]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0xb0]
divsd xmm1, xmm0
jmp 0x1400b4b2c
xorps xmm1, xmm1
mov rax, qword [0x1407320b0]
movsd qword [0x1406b1a70], xmm1
test rax, rax
je 0x1400b4b65
lea rcx, [0x1400b9f90]
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 [0x1406b1b90], 1
jmp 0x1400b4b8e
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 [0x140428888], rax
test rax, rax
jne 0x1400b4bc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x90
pop r14
pop rdi
pop rbx
jmp fcn.1400b8610
movsd xmm0, qword [0x14039c4e8]
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], r15
mov qword [0x140428890], r14
call fcn.1400afb00
mov qword [0x140428890], rax
mov ecx, reloc.WS2_32.dll_recv
lea rax, [0x140428908]
mov dword [0x140428870], r14d
mov qword [0x140428908], rax
mov qword [0x140428910], rax
lea rax, [0x140428860]
mov qword [0x140428860], rax
mov qword [0x140428868], rax
mov dword [0x140428858], r14d
mov qword [0x140428898], r14
mov qword [0x1404288a0], r14
call qword [fcn.140220234]
mov qword [0x1404288a8], rax
mov rsi, rax
test rax, rax
jne 0x1400b4c64
mov ebx, 0xfffff027
jmp 0x1400b4df6
mov qword [rax], r14
lea rcx, [0x140428918]
mov dword [rax + 8], r14d
xorps xmm0, xmm0
xor eax, eax
mov qword [0x1404288b8], r14
xorps xmm1, xmm1
mov qword [0x1404288e0], rax
mov qword [0x1404288e8], rax
mov qword [0x1404288f0], rax
mov qword [0x1404288b0], r14
movdqa xmmword [0x1404288c0], xmm0
movdqa xmmword [0x1404288d0], xmm1
mov qword [0x1404288f8], r14
mov qword [0x140428900], r14
mov dword [0x140428880], r14d
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r15, [0x140428850]
mov rcx, r15
lea r8, [0x1400b3c40]
lea rdx, [0x140428940]
call fcn.1400b5450
mov ebx, eax
test eax, eax
jne 0x1400b4dcb
mov eax, dword [0x140428998]
test al, 8
je 0x1400b4d1e
mov ecx, eax
and eax, 0xfffffff7
mov dword [0x140428998], eax
test cl, 1
jne 0x1400b4d1e
test cl, 4
je 0x1400b4d1e
mov rax, qword [0x140428948]
dec dword [rax + 8]
mov eax, dword [0x140428998]
or eax, 0x10
lea rcx, [0x1406b1ba8]
mov dword [0x140428998], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1406b1bd4]
mov ebx, dword [0x1406b1bd0]
cmp eax, ebx
jne 0x1400b4e34
mov rbp, qword [0x1406b1ba0]
add ebx, 8
movsxd rdx, ebx
shl rdx, 3
test rdx, rdx
je 0x1400b4da2
mov rcx, rbp
call qword [fcn.14021ff38]
mov r8, rax
test rax, rax
je 0x1400b4db9
mov qword [0x1406b1ba0], rax
movsxd rax, dword [0x1406b1bd0]
cmp eax, ebx
jge 0x1400b4d91
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 [0x1406b1bd4]
mov dword [0x1406b1bd0], ebx
jmp 0x1400b4e3b
call fcn.140227d1c
mov rcx, rbp
mov edi, dword [rax]
call qword [fcn.14021ff40]
call fcn.140227d1c
mov dword [rax], edi
lea rcx, [0x1406b1ba8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, select
lea rcx, [0x140428918]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.140227d1c
mov rcx, rsi
mov edi, dword [rax]
call qword [fcn.14021ff40]
call fcn.140227d1c
mov dword [rax], edi
mov qword [0x1404288a8], r14
mov rcx, qword [0x140428888]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [0x140428888], 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 [0x1406b1ba0]
cdqe
lea rcx, [0x1406b1ba8]
mov qword [r8 + rax*8], r15
inc dword [0x1406b1bd4]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x1400b4e10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1400b8560
int3
call fcn.14022fe9c
int3