Function at 0x40a450
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x40c5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
push 0x411648
mov esi, ecx
push 0x3f9
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x38]
mov dword [esp + 0x88], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x88], 2
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x924]
push 1
lea ecx, [esp + 0x44]
lea edi, [esi + 0x7c]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x94], 3
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 4
call fcn.0040ae78
push eax
lea ecx, [esp + 0x28]
call fcn.0040ae78
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 3
call fcn.0040adee
mov edx, dword [esi + 0x924]
push 2
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 5
call fcn.0040ae78
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 3
call fcn.0040adee
mov ecx, dword [esi + 0x924]
push 3
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c], 6
call fcn.0040ae78
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 3
call fcn.0040adee
mov eax, dword [esp + 0x34]
lea edi, [esi + 0x68]
push 0x80000008
push eax
mov ecx, edi
call fcn.00403170
test eax, eax
je 0x40a5a0
push eax
mov ecx, esi
call fcn.00408bd0
lea ecx, [esp + 0x3c]
push ecx
push 0
mov ecx, edi
call fcn.004031d0
test eax, eax
je 0x40a5ba
push eax
mov ecx, esi
call fcn.00408bd0
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x411160
push edx
call ebp
add esp, 8
mov ebx, 9
test eax, eax
jne 0x40a5e6
mov eax, dword [esp + 0x3c]
and eax, 2
cmp al, 2
jne 0x40a5e6
push ebx
jmp 0x40a65f
mov ecx, dword [esp + 0x14]
push 0x411160
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40a605
mov edx, dword [esp + 0x3c]
and edx, 1
cmp dl, 1
jne 0x40a65d
mov eax, dword [esp + 0x14]
push 0x411160
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40a61c
push 1
jmp 0x40a65f
mov ecx, dword [esp + 0x14]
push 0x411158
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40a633
push 0x65
jmp 0x40a65f
mov edx, dword [esp + 0x14]
push 0x411648
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40a65d
mov eax, dword [esp + 0x38]
push 0x411170
push eax
call ebp
add esp, 8
test eax, eax
je 0x40a65d
push 0x64
jmp 0x40a65f
push 0
mov ecx, esi
call fcn.004080d0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 8
push ecx
mov ecx, edi
call fcn.00403330
test eax, eax
je 0x40a6a0
push eax
mov ecx, esi
call fcn.00408bd0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push 0x41162c
push eax
call sub.MFC42.DLL_operator_1
push 0x411620
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0xa
call fcn.0040ae78
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], bl
call fcn.0040adee
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], 8
call fcn.0040adee
mov edi, 0x66
mov ebx, 0xb
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
push 0x4111dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], bl
call fcn.0040ae78
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 8
call fcn.0040adee
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
je 0x40a78d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
inc edi
cmp edi, 0xc2
jle 0x40a708
jmp 0x40a8a8
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
push 0x41161c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
push 1
je 0x40a829
mov edx, dword [esi + 0x90c]
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov eax, dword [eax + 4]
push 3
push 0x8015
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [esp + 0x10]
push 0x4111dc
mov edi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
sub edi, eax
lea ecx, [esp + 0x10]
sub edi, 0xc
push edi
push 0x4111dc
call sub.MFC42.DLL_CString::Find_1
inc eax
lea edx, [esp + 0x44]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 0xc
call fcn.0040ae78
mov byte [esp + 0x88], 8
lea ecx, [esp + 0x40]
jmp 0x40a8a3
mov eax, dword [esi + 0x90c]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov ecx, dword [eax + 4]
push 0
push 0x8015
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [esp + 0x10]
push 0x4111dc
lea ecx, [esp + 0x14]
mov edi, dword [edx - 8]
call sub.MFC42.DLL_CString::Find_1
sub edi, eax
lea ecx, [esp + 0x10]
sub edi, ebx
push edi
push 0x4111dc
call sub.MFC42.DLL_CString::Find_1
inc eax
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 0xd
call fcn.0040ae78
mov byte [esp + 0x88], 8
lea ecx, [esp + 0x40]
call fcn.0040adee
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
push 0x3f5
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 0xe
call sub.MFC42.DLL_CString::CString_1
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x28]
push eax
mov bl, 0xf
push ecx
push 0
lea ecx, [esi + 0x68]
mov byte [esp + 0x9c], bl
call fcn.00403260
test eax, eax
je 0x40a915
push eax
mov ecx, esi
call fcn.00408bd0
lea edx, [esp + 0x20]
lea eax, [esp + 0x44]
push edx
push 0x411610
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 0x10
call fcn.0040ae78
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], bl
call fcn.0040adee
mov ecx, dword [esp + 0x20]
push ecx
push 0x3f9
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [esi + 0x6c]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
lea edx, [esp + 0x30]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 3
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x28]
mov ebx, eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esi + 0x6c]
push ecx
push edx
push ebx
push 3
push eax
mov dword [esp + 0x60], ebx
call edi
xor ebp, ebp
cmp eax, ebp
jne 0x40a9be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00408bd0
mov ecx, dword [esi + 0x84c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff0000
push ebp
push 0x1101
push ecx
call edi
mov eax, dword [esi + 0x84c]
lea edx, [esp + 0x4c]
push edx
push ebp
push 0x1100
push eax
mov dword [esp + 0x5c], 0xffff0000
mov dword [esp + 0x60], 0xffff0002
mov dword [esp + 0x64], 0x27
mov dword [esp + 0x74], 0x4115f8
mov dword [esp + 0x88], ebp
mov dword [esp + 0x7c], 4
mov dword [esp + 0x80], 3
call edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x40aa78
add ebx, 4
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x4c]
mov eax, dword [edx]
mov edx, dword [esi + 0x84c]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x74], eax
call edi
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x30]
inc ebp
add ecx, 0x24
cmp ebp, eax
mov dword [esp + 0x2c], ecx
jb 0x40aa39
jmp 0x40aa7c
mov ebx, dword [esp + 0x48]
mov eax, dword [esi + 0x84c]
push ebx
push 2
push 0x1102
push eax
call edi
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 0x84c]
push ecx
push 2
push 0x1102
push edx
call edi
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ebp, [esi + 0x68]
mov ecx, ebp
call fcn.004031c0
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 1
jle 0x40aaf5
push 0x80000000
push eax
mov ecx, ebp
call fcn.00403170
test eax, eax
jne 0x40aaf5
lea ecx, [esp + 0x18]
push eax
push ecx
push eax
push eax
push eax
mov ecx, ebp
call fcn.00403260
test eax, eax
je 0x40aaee
push eax
mov ecx, esi
call fcn.00408bd0
mov ecx, ebp
call fcn.004031c0
mov eax, dword [esi + 0x84c]
lea edx, [esp + 0x4c]
push edx
push 0
push 0x1100
push eax
mov dword [esp + 0x5c], 0xffff0000
mov dword [esp + 0x60], 0xffff0001
mov dword [esp + 0x74], 0x4115e0
call edi
mov ebp, eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 1
jle 0x40ab5a
mov dword [esp + 0x4c], ebp
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x84c]
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x74], eax
call edi
mov ebx, eax
mov eax, dword [esi + 0x84c]
push ebx
push 2
push 0x1102
push eax
call edi
mov ecx, dword [esi + 0x84c]
push ebp
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 0xe
call fcn.0040adee
lea ecx, [esp + 0x20]
mov byte [esp + 0x88], 8
call fcn.0040adee
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 7
call fcn.0040adee
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 3
call fcn.0040adee
lea ecx, [esp + 0x24]
mov byte [esp + 0x88], 2
call fcn.0040adee
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 1
call fcn.0040adee
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], 0
call fcn.0040adee
lea ecx, [esp + 0x14]
mov dword [esp + 0x88], 0xffffffff
call fcn.0040adee
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret