Function at 0x48549e
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a16bf
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov esi, 0x114
push esi
xor ebx, ebx
lea eax, [esp + 0x1a0]
push ebx
push eax
call fcn.0055fda0
add esp, 0xc
lea eax, [esp + 0x19c]
push eax
mov dword [esp + 0x1a0], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x485594
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.00403aba
mov esi, eax
push str.GetVersionEx_failed__err_
push esi
mov dword [esp + 0x2d0], ebx
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [esp + 0x180]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x2c8], 1
cmp dword [esp + 0x194], 8
mov eax, dword [esp + 0x180]
jae 0x485572
lea eax, [esp + 0x180]
push eax
xor ecx, ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x184]
call fcn.00404589
lea eax, [esp + 0x34]
jmp 0x485777
push 0x24
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0055fda0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [esp + 0x1a0]
push 2
pop edi
cmp ecx, 4
jne 0x4855d3
cmp dword [esp + 0x1ac], 1
jne 0x4856de
xor eax, eax
jmp 0x485787
push 5
pop eax
cmp ecx, eax
jne 0x485625
cmp dword [esp + 0x1a4], ebx
jne 0x4855eb
xor eax, eax
inc eax
jmp 0x485787
cmp dword [esp + 0x1a4], 1
jne 0x4855fd
push 2
pop eax
jmp 0x485787
cmp dword [esp + 0x1a4], edi
jne 0x4856de
cmp word [esp + 0x10], 9
je 0x485621
cmp word [esp + 0x10], 6
je 0x485621
mov eax, edi
jmp 0x485787
push 3
jmp 0x4855f7
push 6
pop edx
cmp ecx, edx
jne 0x4856b3
mov ecx, dword [esp + 0x1a4]
cmp ecx, ebx
jne 0x485655
cmp word [esp + 0x10], 9
je 0x48564e
cmp word [esp + 0x10], dx
jne 0x485787
mov eax, edx
jmp 0x485787
cmp ecx, 1
jne 0x485671
cmp word [esp + 0x10], 9
je 0x48566d
cmp word [esp + 0x10], dx
je 0x48566d
push 7
jmp 0x4855f7
push 8
jmp 0x4855f7
cmp ecx, edi
jne 0x485691
push 9
pop eax
cmp word [esp + 0x10], ax
je 0x48568a
cmp word [esp + 0x10], dx
jne 0x485787
push 0xa
jmp 0x4855f7
cmp ecx, 3
jne 0x4856de
cmp word [esp + 0x10], 9
je 0x4856ac
cmp word [esp + 0x10], dx
je 0x4856ac
push 0xb
jmp 0x4855f7
push 0xc
jmp 0x4855f7
cmp ecx, 0xa
jne 0x4856de
cmp dword [esp + 0x1a4], ebx
jne 0x4856de
cmp word [esp + 0x10], 9
je 0x4856d7
cmp word [esp + 0x10], dx
je 0x4856d7
push 0xd
jmp 0x4855f7
push 0xe
jmp 0x4855f7
lea eax, [esp + 0xcc]
push eax
call fcn.00403aba
mov esi, eax
push str.Unknown_version:_major
push esi
mov dword [esp + 0x2d0], edi
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x1a0]
push esi
call fcn.004109e7
push str.__minor
push esi
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x1a4]
push esi
call fcn.004109e7
lea eax, [esp + 0x164]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x2c8], 3
cmp dword [esp + 0x178], 8
mov eax, dword [esp + 0x164]
jae 0x485757
lea eax, [esp + 0x164]
push eax
xor ecx, ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x168]
call fcn.00404589
lea eax, [esp + 0xcc]
or dword [esp + 0x2c8], 0xffffffff
call fcn.004027ed
or eax, 0xffffffff
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret