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

Disassembly:
push 0xffffffffffffffff
push 0x4a3128
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_5
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call sub.MFC42u.DLL_CString::CString_5
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 0x416b45
mov ecx, dword [esi + 0xc0]
lea ebp, [eax - 1]
push 2
push ebp
push 0x100c
push ecx
call edi
test ebp, ebp
jl 0x416b45
lea ebx, [esi + 0xa0]
push 0
lea edx, [esp + 0x18]
push ebp
push edx
mov ecx, ebx
call fcn.00404170
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 0x41692f
mov edi, 2
jmp 0x41694b
cmp edi, 0x8604
jne 0x41693e
mov edi, 3
jmp 0x41694b
cmp edi, 0x8605
jne 0x416983
mov edi, 4
lea eax, [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.00415e90
cmp eax, 1
jne 0x416b45
mov ecx, dword [0x5401c4]
lea edx, [ecx + edi*2]
mov ecx, ebx
add edi, edx
mov eax, dword [edi*4 + 0x4c92b0]
push eax
push 2
push ebp
call fcn.00403f00
jmp 0x416b45
cmp edi, 0x8602
je 0x416b38
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 0x416b45
cmp edi, 0x85fd
jne 0x4169bb
mov eax, 0x10
jmp 0x4169f4
cmp edi, 0x85fe
jne 0x4169ca
mov eax, 0x20
jmp 0x4169f4
cmp edi, 0x85ff
je 0x4169ef
cmp edi, 0x8600
je 0x4169ef
mov eax, edi
sub eax, 0x8601
neg eax
sbb eax, eax
and eax, 0xf01cf
add eax, 0x30
jmp 0x4169f4
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 0x416b2b
cmp edi, 0x85fd
jne 0x416a38
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x416b24
mov eax, dword [0x5401c4]
mov ecx, dword [eax*4 + 0x4c9274]
push ecx
jmp 0x416b1a
cmp edi, 0x85fe
jne 0x416a68
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x416b24
mov eax, dword [0x5401c4]
mov ecx, dword [eax*4 + 0x4c9250]
push ecx
jmp 0x416b1a
cmp edi, 0x85ff
jne 0x416a98
lea edx, [esp + 0x1c]
push edx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x416b24
mov eax, dword [0x5401c4]
mov ecx, dword [eax*4 + 0x4c9298]
push ecx
jmp 0x416b1a
cmp edi, 0x8600
jne 0x416ac1
lea edx, [esp + 0x1c]
push edx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x416b24
mov eax, dword [0x5401c4]
mov ecx, dword [eax*4 + 0x4c9274]
push ecx
jmp 0x416b1a
cmp edi, 0x8601
jne 0x416b24
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x416b24
mov eax, dword [0x5401c4]
mov ecx, dword [eax*4 + 0x4c9250]
push ecx
push 1
push ebp
mov ecx, ebx
call fcn.00403f00
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 0x416b24
mov edx, dword [0x5401c4]
mov eax, dword [edx*4 + 0x4c9274]
push eax
push 1
push ebp
mov ecx, ebx
call fcn.00403f00
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x416b45
lea edx, [esp + 0x10]
push ebp
push edx
mov ecx, esi
call fcn.004166b0
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