Function at 0x486070
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x55c85b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xb8]
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]
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], edx
cmove esi, eax
cmp ecx, 0xc0000001
jg 0x48614c
je 0x486142
cmp ecx, 0x80000000
je 0x48617f
cmp ecx, 0xc0000000
jne 0x486154
mov eax, 4
or esi, 2
jmp 0x486187
mov eax, 8
or esi, 1
jmp 0x486187
cmp ecx, 0xc0000002
je 0x48617f
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x11
push eax
call fcn.00487800
push 0x56f49c
lea eax, [esp + 0x68]
push eax
call fcn.00535491
mov eax, 2
or esi, 4
push 0
push 0
push 0
push eax
push 0
push edx
call dword [0x57e098]
mov ebp, eax
test ebp, ebp
jne 0x4861cb
call dword [0x57e230]
push eax
lea ecx, [esp + 0x28]
call fcn.004877c0
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
call fcn.00487800
push 0x56f49c
lea eax, [esp + 0x68]
push eax
call fcn.00535491
mov dword [esp + 0x24], ebp
mov ebx, dword [0x58cc9c]
mov dword [esp + 0xac], 0
test ebx, ebx
jne 0x4861f6
lea eax, [esp + 0x64]
push eax
call dword [0x57e258]
mov ebx, dword [esp + 0x80]
push 0
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.00537030
mov edx, dword [esp + 0x18]
imul eax, ebx
mov ebx, edx
sub ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48621f
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4862ab
push 4
call fcn.0048a180
add esp, 4
lea ecx, [esp + 0x90]
push 0
push 0x10
push ecx
push 0
push ebp
call eax
test eax, eax
je 0x486279
call dword [0x57e230]
push eax
lea ecx, [esp + 0x30]
call fcn.004877c0
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.00487800
push 0x56f49c
lea eax, [esp + 0x68]
push eax
call fcn.00535491
lea eax, [esp + 0x60]
push eax
push 0
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0xb0]
push dword [esp + 0xb0]
call fcn.0048b600
mov eax, dword [esp + 0x7c]
add esp, 0x1c
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
add eax, ebx
push ecx
push eax
sub edx, ebx
push edx
sbb dword [esp + 0x20], 0
push dword [esp + 0x20]
push esi
push ebp
call dword [0x57e09c]
test eax, eax
jne 0x4862fa
call dword [0x57e230]
push eax
lea ecx, [esp + 0x30]
call fcn.004877c0
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.00487800
push 0x56f49c
lea eax, [esp + 0x68]
push eax
call fcn.00535491
add eax, ebx
mov dword [edi + 8], ebx
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
push ebp
mov dword [edi + 4], eax
mov dword [esp + 0xb0], 0xffffffff
call dword [0x57e22c]
mov esi, dword [0x57e2c0]
lea eax, [edi + 0x10]
push 2
push 0
push 0
push eax
call esi
push eax
push dword [esp + 0x40]
call esi
push eax
call dword [0x57e2b0]
test eax, eax
jne 0x486374
call dword [0x57e230]
push eax
lea ecx, [esp + 0x28]
call fcn.004877c0
mov ecx, edi
call fcn.004881c0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.00487800
push 0x56f49c
lea eax, [esp + 0x38]
push eax
call fcn.00535491
mov eax, edi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00535482
add esp, 0x9c
ret 0x1c