Function at 0x44c9f0
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 0x44ca47
push 0x1c
push str..Service.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenschManager_Error:__d_n
push 4
call fcn.0047dea0
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 0x44cb04
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.004df1be
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 0x44cafe
push 0x30
push str..Service.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumServicesStatus_Error:__d_n
push 4
call fcn.0047dea0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x44caf4
push eax
call fcn.004df1b9
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.0044c640
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jbe 0x44cc35
lea ebx, [ebp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
jmp 0x44cb40
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
lea esp, [esp]
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi]
jae 0x44cb51
mov ebp, dword [edi + 4]
add ebp, dword [esp + 0x20]
jmp 0x44cb53
xor ebp, ebp
mov edi, dword [ebx - 8]
mov eax, edi
lea edx, [eax + 1]
jmp 0x44cb60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44cb60
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44cb7c
push eax
call fcn.004df1b9
add esp, 4
push esi
mov dword [ebp + 8], esi
call fcn.004df1be
add esp, 4
test edi, edi
mov dword [ebp + 0xc], eax
je 0x44cba3
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 0x44cbb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44cbb0
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ebp + 4]
test eax, eax
je 0x44cbcc
push eax
call fcn.004df1b9
add esp, 4
push esi
mov dword [ebp], esi
call fcn.004df1be
add esp, 4
test ebx, ebx
mov dword [ebp + 4], eax
je 0x44cbf3
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.0044c6f0
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 0x44cb34
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
je 0x44cc49
push ebp
call fcn.004df1b9
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x20
ret