Function at 0x455ca0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push edi
push 0x4ca410
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x455f08
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerW
push edi
call esi
push str.OpenServiceW
push edi
mov dword [0x4ed198], eax
call esi
push str.ControlService
push edi
mov dword [0x4ed18c], eax
call esi
push str.QueryServiceStatus
push edi
mov dword [0x4ed180], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [0x4ed184], eax
call esi
mov ecx, dword [0x4ed198]
test ecx, ecx
mov dword [0x4ed190], eax
je 0x455ef7
cmp dword [0x4ed18c], 0
je 0x455ef7
cmp dword [0x4ed180], 0
je 0x455ef7
cmp dword [0x4ed184], 0
je 0x455ef7
test eax, eax
je 0x455ef7
push ebp
push 0xf003f
push 0
push 0
call ecx
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x455edc
push ebx
mov ebx, dword [esp + 0x38]
push 0xf01ff
push ebx
push ebp
call dword [0x4ed18c]
mov esi, eax
test esi, esi
je 0x455ea9
lea eax, [esp + 0x18]
push eax
push 1
push esi
call dword [0x4ed180]
test eax, eax
je 0x455e6e
push ebx
push str._INFO_Stopping_Service:__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0x3e8
call ebp
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [0x4ed184]
test eax, eax
je 0x455df1
cmp dword [esp + 0x1c], 3
jne 0x455df1
push 0x4c15f0
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
push 0x3e8
call ebp
lea edx, [esp + 0x18]
push edx
push esi
call dword [0x4ed184]
test eax, eax
jne 0x455dc0
cmp dword [esp + 0x1c], 1
push ebx
jne 0x455e36
push str._INFO_Service__s_is_stopped_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov ebp, dword [esp + 0x20]
add esp, 0xc
push esi
mov byte [esp + 0x17], 1
call dword [0x4ed190]
push ebp
call dword [0x4ed190]
pop ebx
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0xb]
pop esi
pop edi
add esp, 0x24
ret
push str._ERROR_Service__s_is_failed_to_stop_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov ebp, dword [esp + 0x20]
add esp, 0xc
push esi
call dword [0x4ed190]
push ebp
call dword [0x4ed190]
pop ebx
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0xb]
pop esi
pop edi
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR_ControlService_failed:_0x_x_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
push esi
call dword [0x4ed190]
push ebp
call dword [0x4ed190]
pop ebx
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0xb]
pop esi
pop edi
add esp, 0x24
ret
push ebx
push str._INFO_Service__s_is_already_removed_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
push ebp
mov byte [esp + 0x17], 1
call dword [0x4ed190]
pop ebx
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0xb]
pop esi
pop edi
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR_OpenSCManager_failed:_0x_x_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0xb]
pop esi
pop edi
add esp, 0x24
ret
push str._ERROR_Failed_to_load_ADVAPI32IDLL_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
xor al, al
pop edi
add esp, 0x24
ret