Function at 0x40b500
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ab50
push 0x4158f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov dword [ebp - 0x54], ecx
push 0
mov ecx, dword [ebp - 0x54]
call fcn.0040b970
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x24], 0
jne 0x40b542
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x2c], 0
je 0x40b560
push str._m_hMap___m_pBufferStart
push 0
push 0x1a
push 0x42a7bc
push 2
call fcn.0040f7d0
add esp, 0x14
cmp eax, 1
jne 0x40b560
int3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
jne 0x40b5b6
lea eax, [ebp - 0x1c]
push eax
push 1
push 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp dword [ebp - 0x1c], 0
je 0x40b5b6
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x40b5b6
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
jmp 0x40b77c
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x4000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x24], 0
jne 0x40b5e3
jmp 0x40b77c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x2c], 0
jne 0x40b618
jmp 0x40b77c
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x20], 0xb7
jne 0x40b6d7
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1c], ecx
push 0x448
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40b698
push 0x448
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x1c]
call fcn.0040c3e0
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40b698
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x414]
push ecx
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x1c]
call fcn.0040c3e0
push eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.00413c10
add esp, 0xc
test eax, eax
je 0x40b69d
jmp 0x40b77c
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x1c]
call fcn.0040c3b0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x1c]
call fcn.0040c3e0
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x2c], eax
jmp 0x40b76c
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0x448
jae 0x40b6f1
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], edx
jmp 0x40b6dd
push 4
push 0x1000
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40b70f
jmp 0x40b77c
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
push ecx
push 0x448
call fcn.00408b90
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x40b73d
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.0040cb00
mov dword [ebp - 0x58], eax
jmp 0x40b744
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x414], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x1c]
mov dword [eax + 0x41c], 0x448
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x28], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040b78d
jmp 0x40b81c
mov edx, dword [ebp - 0x54]
mov al, byte [edx + 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8