Function at 0x4cef30
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 0x4cef5f
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 0x4cf45d
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 [0x568e38], 0
je 0x4cefe0
push 0
push 0xa0a0a0
mov edx, 0x4cf490
mov eax, 0xfffffffd
call fcn.004a63dc
cmp byte [0x568e38], 0
je 0x4ceffe
mov ecx, 0x4cf4a4
mov dl, byte [0x568f44]
mov eax, 0xfffffffd
call fcn.004a6484
call fcn.004a96c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x30c], eax
mov eax, 0x1f40
call fcn.004b1dbc
mov edx, dword [ebp - 4]
mov dword [edx + 0x46c], eax
mov dl, 1
mov eax, dword [0x4a61d8]
call fcn.00403cfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x304], eax
call fcn.004c7a50
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 [0x568e4c], eax
cmp byte [0x568e38], 0
je 0x4cf075
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x308]
mov ecx, 0x4cf4b4
mov eax, 0xfffffffd
call fcn.004a6484
mov eax, 0x568e68
call fcn.00406c10
push 0x4cf4c0
push 1
mov eax, 0x568e68
call fcn.00406c10
mov ecx, eax
mov edx, 0x4cf4c4
mov eax, 0x5686ec
call fcn.004c7c0c
mov byte [0x568e6c], al
cmp byte [0x568e38], 0
je 0x4cf0c7
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x308]
mov ecx, 0x4cf4b4
mov eax, 0xfffffffd
call fcn.004a6484
call fcn.004a9544
cmp byte [0x568e38], 0
je 0x4cf0ea
mov ecx, 0x4cf4dc
mov dl, byte [0x568e5c]
mov eax, 0xfffffffd
call fcn.004a6484
mov dl, 1
mov eax, dword [0x4ba8b4]
call fcn.004c6dd8
mov edx, dword [ebp - 4]
mov dword [edx + 0x2f4], eax
mov dl, 1
mov eax, dword [0x4a61d8]
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 [0x4b4d08]
call fcn.004b4d6c
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov dl, 1
mov eax, dword [0x4a61d8]
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 [0x4a61d8]
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 [0x4b4d08]
call fcn.004b4d6c
mov edx, dword [ebp - 4]
mov dword [edx + 0x300], eax
mov dl, 1
mov eax, dword [0x4b4d08]
call fcn.004b4d6c
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 0x4cf2c9
cmp byte [0x568e38], 0
je 0x4cf29b
cmp byte [ebp - 0x90], 0
je 0x4cf224
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x90]
mov ecx, 0x80
call fcn.00404db0
jmp 0x4cf22c
lea eax, [ebp - 0xc]
call fcn.00404b38
push 0
push 0xa0a0a0
push 0x4cf4f0
mov eax, dword [ebp - 0xa0]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xac]
call fcn.0040a9cc
push dword [ebp - 0xac]
push 0x4cf500
mov eax, dword [ebp - 0x9c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb0]
call fcn.0040a9cc
push dword [ebp - 0xb0]
push 0x4cf500
push dword [ebp - 0xc]
lea eax, [ebp - 0xa8]
mov edx, 6
call fcn.00404edc
mov edx, dword [ebp - 0xa8]
mov eax, 0xfffffffd
call fcn.004a63dc
cmp dword [ebp - 0xa0], 6
jne 0x4cf2c9
cmp dword [ebp - 0x9c], 0
jne 0x4cf2bc
mov eax, dword [ebp - 4]
mov dword [eax + 0x464], 1
jmp 0x4cf2c9
mov eax, dword [ebp - 4]
mov dword [eax + 0x464], 2
mov al, byte [ebp - 7]
mov byte [0x568e3c], 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.004cfa40
mov eax, dword [ebp - 4]
call fcn.004d1ea8
cmp byte [0x568e38], 0
je 0x4cf328
push 0
push 0xa0a0a0
mov edx, 0x4cf50c
or eax, 0xffffffff
call fcn.004a63dc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x464], 0
jne 0x4cf345
mov eax, dword [ebp - 4]
cmp byte [eax + 0x308], 0
je 0x4cf345
call fcn.004c7118
mov eax, dword [ebp - 4]
mov dword [0x568f40], eax
xor eax, eax
push ebp
push 0x4cf376
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, byte [0x568f44]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004d1158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cf380
cmp byte [0x568f44], 0
je 0x4cf396
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x468], edx
jmp 0x4cf3f9
mov ecx, 1
xor edx, edx
mov eax, 0x2c6
call fcn.004ca7d8
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 0x4d0a00
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 [0x568e38], 0
je 0x4cf407
call fcn.004ae544
mov eax, 0x4cf524
call fcn.004ae808
mov edx, dword [ebp - 4]
mov byte [edx + 0x338], al
cmp byte [0x568e38], 0
je 0x4cf437
push 0
push 0xa0a0a0
mov edx, 0x4cf53c
or eax, 0xffffffff
call fcn.004a63dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf464
lea eax, [ebp - 0xb0]
mov edx, 3
call fcn.00404b5c
lea eax, [ebp - 0xc]
call fcn.00404b38
ret