Function at 0x413ae0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ee18
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x469644]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov edi, 7
xor ebx, ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [esp + 0x38], esp
mov word [esi], ax
push 0x18
mov eax, str.Find_own_windows_service
call fcn.00404210
call fcn.00410a60
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 5
push ebx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, ebx
jne 0x413bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004063a0
push eax
mov edx, str.OpenSCManager_failed__ErrorCode:
lea eax, [esp + 0x3c]
mov dword [esp + 0x94], ebx
call fcn.00404a00
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov eax, 0x45d75c
mov byte [esp + 0xa8], 1
call fcn.0040f880
add esp, 4
call fcn.00410b20
mov esi, 8
add esp, 0x1c
cmp dword [esp + 0x44], esi
jb 0x413bd1
mov edx, dword [esp + 0x30]
push edx
call fcn.00426e9f
add esp, 4
xor eax, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
cmp dword [esp + 0x60], esi
jb 0x413bf3
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00426e9f
add esp, 4
xor al, al
jmp 0x413d7f
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 3
push 0x30
push ebx
push esi
mov byte [esp + 0x3b], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp ecx, eax
jbe 0x413c68
lea eax, [esp + 0x30]
call fcn.00414580
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub eax, ecx
add eax, edi
je 0x413c5d
push eax
push 0
push ecx
call fcn.0042ec60
add esp, 0xc
lea eax, [ebx + edi]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
sub eax, ebx
push eax
push ebx
push 3
push 0x30
push 0
push esi
mov dword [esp + 0xb0], 2
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
jbe 0x413d30
mov esi, ebx
mov dword [esp + 0x20], ebx
jmp 0x413cb0
mov eax, dword [esp + 0x2c]
mov ecx, 0xb
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x70], eax
jne 0x413d12
mov eax, dword [esp + 0x4c]
mov ecx, eax
mov byte [esp + 0x13], 1
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x413cd3
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x46c6c8
call fcn.00404210
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push str.Service_found:
push ecx
mov ebx, esi
call fcn.00404920
add esp, 8
call fcn.00410b20
mov ebx, dword [esp + 0x4c]
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc eax
add esi, 0x2c
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
cmp eax, dword [esp + 0x14]
jb 0x413cb0
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [esp + 0x13], 0
jne 0x413d6e
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x11
mov eax, str.Service_not_found
mov word [esi], dx
call fcn.00404210
call fcn.00410b20
add esp, 0x1c
test ebx, ebx
je 0x413d7b
push ebx
call fcn.00426e9f
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0042575d
mov esp, ebp
pop ebp
ret