Function at 0x4cea08
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x4cea37
add esp, 0xfffffff0
call fcn.00404090
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cef35
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xdc]
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 6]
mov byte [eax + 0x2f8], dl
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x328], edx
mov byte [ebp - 7], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x460], 0
mov dl, 1
mov eax, dword [0x41aecc]
call fcn.00403cfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c4], eax
cmp byte [0x567e2c], 0
je 0x4ceab8
push 0
push 0xa0a0a0
mov edx, 0x4cef68
mov eax, 0xfffffffd
call fcn.004a5eb4
cmp byte [0x567e2c], 0
je 0x4cead6
mov ecx, 0x4cef7c
mov dl, byte [0x567f38]
mov eax, 0xfffffffd
call fcn.004a5f5c
call fcn.004a9198
mov edx, dword [ebp - 4]
mov dword [edx + 0x30c], eax
mov eax, 0x1f40
call fcn.004b1894
mov edx, dword [ebp - 4]
mov dword [edx + 0x46c], eax
mov dl, 1
mov eax, dword [0x4a5cb0]
call fcn.00403cfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x304], eax
call fcn.004c7528
mov edx, dword [ebp - 4]
mov byte [edx + 0x308], al
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x567e40], eax
cmp byte [0x567e2c], 0
je 0x4ceb4d
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x308]
mov ecx, 0x4cef8c
mov eax, 0xfffffffd
call fcn.004a5f5c
mov eax, 0x567e5c
call fcn.00406c10
push 0x4cef98
push 1
mov eax, 0x567e5c
call fcn.00406c10
mov ecx, eax
mov edx, 0x4cef9c
mov eax, 0x5676e0
call fcn.004c76e4
mov byte [0x567e60], al
cmp byte [0x567e2c], 0
je 0x4ceb9f
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x308]
mov ecx, 0x4cef8c
mov eax, 0xfffffffd
call fcn.004a5f5c
call fcn.004a901c
cmp byte [0x567e2c], 0
je 0x4cebc2
mov ecx, 0x4cefb4
mov dl, byte [0x567e50]
mov eax, 0xfffffffd
call fcn.004a5f5c
mov dl, 1
mov eax, dword [0x4ba38c]
call fcn.004c68b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x2f4], eax
mov dl, 1
mov eax, dword [0x4a5cb0]
call fcn.00403cfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x2f0], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x45c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x464], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x458], 1
mov dl, 1
mov eax, dword [0x4b47e0]
call fcn.004b4844
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov dl, 1
mov eax, dword [0x4a5cb0]
call fcn.00403cfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x330], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
mov dl, 1
call fcn.0041f6d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
mov byte [eax + 0x1d], 0
mov dl, 1
mov eax, dword [0x4a5cb0]
call fcn.00403cfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x334], eax
mov eax, dword [ebp - 4]
add eax, 0x310
push eax
call sub.kernel32.dll_InitializeCriticalSection_1
mov dl, 1
mov eax, dword [0x4b47e0]
call fcn.004b4844
mov edx, dword [ebp - 4]
mov dword [edx + 0x300], eax
mov dl, 1
mov eax, dword [0x4b47e0]
call fcn.004b4844
mov edx, dword [ebp - 4]
mov dword [edx + 0x2fc], eax
lea eax, [ebp - 0xa4]
mov edx, 0x94
call fcn.004081b8
mov dword [ebp - 0xa4], 0x94
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4ceda1
cmp byte [0x567e2c], 0
je 0x4ced73
cmp byte [ebp - 0x90], 0
je 0x4cecfc
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x90]
mov ecx, 0x80
call fcn.00404db0
jmp 0x4ced04
lea eax, [ebp - 0xc]
call fcn.00404b38
push 0
push 0xa0a0a0
push 0x4cefc8
mov eax, dword [ebp - 0xa0]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xac]
call fcn.0040a9cc
push dword [ebp - 0xac]
push 0x4cefd8
mov eax, dword [ebp - 0x9c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb0]
call fcn.0040a9cc
push dword [ebp - 0xb0]
push 0x4cefd8
push dword [ebp - 0xc]
lea eax, [ebp - 0xa8]
mov edx, 6
call fcn.00404edc
mov edx, dword [ebp - 0xa8]
mov eax, 0xfffffffd
call fcn.004a5eb4
cmp dword [ebp - 0xa0], 6
jne 0x4ceda1
cmp dword [ebp - 0x9c], 0
jne 0x4ced94
mov eax, dword [ebp - 4]
mov dword [eax + 0x464], 1
jmp 0x4ceda1
mov eax, dword [ebp - 4]
mov dword [eax + 0x464], 2
mov al, byte [ebp - 7]
mov byte [0x567e30], al
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f9], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fa], 0
mov eax, dword [ebp - 4]
add eax, 0x2f9
push eax
mov eax, dword [ebp - 4]
add eax, 0x2fa
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004cf518
mov eax, dword [ebp - 4]
call fcn.004d1980
cmp byte [0x567e2c], 0
je 0x4cee00
push 0
push 0xa0a0a0
mov edx, 0x4cefe4
or eax, 0xffffffff
call fcn.004a5eb4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x464], 0
jne 0x4cee1d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x308], 0
je 0x4cee1d
call fcn.004c6bf0
mov eax, dword [ebp - 4]
mov dword [0x567f34], eax
xor eax, eax
push ebp
push 0x4cee4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, byte [0x567f38]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004d0c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cee58
cmp byte [0x567f38], 0
je 0x4cee6e
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x468], edx
jmp 0x4ceed1
mov ecx, 1
xor edx, edx
mov eax, 0x2c6
call fcn.004ca2b0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x437e74]
call fcn.00438a18
mov edx, dword [ebp - 4]
mov dword [edx + 0x468], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
xor edx, edx
call fcn.00438ba0
mov eax, dword [ebp - 4]
push eax
push 0x4d04d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
call fcn.00438bc0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov edx, 0x7d0
call fcn.00438bb0
cmp byte [0x567e2c], 0
je 0x4ceedf
call fcn.004ae01c
mov eax, 0x4ceffc
call fcn.004ae2e0
mov edx, dword [ebp - 4]
mov byte [edx + 0x338], al
cmp byte [0x567e2c], 0
je 0x4cef0f
push 0
push 0xa0a0a0
mov edx, 0x4cf014
or eax, 0xffffffff
call fcn.004a5eb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cef3c
lea eax, [ebp - 0xb0]
mov edx, 3
call fcn.00404b5c
lea eax, [ebp - 0xc]
call fcn.00404b38
ret