Function at 0x46fca0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591c9b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
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 0x20
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x46fcec
lea ecx, [ebp - 0x60]
call fcn.0046e600
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 0
test eax, eax
jne 0x46fcfe
xor bl, bl
jmp 0x46ff60
push 0x20
push ecx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x64]
call fcn.0046e8b0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x46ff47
lea eax, [ebp - 0x5c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x46ff7e
sub esp, 8
lea ecx, [ebp - 0x118]
call fcn.004498fc
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
lea ecx, [ebp - 0x108]
call fcn.0044c0e3
lea eax, [ebp - 0x108]
push 0x6655a0
push eax
call fcn.0044b527
add esp, 8
call edi
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.0045c6db
push 0
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0045eb1b
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x46fd95
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0044acff
mov byte [ebp - 4], 3
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x46fdde
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46fdd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ff82
push edx
push ecx
call fcn.00487ad0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46fe1c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46fe12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ff87
push edx
push ecx
call fcn.00487ad0
add esp, 8
lea eax, [ebp - 0x108]
push 0x6637e0
push eax
call fcn.0044b527
lea eax, [ebp - 0x108]
push str.f:develop_service_bchelpercore_service_dispatcher_servicedispatcher.cpp
push eax
call fcn.0044b527
lea eax, [ebp - 0x108]
push 0x663824
push eax
call fcn.0044b527
add esp, 0x18
lea ecx, [ebp - 0x108]
push 0xb1
call fcn.0044dc3b
lea eax, [ebp - 0x108]
push 0x663828
push eax
call fcn.0044b527
add esp, 8
lea ecx, [ebp - 0x118]
mov dl, 1
call fcn.004714a0
mov eax, dword [ebp - 0x118]
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 - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x11c], eax
lea ecx, [ebp - 0x100]
call fcn.0044ab2f
mov eax, dword [ebp - 0x118]
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 - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x11c], eax
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x10c], eax
mov eax, dword [ebp - 0x118]
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 - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x11c], eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0xb0], vtable.std::ios_base.0
call fcn.00474556
add esp, 4
xor bl, bl
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46ff56
push esi
call edi
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x46ff60
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
mov bl, 1
jmp 0x46ff49
call fcn.004a0555
call fcn.004a0555
int3