Function at 0x1007c93
Capabilities:
Enumerate services

Disassembly:
mov eax, 0x101d3e8
call fcn.0101caf8
sub esp, 0x88
push ebx
push esi
push 4
xor ebx, ebx
push ebx
push ebx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x4c], eax
je 0x10080e7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push ebx
push 3
push 0x30
push eax
mov dword [ebp - 0x38], ebx
call edi
test eax, eax
jne 0x10080dd
call dword [0x10010d0]
cmp eax, 0xea
jne 0x10080dd
mov eax, dword [ebp - 0x5c]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], ebx
call sub.MFC42u.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp - 0x60], eax
je 0x10080d4
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push dword [ebp - 0x1c]
push eax
push 3
push 0x30
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x10080d4
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString_1
push 0x74
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::LoadStringW
push 0x75
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CString::LoadStringW
push 0x76
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::LoadStringW
push 0x77
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CString::LoadStringW
push 0x78
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CString::LoadStringW
push 0x79
lea ecx, [ebp - 0x58]
call sub.MFC42u.DLL_CString::LoadStringW
push 0x7a
lea ecx, [ebp - 0x40]
call sub.MFC42u.DLL_CString::LoadStringW
push 0x80
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::LoadStringW
mov dword [ebp - 0x1c], ebx
lea ecx, [esi + 0x90]
mov eax, dword [ecx]
mov byte [ebp - 4], 8
call dword [eax + 0x14]
push eax
call fcn.01018b1d
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], ebx
jbe 0x100806c
mov ebx, dword [fcn.01001580]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
push 1
push dword [edi]
mov byte [ebp - 4], 9
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
jne 0x1007e42
add edi, 0x24
jmp 0x1008054
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
mov ecx, esi
call fcn.010072ef
test eax, eax
push dword [ebp - 0x10]
jne 0x1007e5e
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1007e7c
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x50], 4
jne 0x1007e84
push dword [edi]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01007002
test eax, eax
je 0x1007e84
add edi, 0x24
jmp 0x1008051
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.010077c2
cmp dword [esi + 0xb0], 0
je 0x1007eea
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0101c24c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_CString::MakeLower
push 0x1001ef4
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
je 0x1007ee5
add edi, 0x24
call sub.MFC42u.DLL_CString::CString
jmp 0x1008045
call sub.MFC42u.DLL_CString::CString
push 0x1c
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 0xc
je 0x1007f16
push dword [edi + 4]
mov ecx, eax
push dword [ebp - 0x18]
push dword [ebp - 0x50]
push 0
push dword [edi]
call fcn.01007158
mov dword [ebp - 0x10], eax
jmp 0x1007f1a
and dword [ebp - 0x10], 0
mov eax, dword [edi + 4]
and dword [ebp - 0x8c], 0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x48]
inc dword [ebp - 0x48]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104d
push dword [esi + 0x9c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x94], 5
call ebx
push dword [ebp - 0x74]
mov ecx, esi
mov dword [ebp - 0x94], 1
call fcn.0100738c
test eax, eax
je 0x1007f7d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x80], eax
jmp 0x1007f84
mov dword [ebp - 0x80], 0x1001b3c
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x80]
add ecx, 0x14
mov dword [ebp - 0x8c], 1
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104c
push dword [esi + 0x9c]
call ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104c
push dword [esi + 0x9c]
mov dword [ebp - 0x8c], 2
call ebx
mov eax, dword [edi + 0xc]
dec eax
je 0x100800e
dec eax
je 0x1008009
dec eax
je 0x1008004
dec eax
je 0x1007fff
dec eax
je 0x1007ffa
dec eax
je 0x1007ff5
dec eax
jne 0x1008014
mov eax, dword [ebp - 0x40]
jmp 0x1008011
mov eax, dword [ebp - 0x58]
jmp 0x1008011
mov eax, dword [ebp - 0x28]
jmp 0x1008011
mov eax, dword [ebp - 0x2c]
jmp 0x1008011
mov eax, dword [ebp - 0x34]
jmp 0x1008011
mov eax, dword [ebp - 0x3c]
jmp 0x1008011
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x80]
add ecx, 0x18
mov dword [ebp - 0x8c], 3
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104c
push dword [esi + 0x9c]
call ebx
add edi, 0x24
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x54]
jb 0x1007e17
lea ecx, [ebp - 0x1c]
call fcn.0100650c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x60]
call sub.MFC42u.DLL_operatordelete
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret