Function at 0x1005cec0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a2a48
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20], 0
mov edi, dword [ebp + 8]
jne 0x1005cf86
push 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
cmp eax, 0xffffffff
jbe 0x1005cf3c
or eax, 0xffffffff
lea ecx, [esi + 0x28]
push ecx
push eax
push 0
push 0x4000004
lea edx, [esp + 0x2c]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x1005cf74
or eax, 0xffffffff
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [edi], ecx
cmp dword [esi + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jne 0x1005d07c
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x20]
push edx
push eax
push 0
push 0
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1005cf5c
cmp dword [edi], 0
je 0x1005d058
mov eax, dword [0x10115bd0]
test eax, eax
jne 0x1005cfdb
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov dword [0x10115bd0], eax
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
add eax, 0x17
not ecx
and ecx, eax
mov eax, dword [esi + 0x1c]
push 4
lea edi, [ecx + edx + 0xffff]
push 0x1000
and edi, 0xffff0000
push edi
push eax
call ebx
test eax, eax
je 0x1005cf5c
mov ecx, dword [esi + 0x1c]
mov dword [ecx], 0
mov edx, dword [esi + 0x1c]
mov dword [edx + 4], 0
mov eax, dword [esi + 0x1c]
push 0x18
mov ecx, esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
call sym.ACE.dll_public:_unsigned_int___thiscall_ACE_Pagefile_Memory_Pool::round_to_page_size_unsigned_int_
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], eax
sub ecx, eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x14], ecx
jmp 0x1005d07c
push 4
push 0x1000
push 0x10000
push eax
call ebx
test eax, eax
je 0x1005cf5c
mov edx, dword [esi + 0x1c]
mov dword [esi + 8], edx
mov dword [esi + 0x10], 0x10000
mov edx, dword [esi + 0x1c]
mov ebx, dword [edx + 0xc]
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
ja 0x1005d08f
cmp dword [ebp + 0xc], 0
jbe 0x1005d0d5
mov edi, dword [ebp + 0xc]
add edi, 0xffff
and edi, 0xffff0000
push 4
mov eax, edi
sub eax, ecx
push 0x1000
add eax, ebx
add ecx, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1005cf5c
cmp dword [ebp + 0xc], 0
jbe 0x1005d0d5
mov eax, dword [esi + 0x1c]
add dword [eax + 0xc], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 0x10]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 8]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 8]
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call sym.ACE.dll_public:_static_class_ACE_Based_Pointer_Repository____cdecl_ACE_Singleton_class_ACE_Based_Pointer_Repository__class_ACE_RW_Thread_Mutex_::instance_void_
mov edi, eax
mov esi, dword [edi]
add esi, 0x34
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi]
lea ebx, [esp + 0x1c]
call fcn.10018f70
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8