Function at 0x40c780
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4518f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x30]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0xa4], 6
ja 0x40c7df
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jne 0x40c9cb
cmp dword [eax + 0xa8], 2
jb 0x40c9cb
push 0x10
xor eax, eax
mov dword [ebp - 0x18], 0
push str.EasyAntiCheat_Oy
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004013e0
mov dword [ebp - 4], 0
cmp esi, 0x46b8c4
je 0x40c829
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40c81b
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, 0x46b8c4
push eax
call fcn.004013e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40c835
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov ecx, 0x46b8dc
push eax
call fcn.004013e0
cmp dword [0x46b90c], 8
mov eax, 0x46b8f8
mov dword [0x46b8f4], 2
mov dword [0x46b908], 0
jb 0x40c86a
mov eax, dword [0x46b8f8]
xor ecx, ecx
mov word [eax], cx
push dword [0x46b910]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x46b8c0
mov edx, 0x46b8c4
mov ecx, 0x40af00
call fcn.00407ee0
add esp, 4
test al, al
jne 0x40c89d
mov esi, 2
jmp 0x40c8bd
push 0x1388
push dword [0x46b910]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 2
test eax, eax
jne 0x40c8bd
mov esi, dword [0x46b8f4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c8fe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c8f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9ea
push edx
push ecx
call fcn.0041b677
add esp, 8
sub esi, 0
je 0x40c9cb
sub esi, 2
je 0x40c977
cmp dword [edi + 0x14], 8
jb 0x40c914
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x40]
push str._EAC_Service___Error__Certificate_validation_failed____s_
push eax
call fcn.004123e0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
jb 0x40c932
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40c973
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c969
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9ef
push edx
push ecx
call fcn.0041b677
add esp, 8
xor al, al
jmp 0x40c9cd
lea eax, [ebp - 0x58]
push str._EAC_Service___Error__Certificate_validation_timed_out_
push eax
call fcn.004122f0
add esp, 8
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
jb 0x40c994
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40c9cb
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9f4
push edx
push ecx
call fcn.0041b677
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b636
mov esp, ebp
pop ebp
ret 8
call fcn.00436a99
call fcn.00436a99
call fcn.00436a99
int3