Function at 0x1011beb2
Capabilities:
Get system information on windows

Disassembly:
push 0x894
mov eax, 0x1017c4c7
call fcn.1012b6ae
mov esi, ecx
mov dword [ebp - 0x838], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x840], eax
call fcn.1012998f
cmp dword [eax + 4], 0
je 0x1011bee7
xor eax, eax
jmp 0x1011c244
cmp dword [esi + 0x24], 0
je 0x1011bee0
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1011bee0
push 0x10008
call fcn.101345c6
mov edi, eax
pop ecx
test edi, edi
jne 0x1011bf1b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1011bee0
push 0x10000
call fcn.101345c6
mov dword [ebp - 0x834], eax
pop ecx
test eax, eax
jne 0x1011bf40
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.101345c1
pop ecx
jmp 0x1011bee0
xor eax, eax
push 0x410
push eax
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x420]
push eax
call fcn.1012db70
push 0x410
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1012db70
add esp, 0x18
lea eax, [ebp - 0x8a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x894]
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x848]
push eax
push 0x1c
lea eax, [ebp - 0x87c]
push eax
push 0
push 0
jmp 0x1011c20a
cmp dword [ebp - 0x864], 0x1000000
jne 0x1011c1dd
lea eax, [ebp - 0x848]
push eax
push 0x10008
push edi
push 2
push dword [ebp - 0x844]
push ebx
call dword [esi + 0x24]
test eax, eax
js 0x1011c1dd
movzx eax, word [edi]
cmp dword [ebp - 0x83c], eax
jne 0x1011bffc
push dword [ebp - 0x834]
push dword [edi + 4]
call fcn.101311cd
pop ecx
pop ecx
test eax, eax
je 0x1011c1dd
push 0x10000
push dword [ebp - 0x834]
push dword [edi + 4]
call fcn.1011b2bf
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x834]
push 0x410
push eax
call fcn.100100b8
call fcn.1012998f
cmp dword [eax + 4], 0
je 0x1011c07b
xor eax, eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x830]
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.1004b449
add esp, 0xc
test eax, eax
je 0x1011c07b
push SysReAllocString
lea eax, [ebp - 0x830]
push eax
push 0
push 0x208
lea eax, [ebp - 0x420]
push eax
call fcn.10015d3f
push dword [ebp - 0x840]
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
push dword [ebp - 0x870]
push dword [ebp - 0x87c]
call fcn.1011b87f
mov dword [ebp - 0x83c], eax
cmp eax, 1
je 0x1011c1c1
push 0x1c
call fcn.1012b779
mov esi, eax
pop ecx
mov dword [ebp - 0x860], esi
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x1011c0d9
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
jmp 0x1011c0db
mov esi, eax
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1011c1bb
mov eax, dword [ebp - 0x838]
mov ecx, esi
mov dword [esi], 0x1c
mov eax, dword [eax + 0x3c]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x420]
push eax
call fcn.1003b401
mov ecx, dword [ebp - 0x840]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 4
test eax, eax
je 0x1011c130
cmp dword [ebp - 0x83c], 2
mov dword [esi + 0x10], 1
jne 0x1011c130
mov dword [esi + 0x10], 0x2001
lea ecx, [ebp - 0x850]
call fcn.10008950
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x420]
push eax
call fcn.10130fe5
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x850]
call fcn.10008f20
mov ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x85c]
push eax
call fcn.1011a7b7
mov ecx, dword [ebp - 0x838]
push 0
push 0
push esi
call fcn.1011b52d
push esi
mov esi, dword [ebp - 0x838]
mov ecx, esi
call fcn.1011e9b2
test eax, eax
je 0x1011c218
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.10040044
jmp 0x1011c1c1
mov esi, dword [ebp - 0x838]
push dword [edi + 4]
push 0x10000
push dword [ebp - 0x834]
call fcn.100100b8
movzx eax, word [edi]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp - 0x844]
add eax, dword [ebp - 0x870]
mov dword [ebp - 0x844], eax
cmp eax, dword [ebp - 0x84c]
ja 0x1011c227
lea ecx, [ebp - 0x848]
push ecx
push 0x1c
lea ecx, [ebp - 0x87c]
push ecx
push 0
push eax
push ebx
call dword [esi + 0x24]
test eax, eax
jns 0x1011bfa8
jmp 0x1011c227
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.10040044
push edi
call fcn.101345c1
push dword [ebp - 0x834]
call fcn.101345c1
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.1012b658
ret 0xc