Function at 0x10012a70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d458
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100962c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0xffffffff
mov edx, dword [eax]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x68], edx
cmp ecx, 0xc0000001
jg 0x10012b06
je 0x10012af8
cmp ecx, 0x80000000
je 0x10012b37
cmp ecx, 0xc0000000
jne 0x10012b0e
mov eax, 4
mov dword [ebp - 0x60], 2
jmp 0x10012b43
mov eax, 8
mov dword [ebp - 0x60], 1
jmp 0x10012b43
cmp ecx, 0xc0000002
je 0x10012b37
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x11
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x4c]
push eax
call fcn.1004cc2d
mov eax, 2
mov dword [ebp - 0x60], 4
push 0
push 0
push 0
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x10012b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20]
call fcn.10005530
jmp 0x10012b1c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov eax, dword [0x1009ad64]
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x10012b90
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
push 0
push eax
push 0
push 0
call fcn.1004a6f0
mov ebx, eax
mov ecx, 4
imul ebx, dword [ebp - 0x64]
neg ebx
call fcn.1000a5c0
push 0
push 0x10
lea ecx, [ebp - 0x5c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x10012bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10005530
push ecx
mov eax, ecx
jmp 0x10012b20
push 0
push ebx
sub esp, 8
lea ecx, [ebp - 0x18]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.10007870
mov ecx, dword [ebp - 0x18]
add esp, 0x18
add ecx, ebx
mov eax, ebx
neg eax
mov edx, 0
push 0
push ecx
adc edx, edx
push eax
neg edx
push edx
push dword [ebp - 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
jne 0x10012c29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10005530
push ecx
mov eax, ecx
jmp 0x10012b20
add eax, ebx
mov dword [edi + 8], ebx
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
push esi
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [edi + 0x10]
push 2
push 0
push 0
push eax
call esi
push eax
push dword [ebp - 0x68]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10012c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20]
call fcn.10005530
mov ecx, edi
call fcn.10007830
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x98]
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x98]
jmp 0x10012b31
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10049b55
mov esp, ebp
pop ebp
ret 0x1c