Function at 0x10001290
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10001523
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x10], ecx
push ebx
push esi
lea ecx, [ebp - 0x28]
push edi
call fcn.10001620
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100012f9
mov dword [ebp - 4], 0xffffffff
call fcn.1000152d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x18], 0
je 0x10001337
add ecx, 0x10
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 0x14]
push ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov edx, dword [eax]
push edx
push 1
push 0
push ecx
call dword [ebx + 8]
test eax, eax
jge 0x1000138d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100012d8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add ecx, 0x10
mov eax, dword [edx + 0x14]
push eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push edx
push eax
call fcn.10002230
test eax, eax
jne 0x10001380
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
mov ecx, dword [edx]
push eax
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10002230
test eax, eax
jne 0x10001380
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100012d8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx]
shl eax, 2
mov dword [ebp - 0x2c], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp dword [ecx], esi
jbe 0x100013d1
xor edi, edi
mov eax, dword [ebp - 0x14]
push 8
mov ecx, dword [eax]
add edi, 4
inc esi
mov ebx, dword [ecx + edi]
call fcn.10002740
and ebx, 0xfffff000
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [eax], ebx
mov dword [eax + 4], 0
push eax
call fcn.10001670
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
cmp dword [ebx], esi
ja 0x1000139a
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add ecx, 0x1c
push eax
mov dword [ebp - 0x14], ecx
call fcn.10001880
test eax, eax
jne 0x10001400
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100012d8
xor edi, edi
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x24], edi
jbe 0x1000146d
push edi
mov ecx, dword [ebp - 0x14]
xor esi, esi
call fcn.10001ca0
mov ebx, eax
cmp dword [ebp - 0x20], esi
jbe 0x10001464
push esi
lea ecx, [ebp - 0x28]
call fcn.100016c0
mov ecx, dword [ebx + 0x18]
mov eax, dword [eax]
cmp ecx, eax
ja 0x10001433
cmp dword [ebx + 0x1c], eax
ja 0x10001443
mov edx, dword [ebp - 0x4c]
lea eax, [edx + eax - 1]
cmp eax, ecx
jb 0x1000145e
cmp dword [ebx + 0x1c], eax
jbe 0x1000145e
push esi
lea ecx, [ebp - 0x28]
call fcn.100016c0
push edi
mov ecx, dword [ebp - 0x14]
inc dword [eax + 4]
call fcn.10001ca0
mov ecx, dword [ebp - 0x4c]
add dword [eax + 0x20], ecx
inc esi
cmp dword [ebp - 0x20], esi
ja 0x1000141c
inc edi
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x24], edi
ja 0x1000140a
xor esi, esi
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x20], esi
mov dword [ecx + 0x50], esi
mov dword [ecx + 0x48], esi
mov dword [ecx + 0x4c], esi
mov dword [ecx + 0x44], esi
jbe 0x100014ca
xor edi, edi
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
push esi
add dword [ecx + 0x44], eax
lea ecx, [ebp - 0x28]
call fcn.100016c0
cmp dword [eax + 4], edi
je 0x100014a7
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
add dword [ecx + 0x48], eax
jmp 0x100014c4
push esi
lea ecx, [ebp - 0x28]
call fcn.100016c0
test byte [eax + 3], 0x80
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
je 0x100014c1
add dword [ecx + 0x50], eax
jmp 0x100014c4
add dword [ecx + 0x4c], eax
inc esi
cmp dword [ebp - 0x20], esi
ja 0x10001485
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
mov dword [ecx + 0x54], edx
dec esi
cmp dword [ebp - 0x20], 0
je 0x10001500
push esi
lea ecx, [ebp - 0x28]
call fcn.100016c0
push eax
call fcn.10002750
add esp, 4
mov eax, esi
dec esi
test eax, eax
jne 0x100014e7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
call fcn.1000152d
mov eax, 1
jmp 0x100012e6