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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455a08
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46f068]
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 0x40be9f
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jne 0x40c08a
cmp dword [eax + 0xa8], 2
jb 0x40c08a
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.004013d0
mov dword [ebp - 4], 0
cmp esi, 0x46fb04
je 0x40bee8
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x40bedc
mov esi, dword [esi]
push eax
push esi
mov ecx, 0x46fb04
call fcn.004013d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40bef4
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov ecx, 0x46fb1c
push eax
call fcn.004013d0
cmp dword [0x46fb4c], 8
mov eax, 0x46fb38
mov dword [0x46fb34], 2
jb 0x40bf1f
mov eax, dword [0x46fb38]
xor ecx, ecx
mov dword [0x46fb48], 0
mov word [eax], cx
push dword [0x46fb50]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x46fb00
mov edx, 0x46fb04
mov ecx, 0x40a640
call fcn.00406cc0
add esp, 4
test al, al
jne 0x40bf5c
mov esi, 2
jmp 0x40bf7c
push 0x1388
push dword [0x46fb50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 2
test eax, eax
jne 0x40bf7c
mov esi, dword [0x46fb34]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40bfbd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c0a9
push edx
push ecx
call fcn.00434e86
add esp, 8
sub esi, 0
je 0x40c08a
sub esi, 2
je 0x40c036
cmp dword [edi + 0x14], 8
jb 0x40bfd3
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x40]
push str._EAC_Service___Error__Certificate_validation_failed____s_
push eax
call fcn.004121b0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
jb 0x40bff1
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40c032
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c028
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c0ae
push edx
push ecx
call fcn.00434e86
add esp, 8
xor al, al
jmp 0x40c08c
lea eax, [ebp - 0x58]
push str._EAC_Service___Error__Certificate_validation_timed_out_
push eax
call fcn.004120c0
add esp, 8
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
jb 0x40c053
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40c08a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c080
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c0b3
push edx
push ecx
call fcn.00434e86
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.00434e45
mov esp, ebp
pop ebp
ret 8
call fcn.00439dba
call fcn.00439dba
call fcn.00439dba
int3