Function at 0x1007498
Capabilities:
Enumerate services

Disassembly:
mov eax, 0x101adc0
call fcn.0101a4c8
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 0x10078ec
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 0x10078e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10078e2
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 0x10078d9
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 0x10078d9
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.010164d4
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], ebx
jbe 0x1007871
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
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 0x1007647
add edi, 0x24
jmp 0x1007859
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
mov ecx, esi
call fcn.01006af4
test eax, eax
push dword [ebp - 0x10]
jne 0x1007663
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1007681
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x50], 4
jne 0x1007689
push dword [edi]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01006810
test eax, eax
je 0x1007689
add edi, 0x24
jmp 0x1007856
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.01006fc7
cmp dword [esi + 0xb0], 0
je 0x10076ef
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.01019c28
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_CString::MakeLower
push 0x1001ee4
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
je 0x10076ea
add edi, 0x24
call sub.MFC42u.DLL_CString::CString
jmp 0x100784a
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 0x100771b
push dword [edi + 4]
mov ecx, eax
push dword [ebp - 0x18]
push dword [ebp - 0x50]
push 0
push dword [edi]
call fcn.0100695d
mov dword [ebp - 0x10], eax
jmp 0x100771f
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.01006b91
test eax, eax
je 0x1007782
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x80], eax
jmp 0x1007789
mov dword [ebp - 0x80], 0x1001b2c
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 0x1007813
dec eax
je 0x100780e
dec eax
je 0x1007809
dec eax
je 0x1007804
dec eax
je 0x10077ff
dec eax
je 0x10077fa
dec eax
jne 0x1007819
mov eax, dword [ebp - 0x40]
jmp 0x1007816
mov eax, dword [ebp - 0x58]
jmp 0x1007816
mov eax, dword [ebp - 0x28]
jmp 0x1007816
mov eax, dword [ebp - 0x2c]
jmp 0x1007816
mov eax, dword [ebp - 0x34]
jmp 0x1007816
mov eax, dword [ebp - 0x3c]
jmp 0x1007816
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 0x100761c
lea ecx, [ebp - 0x1c]
call fcn.01005d1a
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