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

Disassembly:
push 0xffffffffffffffff
push 0x4a8568
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 0x419915
mov ecx, dword [esi + 0xc0]
lea ebp, [eax - 1]
push 2
push ebp
push 0x100c
push ecx
call edi
test ebp, ebp
jl 0x419915
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 0x4196ff
mov edi, 2
jmp 0x41971b
cmp edi, 0x8604
jne 0x41970e
mov edi, 3
jmp 0x41971b
cmp edi, 0x8605
jne 0x419753
mov edi, 4
lea eax, [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.00418b70
cmp eax, 1
jne 0x419915
mov ecx, dword [0x545f7c]
lea edx, [ecx + edi*2]
mov ecx, ebx
add edi, edx
mov eax, dword [edi*4 + 0x4ceef0]
push eax
push 2
push ebp
call fcn.00403f00
jmp 0x419915
cmp edi, 0x8602
je 0x419908
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 0x419915
cmp edi, 0x85fd
jne 0x41978b
mov eax, 0x10
jmp 0x4197c4
cmp edi, 0x85fe
jne 0x41979a
mov eax, 0x20
jmp 0x4197c4
cmp edi, 0x85ff
je 0x4197bf
cmp edi, 0x8600
je 0x4197bf
mov eax, edi
sub eax, 0x8601
neg eax
sbb eax, eax
and eax, 0xf01cf
add eax, 0x30
jmp 0x4197c4
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 0x4198fb
cmp edi, 0x85fd
jne 0x419808
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4198f4
mov eax, dword [0x545f7c]
mov ecx, dword [eax*4 + 0x4ceeb4]
push ecx
jmp 0x4198ea
cmp edi, 0x85fe
jne 0x419838
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4198f4
mov eax, dword [0x545f7c]
mov ecx, dword [eax*4 + 0x4cee90]
push ecx
jmp 0x4198ea
cmp edi, 0x85ff
jne 0x419868
lea edx, [esp + 0x1c]
push edx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4198f4
mov eax, dword [0x545f7c]
mov ecx, dword [eax*4 + 0x4ceed8]
push ecx
jmp 0x4198ea
cmp edi, 0x8600
jne 0x419891
lea edx, [esp + 0x1c]
push edx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4198f4
mov eax, dword [0x545f7c]
mov ecx, dword [eax*4 + 0x4ceeb4]
push ecx
jmp 0x4198ea
cmp edi, 0x8601
jne 0x4198f4
lea edx, [esp + 0x1c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4198f4
mov eax, dword [0x545f7c]
mov ecx, dword [eax*4 + 0x4cee90]
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 0x4198f4
mov edx, dword [0x545f7c]
mov eax, dword [edx*4 + 0x4ceeb4]
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 0x419915
lea edx, [esp + 0x10]
push ebp
push edx
mov ecx, esi
call fcn.004194c0
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