Function at 0x418340
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0a90
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4e706c]
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
cmp byte [0x4eca6d], 0
je 0x418392
push str.Uninstall_of_CTSDK_is_not_supported
mov edx, 0x4b4
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupinstallerservicefactory.cpp
call fcn.004417b0
add esp, 4
xor al, al
jmp 0x4186c8
push 0x20000004
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x418472
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.0045f3e0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4183d4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x4bc
mov ecx, eax
call fcn.0040dda0
mov edx, 0x4c932c
mov ecx, eax
call fcn.0040f7a0
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.0040f7a0
push esi
mov ecx, eax
call fcn.00418700
push eax
call fcn.0040fb10
mov edx, dword [ebp - 0x24]
add esp, 4
cmp edx, 8
jb 0x41846b
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418461
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186e4
push edx
push ecx
call fcn.0046f0d0
add esp, 8
xor al, al
jmp 0x4186c8
push 0xf01ff
push str.MBAMInstallerService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x418571
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov dword [ebp - 0x20], eax
call ebx
lea ecx, [ebp - 0x38]
call fcn.0045f3e0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4184bd
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x4c6
mov ecx, eax
call fcn.0040dda0
mov edx, 0x4c932c
mov ecx, eax
call fcn.0040f7a0
mov edx, str.Error_opening
mov ecx, eax
call fcn.0040f7a0
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00418a90
mov edx, str.__status:
mov ecx, eax
call fcn.0040f7a0
push dword [ebp - 0x20]
mov ecx, eax
call fcn.00418700
push eax
call fcn.0040fb10
mov edx, dword [ebp - 0x24]
add esp, 4
cmp edx, 8
jb 0x418600
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4185f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186e9
jmp 0x4185f6
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x418609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [ebp - 0x20], eax
call ebx
push edi
call ebx
lea ecx, [ebp - 0x38]
call fcn.0045f3e0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4185ac
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x4cf
mov ecx, eax
call fcn.0040dda0
mov edx, 0x4c932c
mov ecx, eax
call fcn.0040f7a0
mov edx, str.DeleteSerivce_Failed:
jmp 0x41851a
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov byte [ebp - 0x19], 0
jmp 0x4186bb
lea ecx, [ebp - 0x38]
call fcn.0045f3e0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418620
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x4d3
mov ecx, eax
call fcn.0040dda0
mov edx, 0x4c932c
mov ecx, eax
call fcn.0040f7a0
mov edx, str.Installer_Service_removed
mov ecx, eax
call fcn.0040f7a0
push eax
call fcn.0040fb10
mov edx, dword [ebp - 0x24]
add esp, 4
cmp edx, 8
jb 0x4186ab
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4186a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186e9
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
mov byte [ebp - 0x19], 1
test esi, esi
je 0x4186c2
push esi
call ebx
push edi
call ebx
mov al, byte [ebp - 0x19]
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.0046ebaf
mov esp, ebp
pop ebp
ret
call fcn.0048a05c
call fcn.0048a05c
int3