Function at 0x46ff90
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591cfe
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x67706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x34
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x46ffdc
lea ecx, [ebp - 0x50]
call fcn.0046e600
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0
test eax, eax
jne 0x46ffee
xor bl, bl
jmp 0x47027a
push 0x34
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x58]
call fcn.0046e8b0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x470261
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x54]
push eax
push 0x24
lea eax, [ebp - 0x34]
mov dword [ebp - 0x54], 0
push eax
push 0
push esi
call ebx
test eax, eax
jne 0x470039
call fcn.0046eb80
test al, al
je 0x470261
cmp dword [ebp - 0x30], 1
je 0x47024f
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x470163
sub esp, 8
lea ecx, [ebp - 0x108]
call fcn.004498fc
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
lea ecx, [ebp - 0xf8]
call fcn.0044c0e3
lea eax, [ebp - 0xf8]
push 0x6655a0
push eax
call fcn.0044b527
add esp, 8
call edi
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.0045c6db
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf8]
call fcn.00459c70
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x4700ed
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4700e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470298
push edx
push ecx
call fcn.00487ad0
add esp, 8
lea eax, [ebp - 0xf8]
push 0x6637e0
push eax
call fcn.0044b527
lea eax, [ebp - 0xf8]
push str.f:develop_service_bchelpercore_service_dispatcher_servicedispatcher.cpp
push eax
call fcn.0044b527
lea eax, [ebp - 0xf8]
push 0x663824
push eax
call fcn.0044b527
add esp, 0x18
lea ecx, [ebp - 0xf8]
push 0xc9
call fcn.0044dc3b
lea eax, [ebp - 0xf8]
push 0x663828
push eax
call fcn.0044b527
add esp, 8
lea ecx, [ebp - 0x108]
mov dl, 1
call fcn.004714a0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 1
call fcn.0044942b
mov eax, dword [ebp - 0x30]
xor edi, edi
cmp eax, 1
je 0x47024f
inc edi
cmp edi, 0x78
jae 0x4701b2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call ebx
test eax, eax
jne 0x4701a2
call fcn.0046eb80
test al, al
je 0x4701af
mov eax, dword [ebp - 0x30]
cmp eax, 1
jne 0x470171
jmp 0x47024f
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x47024f
sub esp, 8
lea ecx, [ebp - 0x108]
call fcn.004498fc
mov edx, str.Unable_to_stop_service.
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf8]
call fcn.00459ca6
lea eax, [ebp - 0xf8]
push 0x6637e0
push eax
call fcn.0044b527
lea eax, [ebp - 0xf8]
push str.f:develop_service_bchelpercore_service_dispatcher_servicedispatcher.cpp
push eax
call fcn.0044b527
lea eax, [ebp - 0xf8]
push 0x663824
push eax
call fcn.0044b527
add esp, 0x18
lea ecx, [ebp - 0xf8]
push 0xd4
call fcn.0044dc3b
lea eax, [ebp - 0xf8]
push 0x663828
push eax
call fcn.0044b527
add esp, 8
lea ecx, [ebp - 0x108]
mov dl, 1
call fcn.004714a0
lea ecx, [ebp - 0x108]
call fcn.0044942b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne bl
jmp 0x470263
xor bl, bl
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x470270
push esi
call edi
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x47027a
push ecx
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487463
mov esp, ebp
pop ebp
ret
call fcn.004a0555
int3