Function at 0x411ff0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b1ae
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4cb06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
push 0x20000004
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x412109
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.0044e680
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x412068
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0xce
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.0040ab10
push esi
mov ecx, eax
call fcn.004167c0
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x78]
add esp, 4
cmp edx, 8
jb 0x412102
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4120f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412805
push edx
push ecx
call fcn.0045d989
add esp, 8
xor al, al
jmp 0x4127ea
push 0xf01ff
push str.MBAMInstallerService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x412219
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x14], 0x424
je 0x4127d1
lea ecx, [ebp - 0x8c]
call fcn.0044e680
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x412162
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0xd9
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Error_opening
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
mov edx, str.__status:
mov ecx, eax
call fcn.0040ab10
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004167c0
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x78]
add esp, 4
cmp edx, 8
jb 0x412712
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41280a
jmp 0x412708
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4122d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x8c]
call fcn.0044e680
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41226c
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0xe8
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Error_getting
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
mov edx, str._status:
mov ecx, eax
call fcn.0040ab10
push dword [ebp - 0x74]
jmp 0x4121c9
cmp dword [ebp - 0x3c], 1
je 0x412506
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x4005000e
push eax
push 0x2c
xorps xmm0, xmm0
push 1
push esi
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlServiceExA]
test eax, eax
jne 0x4123f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
cmp eax, 0x426
je 0x4123f6
lea ecx, [ebp - 0x8c]
call fcn.0044e680
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41233e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0xf6
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Error_controlling
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
mov edx, str.__status:
mov ecx, eax
call fcn.0040ab10
push dword [ebp - 0x74]
mov ecx, eax
call fcn.004167c0
push eax
call fcn.0040ae80
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x4123f6
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4123ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41280a
push edx
push ecx
call fcn.0045d989
add esp, 8
xor eax, eax
inc eax
cmp dword [ebp - 0x3c], 1
mov dword [ebp - 0x74], eax
je 0x41261d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4125ba
mov eax, dword [ebp - 0x74]
cmp eax, 0x3c
jl 0x4123f8
cmp dword [ebp - 0x3c], 1
je 0x41261d
lea ecx, [ebp - 0x8c]
call fcn.0044e680
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x412458
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x109
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Error_stopping
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
mov edx, str.__continuing
mov ecx, eax
call fcn.0040ab10
push eax
call fcn.0040ae80
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x412506
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4124fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41280a
push edx
push ecx
call fcn.0045d989
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41271b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x74], 0x430
lea ecx, [ebp - 0x8c]
jne 0x412688
mov eax, dword [ebp - 0x90]
mov byte [eax + 4], 1
call fcn.0044e680
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41255d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x11a
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Deleting_pending_for
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
jmp 0x4121d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x8c]
call fcn.0044e680
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4125eb
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x103
jmp 0x412299
lea ecx, [ebp - 0x8c]
call fcn.0044e680
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x412637
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x10d
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Stopped
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
jmp 0x4124bc
call fcn.0044e680
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41269c
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x11f
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Error_deleting
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
mov edx, str.__status:
mov ecx, eax
call fcn.0040ab10
push dword [ebp - 0x74]
jmp 0x4121c9
push edx
push ecx
call fcn.0045d989
add esp, 8
mov byte [ebp - 0x6d], 0
jmp 0x4127d5
lea ecx, [ebp - 0x8c]
call fcn.0044e680
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x412735
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x125
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Deleted_service
mov ecx, eax
call fcn.0040ab10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00416990
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x78]
add esp, 4
cmp edx, 8
jb 0x4127c3
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4127b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41280a
push edx
push ecx
call fcn.0045d989
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x6d], 1
test esi, esi
je 0x4127e0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d468
mov esp, ebp
pop ebp
ret
call fcn.004786bc
call fcn.004786bc
int3