Function at 0x493660
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x51c890
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push 0x11c
push esi
lea edx, [ebp]
push edx
call fcn.004fd670
add esp, 0xc
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4936f0
mov dword [ebp], 0x114
lea ecx, [ebp]
push ecx
call edi
test eax, eax
je 0x4938fc
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x4938b2
mov ecx, 1
sub eax, ecx
je 0x49383d
sub eax, ecx
jne case.default.0x49379e
mov eax, dword [ebp + 4]
add eax, 0xfffffffd
cmp eax, 7
ja case.0x493720.7
jmp dword [eax*4 + 0x493924]
mov esi, 0x20001
jmp 0x4938b4
mov esi, 0x20002
jmp 0x4938b4
mov eax, dword [ebp + 8]
sub eax, 0
je 0x493788
sub eax, ecx
je 0x49374b
sub eax, ecx
je 0x493755
mov esi, 0x40002
jmp 0x4938b4
mov esi, 0x40003
mov dword [ebp - 0x14], esi
cmp byte [0x64a078], 0
je case.default.0x49379e
test ebx, ebx
je case.default.0x49379e
cmp byte [ebp + 0x11a], cl
jne case.default.0x49379e
mov esi, 0x40002
jmp 0x4938b4
mov esi, 0x40001
jmp 0x4938b4
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x49379e
jmp dword [eax*4 + 0x493944]
test ebx, ebx
je 0x4937c2
xor edx, edx
cmp byte [ebp + 0x11a], cl
setne dl
lea edx, [edx*4 + 0x100001]
mov esi, edx
jmp 0x4938b4
mov esi, 0x100005
jmp 0x4938b4
xor eax, eax
cmp byte [ebp + 0x11a], cl
setne al
lea eax, [eax*4 + 0x100002]
mov esi, eax
jmp 0x4938b4
xor edx, edx
cmp byte [ebp + 0x11a], cl
setne dl
lea edx, [edx*4 + 0x100003]
mov esi, edx
jmp 0x4938b4
xor eax, eax
cmp byte [ebp + 0x11a], cl
setne al
lea eax, [eax*4 + 0x100004]
mov esi, eax
jmp 0x4938b4
cmp dword [ebp + 8], 0
jne case.default.0x49379e
xor edx, edx
cmp byte [ebp + 0x11a], cl
setne dl
add edx, 0x100009
mov esi, edx
jmp 0x4938b4
mov esi, 0x100001
jmp 0x4938b4
mov esi, dword [ebp + 8]
test esi, esi
je 0x49387a
cmp esi, 0xa
je 0x49385b
sub esi, 0x5a
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x10005
jmp 0x4938b4
push 0x567400
lea eax, [ebp + 0x14]
push eax
call fcn.004f9f1e
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 0x10004
jmp 0x4938b4
push 0x5673fc
lea ecx, [ebp + 0x14]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4938ab
push str.BDMS
lea edx, [ebp + 0x14]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4938ab
mov esi, 0x10001
jmp 0x4938b4
mov esi, 0x10002
jmp 0x4938b4
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4938c3
mov ecx, dword [ebp + 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4938cf
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x4938fa
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x120
mov esp, ebp
pop ebp
ret