Function at 0x40d1c0
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x467074]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x40d1e9
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], edi
push 2
push ecx
push ecx
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40d371
cmp dword [ebx + 0x14], 8
jb 0x40d20f
mov ebx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
push 3
push 1
push 0x10030
push str.EasyAntiCheat_EOSSys
push str.EasyAntiCheat_EOSSys
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x40d2e0
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40d365
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x40d365
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.StartService_EasyAntiCheat_EOSSys_failed_with__i.
push eax
call fcn.0040e6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00401280
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x40d2c1
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d2b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d404
push edx
push ecx
call fcn.0042b435
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0x10]
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40d3ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.CreateService_failed_with__i.
push eax
call fcn.0040e6a0
mov ebx, eax
add esp, 0xc
cmp esi, ebx
je 0x40d329
mov ecx, esi
call fcn.00401220
movups xmm0, xmmword [ebx]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x40d365
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d35b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d409
push edx
push ecx
call fcn.0042b435
add esp, 8
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40d3ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.OpenSCManager_failed_with__i.
push eax
call fcn.0040e6a0
mov ebx, eax
add esp, 0xc
cmp esi, ebx
je 0x40d3b6
mov ecx, esi
call fcn.00401220
movups xmm0, xmmword [ebx]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x40d3ee
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d40e
push edx
push ecx
call fcn.0042b435
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret 8
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
int3