Function at 0x140161ad0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x90
xor r12d, r12d
mov rbp, r9
cmp byte [0x14072dc30], r12b
mov r14d, r8d
mov rbx, rdx
mov r15, rcx
jne 0x140161d17
xor r9d, r9d
lea edx, [r12 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rdi, rax
test rax, rax
je 0x140161d80
xor eax, eax
lock cmpxchg qword [0x14072dc38], rdi
mov rsi, rax
jne 0x140161d00
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 + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x88]
lea rcx, [0x14072cba8]
mov dword [0x14072cba0], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r9d, r12d
lea r8, [0x14072cbd8]
mov r10d, r12d
lea r11, [0x1404a4ba0]
nop word [rax + rax]
movsxd rax, r10d
inc r9d
mov qword [r8 - 8], r12
lea r8, [r8 + 0x10]
imul rcx, rax, 0x288
add r10d, 0x10
add rcx, r11
mov qword [r8 - 0x10], rcx
cmp r9d, 0x100
jb 0x140161bb0
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 0x140161d95
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 0x140161c36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
test eax, eax
jne 0x140161d95
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 [0x140496bc0], rax
cmp rax, 0xffffffffffffffff
je 0x140161c81
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 + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140161cb5
movsd xmm1, qword [0x14044edf0]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
jmp 0x140161cb8
xorps xmm1, xmm1
mov rax, qword [0x14073a650]
movsd qword [0x14072dc28], xmm1
test rax, rax
je 0x140161cee
lea rdx, [0x140170800]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], rdx
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov ecx, 2
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x14072dc30], 1
jmp 0x140161d17
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov dword [rbx + 8], 6
lea rcx, [rbx + 0x158]
mov qword [rbx + 0x40], r12
mov qword [rbx + 0x78], r15
mov dword [rbx + 0x148], r12d
lea r8d, [rdx + 0x70]
mov dword [rbx + 0x70], r14d
mov qword [rbx + 0x88], r12
mov qword [rbx + 0x90], r12
mov qword [rbx + 0x98], r12
mov qword [rbx + 0x80], rbp
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
jmp fcn.140330340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14016e290
int3
call fcn.140339b18
int3