Function at 0x41c2a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x47a008]
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
mov dword [ebp - 0x60], ecx
cmp dword [0x47e5ec], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x64], ecx
je 0x41c36d
push ecx
mov ecx, 0x47e5ec
call fcn.0042f680
mov eax, dword [0x47e5ec]
cmp byte [eax + 0x54], 0
je 0x41c36a
cmp dword [eax + 0x58], 4
jb 0x41c36a
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004048f0
push 0x18
push str.Entry_StartServiceByName
mov dword [ebp - 4], 0
call fcn.00404970
push 0x231
push str.RC::DM::RCServiceDManager::StopServiceByName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
push 4
call fcn.0042feb0
test bl, bl
je 0x41c358
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
call fcn.00430280
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004047a0
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp dword [ebx + 0x10], 0
jne 0x41c385
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
jmp 0x41c83b
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push eax
mov edx, ebx
lea ecx, [ebp - 0x6c]
call fcn.0041b1a0
add esp, 8
mov esi, dword [eax]
mov edi, dword [eax + 4]
test esi, esi
je 0x41c449
cmp dword [0x47e5ec], 0
je 0x41c833
push ecx
mov ecx, 0x47e5ec
call fcn.0042f680
mov eax, dword [0x47e5ec]
cmp byte [eax + 0x54], 0
je 0x41c7b0
cmp dword [eax + 0x58], 2
jb 0x41c7b0
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004048f0
push 0x1e
push str.QueryServiceStatusInfo_failed_
mov dword [ebp - 4], 1
call fcn.00404970
push 0x241
push str.RC::DM::RCServiceDManager::StopServiceByName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
push 2
call fcn.0042feb0
test bl, bl
je 0x41c435
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
call fcn.00430280
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004047a0
jmp 0x41c7b0
cmp dword [ebp - 0x48], 4
je 0x41c4dd
cmp dword [0x47e5ec], 0
je 0x41c4d6
push ecx
mov ecx, 0x47e5ec
call fcn.0042f680
mov eax, dword [0x47e5ec]
cmp byte [eax + 0x54], 0
je 0x41c4d6
cmp dword [eax + 0x58], 4
jb 0x41c4d6
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004048f0
push 0x10
push str.service_running_
mov dword [ebp - 4], 2
call fcn.00404970
push 0x247
push str.RC::DM::RCServiceDManager::StopServiceByName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
push 4
call fcn.0042feb0
test bl, bl
je 0x41c4c7
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
call fcn.00430280
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004047a0
xor esi, esi
jmp 0x41c7b0
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
jne 0x41c585
cmp dword [0x47e5ec], eax
je 0x41c57b
push ecx
mov ecx, 0x47e5ec
call fcn.0042f680
mov eax, dword [0x47e5ec]
cmp byte [eax + 0x54], 0
je 0x41c57b
cmp dword [eax + 0x58], 4
jb 0x41c57b
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004048f0
push 0x1c
push str.Open_service_manager_failed_
mov dword [ebp - 4], 3
call fcn.00404970
push 0x24f
push str.RC::DM::RCServiceDManager::StopServiceByName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
push 4
call fcn.0042feb0
test bl, bl
je 0x41c56c
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
call fcn.00430280
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004047a0
mov esi, 0xa803b9
jmp 0x41c7a8
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x41c58f
mov eax, dword [ebx]
push 0x34
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
jne 0x41c643
cmp dword [0x47e5ec], eax
je 0x41c628
push ecx
mov ecx, 0x47e5ec
call fcn.0042f680
mov eax, dword [0x47e5ec]
cmp byte [eax + 0x54], 0
je 0x41c628
cmp dword [eax + 0x58], 4
jb 0x41c628
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004048f0
push 0x14
push str.Open_service_failed_
mov dword [ebp - 4], 4
call fcn.00404970
push 0x25b
push str.RC::DM::RCServiceDManager::StopServiceByName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
push 4
call fcn.0042feb0
test bl, bl
je 0x41c619
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
call fcn.00430280
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004047a0
mov esi, 0xa803b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x54]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41c7b0
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41c6f0
cmp dword [0x47e5ec], eax
je 0x41c6da
push ecx
mov ecx, 0x47e5ec
call fcn.0042f680
mov eax, dword [0x47e5ec]
cmp byte [eax + 0x54], 0
je 0x41c6da
cmp dword [eax + 0x58], 4
jb 0x41c6da
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004048f0
push 0x14
push str.Stop_service_failed_
mov dword [ebp - 4], 5
call fcn.00404970
push 0x267
push str.RC::DM::RCServiceDManager::StopServiceByName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
push 4
call fcn.0042feb0
test bl, bl
je 0x41c6cb
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
call fcn.00430280
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004047a0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, 0xa803b9
jmp 0x41c7a8
push dword [ebp - 0x4c]
mov dword [ebp - 0x58], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov edx, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041b1a0
add esp, 8
mov esi, dword [eax]
mov edi, dword [eax + 4]
test esi, esi
jne 0x41c7b0
nop dword [eax]
cmp dword [ebp - 0x48], 1
je 0x41c776
mov eax, dword [ebp - 0x58]
cmp eax, 2
jg 0x41c772
push dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov edx, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041b1a0
add esp, 8
mov esi, dword [eax]
mov edi, dword [eax + 4]
test esi, esi
je 0x41c730
jmp 0x41c7b0
test esi, esi
jne 0x41c7b0
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x54]
call esi
cmp dword [ebp - 0x58], 2
jg 0x41c7a3
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x6c]
push dword [ebp - 0x64]
push ebx
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x41c7b0
mov esi, 0xa803bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [0x47e5ec], 0
je 0x41c833
push ecx
mov ecx, 0x47e5ec
call fcn.0042f680
mov eax, dword [0x47e5ec]
cmp byte [eax + 0x54], 0
je 0x41c833
cmp dword [eax + 0x58], 4
jb 0x41c833
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004048f0
push 0x16
push str.Exit_StopServiceByName
mov dword [ebp - 4], 6
call fcn.00404970
push 0x29b
push str.RC::DM::RCServiceDManager::StopServiceByName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
push 4
call fcn.0042feb0
test bl, bl
je 0x41c824
lea eax, [ebp - 0x28]
mov ecx, 0x47e5ec
push eax
call fcn.00430280
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004047a0
mov eax, dword [ebp - 0x50]
mov dword [eax], esi
mov dword [eax + 4], edi
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.004306b4
mov esp, ebp
pop ebp
ret 0xc