Function at 0x100f3990
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010aa88
push 0x100ee150
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.100f3df4
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x24], 0
jne 0x100f39d2
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x2c], 0
je 0x100f39f0
push str._m_hMap___m_pBufferStart
push 0
push 0x19
push 0x1015ab78
push 2
call sub.MSVCR70D.dll__CrtDbgReport
add esp, 0x14
cmp eax, 1
jne 0x100f39f0
int3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
test eax, eax
jne 0x100f3a48
lea eax, [ebp - 0x1c]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp dword [ebp - 0x1c], 0
je 0x100f3a48
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x100f3a48
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
jmp 0x100f3c0e
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 0x100f3a75
jmp 0x100f3c0e
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 0x100f3aaa
jmp 0x100f3c0e
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x20], 0xb7
jne 0x100f3b69
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 0x100f3b2a
push 0x448
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x1c]
call fcn.100f47d0
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100f3b2a
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.100f47d0
push eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
push ecx
call sub.MSVCR70D.dll_memcmp
add esp, 0xc
test eax, eax
je 0x100f3b2f
jmp 0x100f3c0e
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x1c]
call fcn.100f47a0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x1c]
call fcn.100f47d0
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 0x100f3bfe
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0x448
jae 0x100f3b83
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], edx
jmp 0x100f3b6f
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 0x100f3ba1
jmp 0x100f3c0e
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
push ecx
push 0x448
call fcn.1000ded0
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x100f3bcf
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.100f50a1
mov dword [ebp - 0x58], eax
jmp 0x100f3bd6
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.100f3c1f
jmp 0x100f3cae
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