Function at 0x40b290
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd135
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
lea ecx, [edi + 4]
push dword [ebp + 8]
mov dword [edi], vtable.COXInstanceManager.0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [edi + 0xc], eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 1
push dword [eax - 0xc]
push eax
push 0x2c
lea eax, [ebp + 8]
push str.LocalCOXInstanceManager_InstanceList_Mutex_
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [edi + 0x10]
push 0
push dword [ebp + 8]
push 0
call sub.mfc140u.dll_CMutex::CMutex
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [edi + 4]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 2
push dword [eax - 0xc]
push eax
push 0x2a
lea eax, [ebp + 8]
push str.LocalCOXInstanceManager_Additional_Mutex_
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [edi + 0x18]
push 0
push dword [ebp + 8]
push 0
call sub.mfc140u.dll_CMutex::CMutex
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xorps xmm0, xmm0
mov dword [edi + 0x20], 0
lea eax, [ebp - 0x40]
mov dword [edi + 0x24], 0
push eax
mov dword [edi + 0x28], 0
mov dword [edi + 8], 0xfa8
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [edi + 8]
xor edx, edx
mov ecx, dword [ebp - 0x24]
mov eax, esi
div ecx
mov eax, esi
test edx, edx
je 0x40b3da
xor edx, edx
div ecx
lea esi, [ecx + eax]
jmp 0x40b3e0
xor edx, edx
div ecx
mov esi, eax
mov dword [edi + 8], esi
xor edx, edx
mov eax, dword [edi + 0xc]
div ecx
mov eax, dword [edi + 0xc]
test edx, edx
je 0x40b3f9
xor edx, edx
div ecx
add eax, ecx
jmp 0x40b3fd
xor edx, edx
div ecx
mov dword [edi + 0xc], eax
lea edi, [eax + esi]
mov esi, dword [ebp - 0x18]
lea ecx, [esi + 4]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 4
push dword [eax - 0xc]
push eax
push 0x21
lea eax, [ebp - 0x14]
push str.LocalCOXInstanceManager_FileMap_
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
push dword [ebp - 0x14]
push edi
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b46b
mov ecx, esi
call fcn.0040bc10
cmp dword [ebp + 0x10], 0
je 0x40b47e
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
mov ecx, esi
call fcn.0040b5c0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc