Function at 0x10020760
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2f1d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d01c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 4
push 0
push 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x100207c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_open_Service_Control_Manager___GetServiceModules:__lu_n
push 2
push str.UltimateAnticheat.log
call fcn.10010d00
add esp, 0x10
xor eax, eax
jmp 0x10020a35
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
lea ecx, [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 3
push 0x30
push 0
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10020824
call esi
cmp eax, 0xea
je 0x10020824
call esi
push eax
push str.Failed_to_enumerate_services___GetServiceModules:__lu_n
push 2
push str.UltimateAnticheat.log
call fcn.10010d00
add esp, 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x10020a35
push dword [ebp - 0x1c]
call fcn.10075339
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1002085a
push str.Memory_allocation_failed___GetServiceModules
push 2
push str.UltimateAnticheat.log
call fcn.10010bd0
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x10020a35
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x1c]
push eax
push 3
push 0x30
push 0
push dword [ebp - 0x20]
call edi
test eax, eax
jne 0x100208ab
call esi
push eax
push str.Failed_to_enumerate_services___GetServiceModules:__lu_n
push 2
push str.UltimateAnticheat.log
call fcn.10010d00
mov edi, dword [ebp - 0x24]
push edi
call fcn.100558e6
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x10020a35
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
jbe 0x10020a1c
mov edi, dword [ebp - 0x24]
add edi, 4
mov dword [ebp - 0x30], edi
push 0x38
call fcn.1004799d
mov esi, eax
add esp, 4
test esi, esi
je 0x10020946
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 7
jmp 0x10020948
xor esi, esi
mov eax, dword [edi + 0x20]
mov dword [esi + 0x30], eax
mov edx, dword [edi]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020960
sub ecx, dword [ebp - 0x28]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.100141e0
mov ecx, dword [edi - 4]
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x28], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10020984
sub edx, dword [ebp - 0x28]
sar edx, 1
push edx
push ecx
lea ecx, [esi + 0x18]
call fcn.100141e0
mov eax, dword [edi + 8]
sub eax, 1
je 0x100209b4
sub eax, 3
je 0x10020a51
sub eax, 3
jne 0x100209b8
mov byte [esi + 0x34], 0
cmp dword [ebx + 4], 0x15555555
mov edi, dword [ebx]
je 0x10020a5a
mov dword [ebp - 0x38], ebx
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
call fcn.1004799d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 0
mov dword [eax + 8], esi
inc dword [ebx + 4]
mov ecx, dword [edi + 4]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [edi + 4], eax
mov edi, dword [ebp - 0x30]
mov dword [ecx], eax
add edi, 0x2c
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x14]
jb 0x100208c5
push dword [ebp - 0x24]
call fcn.100558e6
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100479e0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x34], 1
jmp 0x100209b8
push str.list_too_long
call fcn.1002c5f2
int3