Function at 0x44ec30
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44ef65
test ebx, ebx
je 0x44ef65
push esi
push str.Inst_UninstallService:_Attempting_to_uninstall_service:__s
push 2
call fcn.004439a0
add esp, 0xc
cmp dword [ebx], 0
je 0x44ec72
push str.Inst_UninstallService:_Callers_parameter_already_indicates_reboot_required
push 2
call fcn.004439a0
add esp, 8
push str.Inst_UninstallService:_Attempting_to_stop_service_to_be_uninstalled
push 2
call fcn.004439a0
push 0
push esi
call fcn.0044e3c0
add esp, 0x10
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x44ed29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x44ecf7
cmp eax, 0x57
je 0x44ece4
cmp eax, 0x429
je 0x44ecd1
push str.Inst_UninstallService:_Service_Manager_open_failed
push eax
push 1
call fcn.00443b80
add esp, 0xc
jmp 0x44ed12
push str.Inst_UninstallService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.004439a0
push str.Inst_UninstallService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x44ed08
push str.Inst_UninstallService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.004439a0
push str.Inst_UninstallService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x44ed08
push str.Inst_UninstallService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
push str.Inst_UninstallService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.004439a0
add esp, 0x10
push str.Inst_UninstallService:_service_uninstall_failed
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.Inst_UninstallService:_Service_Manager_successfully_opened
push 0x10
call fcn.004439a0
add esp, 8
push 0x10000
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x44ee13
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x7b
ja 0x44edc8
je 0x44eda9
mov ecx, eax
sub ecx, 5
je 0x44ed8a
sub ecx, 1
jne 0x44edcf
push str.Inst_UninstallService:_Service_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.004439a0
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Inst_UninstallService:_Service_could_not_be_opened:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Inst_UninstallService:_Service_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.004439a0
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x44edef
push str.Inst_UninstallService:_Service_could_not_be_opened
push eax
push 1
call fcn.00443b80
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Inst_UninstallService:_Service_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 4
call fcn.004439a0
add esp, 8
mov esi, 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Inst_UninstallService:_Service_successfully_opened
push 0x10
call fcn.004439a0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
test eax, eax
jne 0x44eeaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor esi, esi
sub ecx, 5
je 0x44ee94
sub ecx, 1
je 0x44ee8d
sub ecx, 0x42a
je 0x44ee68
push str.Inst_UninstallService:_Service_could_not_be_deleted
push eax
push 1
call fcn.00443b80
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x44ef46
push str.Inst_UninstallService:_Service_already_deleted:_ERROR_SERVICE_MARKED_FOR_DELETE
push 2
call fcn.004439a0
mov eax, dword [ebp + 0xc]
add esp, 8
mov esi, 1
push edi
mov dword [eax], esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x44ef46
push str.Inst_UninstallService:_Service_could_not_be_deleted:_ERROR_INVALID_HANDLE
jmp 0x44ee99
push str.Inst_UninstallService:_Service_could_not_be_deleted:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x44ef46
push esi
push str.Inst_UninstallService:_Service_was_deleted:__s
push 2
mov ebx, 0x28
call fcn.004439a0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push str.Inst_UninstallService:_Checking_if_reboot_required_for:__s
push 0x20
call fcn.004439a0
add esp, 0xc
push 0x10000
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x44ef31
push str.Inst_UninstallService:_Service_still_present__might_check_again
push 2
call fcn.004439a0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xfa
xor edi, edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
dec ebx
test eax, eax
jne 0x44eec4
push str.Inst_UninstallService:_Service_still_present__presuming_reboot_required
push 2
call fcn.004439a0
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x44ef3d
push str.Inst_UninstallService:_Service_no_longer_present__presuming_no_need_for_reboot
push 2
call fcn.004439a0
mov esi, dword [ebp - 8]
add esp, 8
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Inst_UninstallService:_returning
push 0x10
call fcn.004439a0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.Inst_UninstallService:_invalid_parameter:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret