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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5fe480]
xor eax, esp
mov dword [esp + 0x2ac], eax
push esi
push edi
mov eax, dword [0x5fe480]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov esi, 0x114
push esi
lea eax, [esp + 0x1a0]
push 0
push eax
call fcn.00543fe0
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 0x4683cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.004044d0
mov esi, eax
and dword [esp + 0x2c8], 0
push str.GetVersionEx_failed__err_
push esi
call fcn.0040511f
pop ecx
pop ecx
push edi
push esi
call fcn.00409937
lea eax, [esp + 0x180]
push eax
mov eax, esi
call fcn.0040453a
mov byte [esp + 0x2c8], 1
cmp dword [esp + 0x194], 8
mov eax, dword [esp + 0x180]
jae 0x4683ad
lea eax, [esp + 0x180]
push eax
xor ecx, ecx
call fcn.00463ba1
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x184]
call fcn.00401d98
lea eax, [esp + 0x34]
jmp 0x468591
push 0x24
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00543fe0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [esp + 0x1a0], 4
push 2
pop edi
jne 0x46840d
cmp dword [esp + 0x1ac], 1
jne 0x4684f8
xor eax, eax
jmp 0x4685a1
push 5
pop eax
cmp dword [esp + 0x1a0], eax
jne 0x468465
cmp dword [esp + 0x1a4], 0
jne 0x46842b
xor eax, eax
inc eax
jmp 0x4685a1
cmp dword [esp + 0x1a4], 1
jne 0x46843d
push 2
pop eax
jmp 0x4685a1
cmp dword [esp + 0x1a4], edi
jne 0x4684f8
cmp word [esp + 0x10], 9
je 0x468461
cmp word [esp + 0x10], 6
je 0x468461
mov eax, edi
jmp 0x4685a1
push 3
jmp 0x468437
push 6
pop edx
cmp dword [esp + 0x1a0], edx
jne 0x4684f8
mov ecx, dword [esp + 0x1a4]
test ecx, ecx
jne 0x46849a
cmp word [esp + 0x10], 9
je 0x468493
cmp word [esp + 0x10], dx
jne 0x4685a1
mov eax, edx
jmp 0x4685a1
cmp ecx, 1
jne 0x4684b6
cmp word [esp + 0x10], 9
je 0x4684b2
cmp word [esp + 0x10], dx
je 0x4684b2
push 7
jmp 0x468437
push 8
jmp 0x468437
cmp ecx, edi
jne 0x4684d6
push 9
pop eax
cmp word [esp + 0x10], ax
je 0x4684cf
cmp word [esp + 0x10], dx
jne 0x4685a1
push 0xa
jmp 0x468437
cmp ecx, 3
jne 0x4684f8
cmp word [esp + 0x10], 9
je 0x4684f1
cmp word [esp + 0x10], dx
je 0x4684f1
push 0xb
jmp 0x468437
push 0xc
jmp 0x468437
lea eax, [esp + 0xcc]
push eax
call fcn.004044d0
mov esi, eax
push str.Unknown_version:_major
push esi
mov dword [esp + 0x2d0], edi
call fcn.0040511f
pop ecx
pop ecx
push dword [esp + 0x1a0]
push esi
call fcn.00409937
push str.__minor
push esi
call fcn.0040511f
pop ecx
pop ecx
push dword [esp + 0x1a4]
push esi
call fcn.00409937
lea eax, [esp + 0x164]
push eax
mov eax, esi
call fcn.0040453a
mov byte [esp + 0x2c8], 3
cmp dword [esp + 0x178], 8
mov eax, dword [esp + 0x164]
jae 0x468571
lea eax, [esp + 0x164]
push eax
xor ecx, ecx
call fcn.00463ba1
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x168]
call fcn.00401d98
lea eax, [esp + 0xcc]
or dword [esp + 0x2c8], 0xffffffff
call fcn.00403cb2
or eax, 0xffffffff
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.005413de
mov esp, ebp
pop ebp
ret