Function at 0x41b170
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcaa5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50c080]
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 [0x510936], 0
je 0x41b1c2
push str.Uninstall_of_CTSDK_is_not_supported
mov edx, 0x4b4
mov ecx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupInstallerServiceFactory.cpp
call fcn.004471b0
add esp, 4
xor al, al
jmp 0x41b554
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 0x41b2a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00467cf0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41b204
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x4bc
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x24]
add esp, 4
cmp ecx, 7
jbe 0x41b29b
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b291
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b570
push ecx
push edx
call fcn.00490f7d
add esp, 8
xor al, al
jmp 0x41b554
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 0x41b3ab
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.00467cf0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41b2ed
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x4c6
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_opening
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041b9a0
mov edx, str.__status:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x20]
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x24]
add esp, 4
cmp ecx, 7
jbe 0x41b488
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b398
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b575
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov byte [ebp - 0x19], 0
jmp 0x41b54e
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41b499
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.00467cf0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41b3e6
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x4cf
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.DeleteSerivce_Failed:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x20]
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x24]
add esp, 4
cmp ecx, 7
jbe 0x41b488
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b475
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b57a
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov byte [ebp - 0x19], 0
jmp 0x41b54b
mov byte [ebp - 0x19], 0
test esi, esi
je 0x41b54e
jmp 0x41b54b
lea ecx, [ebp - 0x38]
call fcn.00467cf0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41b4b0
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x4d3
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Installer_Service_removed
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x24]
add esp, 4
cmp ecx, 7
jbe 0x41b53b
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b531
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b57f
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
mov byte [ebp - 0x19], 1
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.00490c46
mov esp, ebp
pop ebp
ret
call fcn.004961af
call fcn.004961af
call fcn.004961af
call fcn.004961af
int3