Function at 0x4c6d70
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597d30
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x634384]
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 esi, ecx
push 0xf003f
xor ebx, ebx
xor edi, edi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x3c], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], 0x5b3eb4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c6ddf
push 0xf01ff
push dword [esi + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x34], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 0x5b3eb4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4c6ea3
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4c6ea3
mov eax, dword [ebp + 8]
lea esi, [eax + eax]
test esi, esi
je 0x4c6e55
push 0
push 0x1f4
dec esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c6e79
mov eax, dword [ebp - 0x28]
cmp eax, 4
je 0x4c6e86
cmp eax, 1
je 0x4c6e6d
cmp eax, 2
jne 0x4c6e61
test esi, esi
jne 0x4c6e20
mov ebx, 0x41d
mov edi, 2
jmp 0x4c6eb0
mov ebx, 0x42a
mov edi, 2
jmp 0x4c6e86
mov ebx, 0x426
mov edi, 2
jmp 0x4c6e86
mov edi, 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004c61e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004c61e0
jmp 0x4c6ef1
mov edi, 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x34], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
test eax, eax
je 0x4c6ecb
push eax
call esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
test eax, eax
je 0x4c6eea
push eax
call esi
mov dword [ebp - 0x38], 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 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.005395e6
mov esp, ebp
pop ebp
ret 4