Function at 0x586410
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e8c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5fc7d0]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5fc7d0]
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 0x5864ec
je 0x5864e2
cmp ecx, 0x80000000
je 0x58651f
cmp ecx, 0xc0000000
jne 0x5864f4
mov eax, 4
or esi, 2
jmp 0x586527
mov eax, 8
or esi, 1
jmp 0x586527
cmp ecx, 0xc0000002
je 0x58651f
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x11
push eax
call fcn.00587ba0
push 0x5f3550
lea eax, [esp + 0x68]
push eax
call fcn.005c4b35
mov eax, 2
or esi, 4
push 0
push 0
push 0
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x58656b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.00587b60
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
call fcn.00587ba0
push 0x5f3550
lea eax, [esp + 0x68]
push eax
call fcn.005c4b35
mov dword [esp + 0x24], ebp
mov ebx, dword [0x60275c]
mov dword [esp + 0xac], 0
test ebx, ebx
jne 0x586596
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0x80]
push 0
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.005c66e0
mov edx, dword [esp + 0x18]
imul eax, ebx
mov ebx, edx
sub ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5865bf
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x58664b
push 4
call fcn.0058a6c0
add esp, 4
lea ecx, [esp + 0x90]
push 0
push 0x10
push ecx
push 0
push ebp
call eax
test eax, eax
je 0x586619
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
call fcn.00587b60
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.00587ba0
push 0x5f3550
lea eax, [esp + 0x68]
push eax
call fcn.005c4b35
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.0058bb40
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 [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
jne 0x58669a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
call fcn.00587b60
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.00587ba0
push 0x5f3550
lea eax, [esp + 0x68]
push eax
call fcn.005c4b35
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 [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 [esp + 0x40]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x586714
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.00587b60
mov ecx, edi
call fcn.00588550
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.00587ba0
push 0x5f3550
lea eax, [esp + 0x38]
push eax
call fcn.005c4b35
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.005c4b26
add esp, 0x9c
ret 0x1c