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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5595b2
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
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.00517bf0
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 0x497dd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.00403689
mov esi, eax
push str.GetVersionEx_failed__err_
push esi
mov dword [esp + 0x2d0], ebx
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.0041058a
lea eax, [esp + 0x180]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x2c8], 1
cmp dword [esp + 0x194], 8
mov eax, dword [esp + 0x180]
jae 0x497db4
lea eax, [esp + 0x180]
push eax
xor ecx, ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x184]
call fcn.0040412d
lea eax, [esp + 0x34]
jmp 0x497fb9
push 0x24
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00517bf0
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 0x497e15
cmp dword [esp + 0x1ac], 1
jne 0x497f20
xor eax, eax
jmp 0x497fc9
push 5
pop eax
cmp ecx, eax
jne 0x497e67
cmp dword [esp + 0x1a4], ebx
jne 0x497e2d
xor eax, eax
inc eax
jmp 0x497fc9
cmp dword [esp + 0x1a4], 1
jne 0x497e3f
push 2
pop eax
jmp 0x497fc9
cmp dword [esp + 0x1a4], edi
jne 0x497f20
cmp word [esp + 0x10], 9
je 0x497e63
cmp word [esp + 0x10], 6
je 0x497e63
mov eax, edi
jmp 0x497fc9
push 3
jmp 0x497e39
push 6
pop edx
cmp ecx, edx
jne 0x497ef5
mov ecx, dword [esp + 0x1a4]
cmp ecx, ebx
jne 0x497e97
cmp word [esp + 0x10], 9
je 0x497e90
cmp word [esp + 0x10], dx
jne 0x497fc9
mov eax, edx
jmp 0x497fc9
cmp ecx, 1
jne 0x497eb3
cmp word [esp + 0x10], 9
je 0x497eaf
cmp word [esp + 0x10], dx
je 0x497eaf
push 7
jmp 0x497e39
push 8
jmp 0x497e39
cmp ecx, edi
jne 0x497ed3
push 9
pop eax
cmp word [esp + 0x10], ax
je 0x497ecc
cmp word [esp + 0x10], dx
jne 0x497fc9
push 0xa
jmp 0x497e39
cmp ecx, 3
jne 0x497f20
cmp word [esp + 0x10], 9
je 0x497eee
cmp word [esp + 0x10], dx
je 0x497eee
push 0xb
jmp 0x497e39
push 0xc
jmp 0x497e39
cmp ecx, 0xa
jne 0x497f20
cmp dword [esp + 0x1a4], ebx
jne 0x497f20
cmp word [esp + 0x10], 9
je 0x497f19
cmp word [esp + 0x10], dx
je 0x497f19
push 0xd
jmp 0x497e39
push 0xe
jmp 0x497e39
lea eax, [esp + 0xcc]
push eax
call fcn.00403689
mov esi, eax
push str.Unknown_version:_major
push esi
mov dword [esp + 0x2d0], edi
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x1a0]
push esi
call fcn.0041058a
push str.__minor
push esi
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x1a4]
push esi
call fcn.0041058a
lea eax, [esp + 0x164]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x2c8], 3
cmp dword [esp + 0x178], 8
mov eax, dword [esp + 0x164]
jae 0x497f99
lea eax, [esp + 0x164]
push eax
xor ecx, ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x168]
call fcn.0040412d
lea eax, [esp + 0xcc]
or dword [esp + 0x2c8], 0xffffffff
call fcn.0040262a
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.005146df
mov esp, ebp
pop ebp
ret