Function at 0x40a220
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x40c4c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
xor ebx, ebx
push ebp
push ebx
push 0x4115a8
push 4
mov ebp, ecx
push str.config.svc
push 0x411598
push ebx
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x40]
mov dword [esp + 0x244], ebx
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x40a1c6
push esi
push edi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x48]
push eax
mov byte [esp + 0x250], 1
call sub.MFC42.DLL_CFileDialog::GetPathName
mov eax, dword [eax]
push ebx
push 0x1001
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x258], 2
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 1
call fcn.0040adee
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push ecx
mov ecx, dword [ebp + 0x68]
lea eax, [esp + 0x1c]
push edx
lea esi, [ebp + 0x68]
push eax
push ebx
push ebx
push 3
push 0x30
push ecx
mov byte [esp + 0x26c], 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call edi
mov edx, dword [esp + 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x38], eax
push eax
mov eax, dword [esi]
push 3
push 0x30
push eax
mov dword [esp + 0x3c], ebx
call edi
cmp eax, ebx
jne 0x40a0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.00408bd0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jbe 0x40a16b
mov edi, dword [esp + 0x28]
mov ecx, dword [edi]
push 0x80000000
push ecx
mov ecx, esi
call fcn.00403170
cmp eax, ebx
je 0x40a0e8
push eax
mov ecx, ebp
call fcn.00408bd0
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
push ebx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.00403260
cmp eax, ebx
je 0x40a108
push eax
mov ecx, ebp
call fcn.00408bd0
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4111dc
lea ecx, [esp + 0x14]
call fcn.0040ae8a
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
push 0x4115dc
lea ecx, [esp + 0x14]
call fcn.0040ae8a
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
mov ecx, esi
call fcn.004031c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
inc eax
add edi, 0x24
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x40a0cd
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::Close
push 0x30
push 0x4110d0
push 0x4115c4
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 3
call fcn.0040adee
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 1
call fcn.0040adee
lea ecx, [esp + 0x34]
mov byte [esp + 0x24c], bl
call fcn.0040aef6
pop edi
pop esi
lea ecx, [esp + 0xf0]
mov dword [esp + 0x244], 5
call fcn.0040adee
lea ecx, [esp + 0x40]
mov dword [esp + 0x244], 0xffffffff
call fcn.0040ad9a
mov ecx, dword [esp + 0x23c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret
jmp 0x409f80