Function at 0x408210
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b38
push 0x40e3d4
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.00408680
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x24], 0
jne 0x408252
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x2c], 0
je 0x408270
push str._m_hMap___m_pBufferStart
push 0
push 0x1a
push 0x4287a4
push 2
call fcn.00409f40
add esp, 0x14
cmp eax, 1
jne 0x408270
int3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
jne 0x4082c6
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 0x4082c6
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x4082c6
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
jmp 0x40848c
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 0x4082f3
jmp 0x40848c
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 0x408328
jmp 0x40848c
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x20], 0xb7
jne 0x4083e7
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 0x4083a8
push 0x448
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x1c]
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4083a8
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.004090f0
push eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.0040e820
add esp, 0xc
test eax, eax
je 0x4083ad
jmp 0x40848c
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x1c]
call fcn.004090c0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x1c]
call fcn.004090f0
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 0x40847c
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0x448
jae 0x408401
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], edx
jmp 0x4083ed
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 0x40841f
jmp 0x40848c
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
push ecx
push 0x448
call fcn.00409680
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x40844d
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.004099c0
mov dword [ebp - 0x58], eax
jmp 0x408454
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.0040849d
jmp 0x40852c
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