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

Disassembly:
push 0xffffffffffffffff
push 0x47d5e8
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 0x410925
mov ecx, dword [esi + 0xc0]
lea ebp, [eax - 1]
push 2
push ebp
push 0x100c
push ecx
call edi
test ebp, ebp
jl 0x410925
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 0x41070f
mov edi, 2
jmp 0x41072b
cmp edi, 0x8604
jne 0x41071e
mov edi, 3
jmp 0x41072b
cmp edi, 0x8605
jne 0x410763
mov edi, 4
lea eax, [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.0040fc70
cmp eax, 1
jne 0x410925
mov ecx, dword [0x50cb5c]
lea edx, [ecx + edi*2]
mov ecx, ebx
add edi, edx
mov eax, dword [edi*4 + 0x49c680]
push eax
push 2
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
jmp 0x410925
cmp edi, 0x8602
je 0x410918
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 0x410925
cmp edi, 0x85fd
jne 0x41079b
mov eax, 0x10
jmp 0x4107d4
cmp edi, 0x85fe
jne 0x4107aa
mov eax, 0x20
jmp 0x4107d4
cmp edi, 0x85ff
je 0x4107cf
cmp edi, 0x8600
je 0x4107cf
mov eax, edi
sub eax, 0x8601
neg eax
sbb eax, eax
and eax, 0xf01cf
add eax, 0x30
jmp 0x4107d4
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 0x41090b
cmp edi, 0x85fd
jne 0x410818
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x410904
mov eax, dword [0x50cb5c]
mov ecx, dword [eax*4 + 0x49c644]
push ecx
jmp 0x4108fa
cmp edi, 0x85fe
jne 0x410848
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410904
mov eax, dword [0x50cb5c]
mov ecx, dword [eax*4 + 0x49c620]
push ecx
jmp 0x4108fa
cmp edi, 0x85ff
jne 0x410878
lea edx, [esp + 0x1c]
push edx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410904
mov eax, dword [0x50cb5c]
mov ecx, dword [eax*4 + 0x49c668]
push ecx
jmp 0x4108fa
cmp edi, 0x8600
jne 0x4108a1
lea edx, [esp + 0x1c]
push edx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410904
mov eax, dword [0x50cb5c]
mov ecx, dword [eax*4 + 0x49c644]
push ecx
jmp 0x4108fa
cmp edi, 0x8601
jne 0x410904
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410904
mov eax, dword [0x50cb5c]
mov ecx, dword [eax*4 + 0x49c620]
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 0x410904
mov edx, dword [0x50cb5c]
mov eax, dword [edx*4 + 0x49c644]
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 0x410925
lea edx, [esp + 0x10]
push ebp
push edx
mov ecx, esi
call fcn.00410490
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