Function at 0x406d00
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x40bfb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], ebp
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x6c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
mov eax, dword [edi + 0x20]
push 0x1009
push eax
mov byte [esp + 0x74], 3
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0x68]
lea eax, [esp + 0x24]
push edx
push eax
push esi
push esi
push 3
push 0x30
push ecx
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov edx, dword [esp + 0x20]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x40], eax
push eax
mov eax, dword [ebp + 0x68]
push 3
push 0x30
push eax
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
cmp eax, esi
jne 0x406de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.00408bd0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], esi
cmp eax, esi
jbe 0x4070a2
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x18]
push 0x80000000
push ecx
lea ecx, [edx + 0x68]
call fcn.00403170
test eax, eax
je 0x406e1d
mov ecx, dword [esp + 0x18]
push eax
call fcn.00408bd0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
add ecx, 0x68
call fcn.004031d0
test eax, eax
je 0x406e3e
mov ecx, dword [esp + 0x18]
push eax
call fcn.00408bd0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
add ecx, 0x68
call fcn.00403260
test eax, eax
je 0x406e68
mov ecx, dword [esp + 0x18]
push eax
call fcn.00408bd0
mov edx, dword [esp + 0x18]
lea ecx, [edx + 0x68]
call fcn.004031c0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
mov eax, dword [ebp + 4]
push 0x411268
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x407045
mov edx, dword [esp + 0x70]
push 0x411160
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406ee8
mov eax, dword [esp + 0x10]
push 0x411160
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x406f7a
mov eax, dword [esp + 0x70]
push 0x411158
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406f1a
mov ecx, dword [esp + 0x10]
push 0x411158
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x406fe1
mov ecx, dword [esp + 0x70]
push 0x411280
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406f4c
mov edx, dword [esp + 0x10]
push 0x411648
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x407045
mov edx, dword [esp + 0x70]
push 0x411180
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406fb3
mov eax, dword [esp + 0x14]
push 0x411180
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406fb3
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x1007
push edx
call ebx
mov eax, dword [ebp]
mov ecx, edi
push eax
push 1
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x10]
push ecx
push 2
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov edx, dword [esp + 0x14]
push edx
jmp 0x407079
mov eax, dword [esp + 0x70]
push 0x411178
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x407017
mov ecx, dword [esp + 0x14]
push 0x411178
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x407017
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x34]
push edx
push 0
push 0x1007
push eax
call ebx
mov ecx, dword [ebp]
push ecx
push 1
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
push 2
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x14]
push eax
jmp 0x407079
mov ecx, dword [esp + 0x70]
push 0x411170
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x407084
mov edx, dword [esp + 0x14]
push 0x411170
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x407084
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x34]
push eax
push 0
push 0x1007
push ecx
call ebx
mov edx, dword [ebp]
mov ecx, edi
push edx
push 1
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
push 2
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x14]
push ecx
push 3
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
inc esi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
inc eax
add ebp, 0x24
cmp eax, ecx
mov dword [esp + 0x6c], eax
jb 0x406dfa
mov ebp, dword [esp + 0x18]
xor esi, esi
mov eax, dword [ebp + 0x9c]
lea edx, [ebp + 0x7c]
push 0x408700
push edx
push 0x1030
push eax
call ebx
mov ecx, dword [ebp + 0x9c]
push esi
push esi
push 0x1004
push ecx
call ebx
mov edx, dword [esp + 0x70]
push edx
push eax
lea eax, [esp + 0x30]
push 0x4112c0
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
add esp, 0x10
push ecx
push 0x3f5
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 2
call fcn.0040adee
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call fcn.0040adee
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 0
call fcn.0040adee
lea ecx, [esp + 0x70]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040adee
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8