Function at 0x14019b120
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
xor r12d, r12d
mov rbx, rcx
cmp byte [0x1407c56c0], r12b
jne 0x14019b34e
xor r9d, r9d
lea edx, [r12 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, rax
test rax, rax
je 0x14019b5d7
xor eax, eax
lock cmpxchg qword [0x1407c56c8], rsi
mov rdi, rax
jne 0x14019b337
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [fcn.1400146d0]
call fcn.140365084
lea rcx, [0x1407c56d8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.14019f390
call fcn.14019fa80
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x78]
lea rcx, [0x14053c538]
mov dword [0x14053c52c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r8d, r12d
lea rdx, [0x1407c4568]
lea r9, [0x14053c560]
mov edi, r12d
nop word [rax + rax]
movsxd rax, r8d
inc edi
mov qword [rdx - 8], r12
lea rdx, [rdx + 0x10]
imul rcx, rax, 0x288
add r8d, 0x10
add rcx, r9
mov qword [rdx - 0x10], rcx
cmp edi, 0x100
jb 0x14019b1e0
lea rcx, [0x1407c5578]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x140195990]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14019b5ec
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x14053c530], rax
test rax, rax
jne 0x14019b264
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
test eax, eax
jne 0x14019b5ec
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
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 [0x14052d3b8], rax
cmp rax, 0xffffffffffffffff
je 0x14019b2af
xor edx, edx
lea rcx, [0x140190870]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
lea rcx, [0x1407c55a8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14019b2e9
movsd xmm1, qword [0x1404d5ce0]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0xb8]
divsd xmm1, xmm0
jmp 0x14019b2ec
xorps xmm1, xmm1
mov rax, qword [0x1407d2050]
movsd qword [0x1407c55d0], xmm1
test rax, rax
je 0x14019b325
lea rdx, [0x1401a02c0]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov ecx, 2
call rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x1407c56c0], 1
jmp 0x14019b34e
mov rcx, rsi
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 [rbx + 0x38], rax
test rax, rax
jne 0x14019b385
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.14019e610
movsd xmm0, qword [0x1404d5d30]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0x80], r15
mov qword [rbx + 0x40], r12
call fcn.140196aa0
mov qword [rbx + 0x40], rax
mov ecx, reloc.WS2_32.dll_recv
lea rax, [rbx + 0xb8]
mov qword [rax], rax
mov qword [rbx + 0xc0], rax
lea rax, [rbx + 0x10]
mov qword [rax], rax
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], r12d
mov dword [rbx + 8], r12d
mov qword [rbx + 0x48], r12
mov qword [rbx + 0x50], r12
call qword [fcn.140369f54]
mov qword [rbx + 0x58], rax
mov r14, rax
test rax, rax
jne 0x14019b3ff
mov esi, 0xfffff027
jmp 0x14019b57a
mov qword [rax], r12
lea rcx, [rbx + 0xc8]
mov dword [rax + 8], r12d
xor eax, eax
mov qword [rbx + 0x68], r12
mov qword [rbx + 0x60], r12
mov qword [rbx + 0x70], r12
mov qword [rbx + 0x78], r12
mov qword [rbx + 0x80], r12
mov qword [rbx + 0x88], r12
mov qword [rbx + 0x90], rax
mov qword [rbx + 0x98], rax
mov qword [rbx + 0xa0], rax
mov qword [rbx + 0xa8], r12
mov qword [rbx + 0xb0], r12
mov dword [rbx + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rdx, [rbx + 0xf0]
mov rcx, rbx
lea r8, [0x14019a400]
call fcn.14018c080
mov esi, eax
test eax, eax
jne 0x14019b552
mov eax, dword [rbx + 0x148]
test al, 8
je 0x14019b4a5
and eax, 0xfffffff7
mov dword [rbx + 0x148], eax
test al, 1
jne 0x14019b4a5
test al, 4
je 0x14019b4a5
mov rax, qword [rbx + 0xf8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x148]
or eax, 0x10
lea rcx, [0x1407c56d8]
mov dword [rbx + 0x148], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1407c5704]
mov esi, dword [0x1407c5700]
cmp eax, esi
jne 0x14019b5b3
mov rbp, qword [0x1407c56d0]
add esi, 8
movsxd rdx, esi
shl rdx, 3
test rdx, rdx
je 0x14019b529
mov rcx, rbp
call qword [fcn.140369d58]
mov r8, rax
test rax, rax
je 0x14019b540
mov qword [0x1407c56d0], rax
movsxd rax, dword [0x1407c5700]
cmp eax, esi
jge 0x14019b518
mov ecx, esi
lea rdi, [r8 + rax*8]
sub ecx, eax
movsxd rcx, ecx
xor eax, eax
rep stosq qword [rdi], rax
mov eax, dword [0x1407c5704]
mov dword [0x1407c5700], esi
jmp 0x14019b5ba
call fcn.140369a80
mov rcx, rbp
mov edi, dword [rax]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], edi
lea rcx, [0x1407c56d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, recv
lea rcx, [rbx + 0xc8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.140369a80
mov rcx, r14
mov edi, dword [rax]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], edi
mov qword [rbx + 0x58], r12
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov qword [rbx + 0x38], 0xffffffffffffffff
mov r14, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [0x1407c56d0]
cdqe
lea rcx, [0x1407c56d8]
mov qword [r8 + rax*8], rbx
inc dword [0x1407c5704]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14019b58e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14019e560
int3
call fcn.14036c2ac
int3