Function at 0x100180e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044006
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 4]
push eax
mov dword [ebp - 0x48], edi
mov dword [edi], vtable.elex::thread::Mutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
lea esi, [edi + 0x1c]
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call ebx
add esp, 4
test eax, eax
jne 0x10018163
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xbad_alloc_void_]
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call ebx
add esp, 4
test eax, eax
jne 0x100181b0
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xbad_alloc_void_]
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [edi + 0x54]
push eax
mov dword [edi + 0x50], vtable.elex::thread::Mutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea esi, [edi + 0x6c]
mov byte [ebp - 4], 3
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call ebx
add esp, 4
test eax, eax
jne 0x1001820e
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xbad_alloc_void_]
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
push 0
push 0
push 0
mov byte [ebp - 4], 5
push 0
mov dword [edi + 0x8c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 4
mov dword [edi + 0x44], eax
call ebx
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x10018299
lea edx, [ebp - 0x40]
mov ecx, esi
mov dword [esi], 0
mov dword [ebp - 0x40], 0x100187f0
mov dword [ebp - 0x3c], edi
call fcn.1001ac10
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.10029f10
jmp 0x1001829b
xor esi, esi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
mov dword [edi + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x4c], eax
cmp eax, 1
jae 0x100182be
mov dword [edi + 0x4c], 2
push dword [edi + 0x4c]
lea ecx, [edi + 0x80]
call fcn.10018ad0
xor ebx, ebx
cmp dword [edi + 0x4c], ebx
jbe 0x1001833b
push 0x2c
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x10018329
lea eax, [esi + 0xc]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x28], 0
push eax
mov dword [esi + 8], vtable.elex::thread::Mutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
mov dword [esi], 0
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
jmp 0x1001832b
xor esi, esi
mov ecx, dword [edi + 0x80]
inc ebx
mov dword [ecx + ebx*4 - 4], esi
cmp ebx, dword [edi + 0x4c]
jb 0x100182d3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret