Function at 0x44e5b0
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x20
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x28], esi
jne 0x44e607
push 0x1c
push str..Service.cpp
call fcn.00407270
mov ecx, eax
call fcn.0040a520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenschManager_Error:__d_n
push 4
call fcn.0047fc80
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push edi
push 3
push 0x30
push esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
call ebx
test eax, eax
jne 0x44e6c4
mov ecx, dword [esp + 0x18]
mov eax, 0x38e38e39
mul ecx
shr edx, 3
inc edx
lea eax, [edx + edx*8]
shl eax, 2
push eax
mov edi, ecx
call fcn.004e50fe
add esp, 4
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push 3
push 0x30
push esi
mov dword [esp + 0x34], eax
call ebx
test eax, eax
jne 0x44e6be
push 0x30
push str..Service.cpp
call fcn.00407270
mov ecx, eax
call fcn.0040a520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumServicesStatus_Error:__d_n
push 4
call fcn.0047fc80
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x44e6b4
push eax
call fcn.004e50f9
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
mov ebp, dword [esp + 0x14]
xor edi, edi
mov edx, dword [esp + 0x10]
push edx
push edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.0044e200
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jbe 0x44e7f5
lea ebx, [ebp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
jmp 0x44e700
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
lea esp, [esp]
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi]
jae 0x44e711
mov ebp, dword [edi + 4]
add ebp, dword [esp + 0x20]
jmp 0x44e713
xor ebp, ebp
mov edi, dword [ebx - 8]
mov eax, edi
lea edx, [eax + 1]
jmp 0x44e720
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44e720
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44e73c
push eax
call fcn.004e50f9
add esp, 4
push esi
mov dword [ebp + 8], esi
call fcn.004e50fe
add esp, 4
test edi, edi
mov dword [ebp + 0xc], eax
je 0x44e763
mov ecx, esi
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx - 0xc]
mov eax, ebx
lea edx, [eax + 1]
jmp 0x44e770
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44e770
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ebp + 4]
test eax, eax
je 0x44e78c
push eax
call fcn.004e50f9
add esp, 4
push esi
mov dword [ebp], esi
call fcn.004e50fe
add esp, 4
test ebx, ebx
mov dword [ebp + 4], eax
je 0x44e7b3
mov ecx, esi
mov edi, eax
mov eax, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
push ebp
push ebx
mov dword [ebp + 0x1c], ecx
call fcn.0044e2b0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add esp, 8
inc eax
add edi, 0x60
add esi, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
jb 0x44e6f4
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
je 0x44e809
push ebp
call fcn.004e50f9
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x20
ret