Function at 0x4107aa
Capabilities:
Continue service
Pause service
Start service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x4813c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi + 0xc0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov byte [esp + 0x50], 1
call edi
inc eax
test eax, eax
je 0x410a65
mov ecx, dword [esi + 0xc0]
lea ebp, [eax - 1]
push 2
push ebp
push 0x100c
push ecx
call edi
test ebp, ebp
jl 0x410a65
lea ebx, [esi + 0xa0]
push 0
lea edx, [esp + 0x18]
push ebp
push edx
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call sub.MFC42u.DLL_CString::CString
mov edi, dword [esp + 0x48]
cmp edi, 0x8603
jne 0x41084f
mov edi, 2
jmp 0x41086b
cmp edi, 0x8604
jne 0x41085e
mov edi, 3
jmp 0x41086b
cmp edi, 0x8605
jne 0x4108a3
mov edi, 4
lea eax, [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.0040fdb0
cmp eax, 1
jne 0x410a65
mov ecx, dword [0x5166dc]
lea edx, [ecx + edi*2]
mov ecx, ebx
add edi, edx
mov eax, dword [edi*4 + 0x4a1680]
push eax
push 2
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
jmp 0x410a65
cmp edi, 0x8602
je 0x410a58
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x48], ecx
je 0x410a65
cmp edi, 0x85fd
jne 0x4108db
mov eax, 0x10
jmp 0x410914
cmp edi, 0x85fe
jne 0x4108ea
mov eax, 0x20
jmp 0x410914
cmp edi, 0x85ff
je 0x41090f
cmp edi, 0x8600
je 0x41090f
mov eax, edi
sub eax, 0x8601
neg eax
sbb eax, eax
and eax, 0xf01cf
add eax, 0x30
jmp 0x410914
mov eax, 0x40
mov edx, dword [esp + 0x10]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x410a4b
cmp edi, 0x85fd
jne 0x410958
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x410a44
mov eax, dword [0x5166dc]
mov ecx, dword [eax*4 + 0x4a1644]
push ecx
jmp 0x410a3a
cmp edi, 0x85fe
jne 0x410988
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410a44
mov eax, dword [0x5166dc]
mov ecx, dword [eax*4 + 0x4a1620]
push ecx
jmp 0x410a3a
cmp edi, 0x85ff
jne 0x4109b8
lea edx, [esp + 0x1c]
push edx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410a44
mov eax, dword [0x5166dc]
mov ecx, dword [eax*4 + 0x4a1668]
push ecx
jmp 0x410a3a
cmp edi, 0x8600
jne 0x4109e1
lea edx, [esp + 0x1c]
push edx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410a44
mov eax, dword [0x5166dc]
mov ecx, dword [eax*4 + 0x4a1644]
push ecx
jmp 0x410a3a
cmp edi, 0x8601
jne 0x410a44
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410a44
mov eax, dword [0x5166dc]
mov ecx, dword [eax*4 + 0x4a1620]
push ecx
push 1
push ebp
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItemText
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x410a44
mov edx, dword [0x5166dc]
mov eax, dword [edx*4 + 0x4a1644]
push eax
push 1
push ebp
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::SetItemText
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x410a65
lea edx, [esp + 0x10]
push ebp
push edx
mov ecx, esi
call fcn.004105d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4