Function at 0x46f9f0
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591c43
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x67706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10004
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x46fa3e
lea ecx, [ebp - 0x50]
call fcn.0046e600
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0
test eax, eax
jne 0x46fa50
xor bl, bl
jmp 0x46fc70
push 0x10004
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
call fcn.0046e8b0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x46fc55
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
push 0x24
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x46fa9c
call fcn.0046eb80
test al, al
je 0x46fc55
cmp dword [ebp - 0x48], 1
jne 0x46fab3
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
setne bl
jmp 0x46fc57
sub esp, 8
lea ecx, [ebp - 0x108]
call fcn.004498fc
push ecx
mov edx, str.Service_was_not_stopped__unable_to_unregister_service.
lea ecx, [ebp - 0x28]
call fcn.0045ed7e
add esp, 4
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x46fae1
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0044acff
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x46fb2a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46fb20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fc8d
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 0x92
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
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10c], eax
lea ecx, [ebp - 0xf0]
call fcn.0044ab2f
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x10c], eax
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xfc], eax
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x10c], eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.00474556
add esp, 4
xor bl, bl
test esi, esi
je 0x46fc62
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x46fc70
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
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