Function at 0x103a101
Capabilities:
Enumerate services
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
xor ebx, ebx
mov edi, 0x104
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
mov dword [0x109ab90], ebx
call esi
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x103a13a
push 0x100df78
jmp 0x103a14c
push dword [ebp - 0x14]
call esi
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x103a159
push 0x100df44
call fcn.01071aad
push 8
pop eax
jmp 0x103a48f
cmp dword [0x10bf570], ebx
jne 0x103a168
call fcn.010820de
jmp 0x103a16d
call fcn.010830ee
lea eax, [ebp - 0x3c]
push eax
push ebx
push 0x100b6f0
push dword [ebp + 0xc]
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
test eax, eax
je 0x103a1b6
mov esi, dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
jmp 0x103a1a4
push ebx
push dword [ebp - 8]
call fcn.01082e8c
lea eax, [ebp - 0x3c]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
test eax, eax
je 0x103a1b6
push ebx
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
push ebx
push ebx
push ebx
push eax
call esi
test eax, eax
jne 0x103a18c
mov eax, dword [0x10bd0c8]
cmp eax, ebx
je 0x103a3f1
push 0xfffa
mov esi, 0x1106960
push esi
push 0xf0b2
push ebx
mov dword [ebp - 0x18], eax
call fcn.01031fb1
push 0xd
push esi
call fcn.01046c95
push 8
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x103a211
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x100df18
call fcn.01071ac0
pop ecx
pop ecx
call esi
jmp 0x103a48f
cmp dword [ebp - 0x18], ebx
je 0x103a3f1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp byte [eax], 0x23
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], ebx
jne 0x103a235
inc eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 8], eax
push 0xe0000000
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0xc], esi
jne 0x103a268
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100def0
mov dword [ebp - 4], eax
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x103a3c4
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x103a3d7
mov eax, dword [ebp - 0x54]
cmp eax, 1
mov dword [ebp - 0x2c], eax
je 0x103a3c4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x103a36e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
jne 0x103a35a
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
je 0x103a347
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push 1
push dword [ebp + 0xc]
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x103a371
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
jbe 0x103a371
mov esi, edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x104
push dword [esi]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameA]
test eax, eax
jne 0x103a329
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x103a31f
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push dword [esi]
call fcn.010748d7
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add esi, 0x24
cmp eax, dword [ebp - 0x24]
jb 0x103a2fd
jmp 0x103a371
push 0x100dec0
call fcn.01071aad
mov dword [ebp - 4], 8
jmp 0x103a371
push eax
push 0x100de8c
call fcn.01071ac0
pop ecx
pop ecx
call edi
mov dword [ebp - 4], eax
jmp 0x103a371
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x104
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameA]
test eax, eax
jne 0x103a3a1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x103a397
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.010748d7
cmp dword [ebp - 4], ebx
jne 0x103a456
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x103a21a
jmp 0x103a3f1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 4], eax
call esi
push eax
push 0x100de5c
call fcn.01071ac0
pop ecx
pop ecx
cmp dword [0x109a088], ebx
je 0x103a453
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.01052dd3
test eax, eax
jne 0x103a411
mov dword [ebp - 4], 0x4c7
jmp 0x103a456
mov esi, dword [0x109a088]
call fcn.0104fc31
jmp 0x103a43e
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.01034723
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x103a444
mov esi, dword [esi + 0x14]
push 1
call fcn.01046c4d
cmp esi, ebx
jne 0x103a41e
jmp 0x103a456
push eax
push 0x100de30
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x103a456
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x10], ebx
je 0x103a464
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
cmp eax, ebx
mov esi, dword [sym.imp.msvcrt.dll_free]
je 0x103a47a
test al, 1
je 0x103a476
dec eax
push eax
call esi
pop ecx
push dword [ebp - 0xc]
call esi
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc