Function at 0x434a50
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 0x434d85
test ebx, ebx
je 0x434d85
push esi
push str.VNLUninstallService:_Attempting_to_uninstall_service:__S
push 2
call fcn.00446b80
add esp, 0xc
cmp dword [ebx], 0
je 0x434a92
push str.VNLUninstallService:_Callers_parameter_already_indicates_reboot_required
push 8
call fcn.00446b80
add esp, 8
push str.VNLUninstallService:_Attempting_to_stop_service_to_be_uninstalled
push 2
call fcn.00446b80
push 0
push esi
call fcn.00434160
add esp, 0x10
push 0xf003f
push 0x4b9210
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x434b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x434b17
cmp eax, 0x57
je 0x434b04
cmp eax, 0x429
je 0x434af1
push eax
push str.VNLUninstallService:_Service_Manager_open_failed:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x434b32
push str.VNLUninstallService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.00446b80
push str.VNLUninstallService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x434b28
push str.VNLUninstallService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.00446b80
push str.VNLUninstallService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x434b28
push str.VNLUninstallService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.00446b80
push str.VNLUninstallService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.00446b80
add esp, 0x10
push str.VNLUninstallService:_service_uninstall_failed
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.VNLUninstallService:_Service_Manager_successfully_opened
push 0x10
call fcn.00446b80
add esp, 8
push 0x10000
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x434c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x7b
ja 0x434be8
je 0x434bc9
mov ecx, eax
sub ecx, 5
je 0x434baa
sub ecx, 1
jne 0x434bef
push str.VNLUninstallService:_Service_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.00446b80
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.VNLUninstallService:_Service_could_not_be_opened:_ERROR_ACCESS_DENIED
push 1
call fcn.00446b80
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.VNLUninstallService:_Service_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.00446b80
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 0x434c0f
push eax
push str.VNLUninstallService:_Service_could_not_be_opened:_0x_08x
push 1
call fcn.00446b80
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.VNLUninstallService:_Service_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 4
call fcn.00446b80
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.VNLUninstallService:_Service_successfully_opened
push 0x10
call fcn.00446b80
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
test eax, eax
jne 0x434ccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor esi, esi
sub ecx, 5
je 0x434cb4
sub ecx, 1
je 0x434cad
sub ecx, 0x42a
je 0x434c88
push eax
push str.VNLUninstallService:_Service_could_not_be_deleted:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x434d66
push str.VNLUninstallService:_Service_already_deleted:_ERROR_SERVICE_MARKED_FOR_DELETE
push 2
call fcn.00446b80
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 0x434d66
push str.VNLUninstallService:_Service_could_not_be_deleted:_ERROR_INVALID_HANDLE
jmp 0x434cb9
push str.VNLUninstallService:_Service_could_not_be_deleted:_ERROR_ACCESS_DENIED
push 1
call fcn.00446b80
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x434d66
push esi
push str.VNLUninstallService:_Service_was_deleted:__S
push 0x12
mov ebx, 0x28
call fcn.00446b80
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push str.VNLUninstallService:_Checking_if_reboot_required_for:__S
push 2
call fcn.00446b80
add esp, 0xc
push 0x10000
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x434d51
push str.VNLUninstallService:_Service_still_present__might_check_again
push 2
call fcn.00446b80
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 0x434ce4
push str.VNLUninstallService:_Service_still_present__presuming_reboot_required
push 2
call fcn.00446b80
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x434d5d
push str.VNLUninstallService:_Service_no_longer_present__presuming_no_need_for_reboot
push 2
call fcn.00446b80
mov esi, dword [ebp - 8]
add esp, 8
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.VNLUninstallService:_returning
push 0x10
call fcn.00446b80
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.VNLUninstallService:_invalid_parameter:_0x_08x_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret