Function at 0x455f30
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 0x4561cf
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.DeleteService
push edi
mov dword [0x4ed184], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [0x4ed17c], eax
call esi
mov ecx, dword [0x4ed198]
test ecx, ecx
mov dword [0x4ed190], eax
je 0x4561be
cmp dword [0x4ed18c], 0
je 0x4561be
cmp dword [0x4ed180], 0
je 0x4561be
cmp dword [0x4ed184], 0
je 0x4561be
cmp dword [0x4ed17c], 0
je 0x4561be
test eax, eax
je 0x4561be
push ebp
push 0xf003f
push 0
push 0
call ecx
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x4561a3
push ebx
mov ebx, dword [esp + 0x38]
push 0xf01ff
push ebx
push ebp
call dword [0x4ed18c]
mov esi, eax
test esi, esi
je 0x456170
lea eax, [esp + 0x18]
push eax
push 1
push esi
call dword [0x4ed180]
test eax, eax
je 0x4560d5
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 0x4560a1
lea ebx, [ebx]
cmp dword [esp + 0x1c], 3
jne 0x4560a1
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 0x456070
cmp dword [esp + 0x1c], 1
push ebx
jne 0x4560bf
push str._INFO_Service__s_is_stopped_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov ebp, dword [esp + 0x20]
jmp 0x4560ec
push str._ERROR_Service__s_is_failed_to_stop_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov ebp, dword [esp + 0x20]
jmp 0x4560ec
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 [0x4ed17c]
test eax, eax
je 0x456134
push ebx
push str._INFO_Service__s_is_removed_n
call fcn.0044f300
push eax
call fcn.0044fb20
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str._ERROR_Service__s_delete_failed:_0x_x_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0x10
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