Function at 0x408c50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422206
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x434064]
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 dword [ebp + 8], 1
mov eax, dword [ebp + 0xc]
jle 0x408d7c
mov edx, dword [eax + 4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ca7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404110
mov dword [ebp - 4], 0
lea esi, [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
cmp ebx, 8
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae esi, edi
cmp eax, 8
jne 0x408d0a
mov ecx, 0x4307e8
mov edx, eax
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x408d07
add ecx, 2
sub edx, 1
jne 0x408ce7
call fcn.00406390
test al, al
je 0x408f72
jmp 0x408d3f
mov eax, dword [ebp - 0x18]
cmp ebx, 8
lea esi, [ebp - 0x28]
cmovae esi, edi
cmp eax, 7
jne 0x408d3f
mov ecx, str._remove
mov edx, eax
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x408d3f
add ecx, 2
sub edx, 1
jne 0x408d21
call fcn.00406700
test al, al
je 0x408f79
cmp ebx, 8
jb 0x408f54
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x408d6d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408f80
push ecx
push edi
call fcn.0040a239
add esp, 8
jmp 0x408f54
push 0x4c
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0040c170
add esp, 0xc
mov dword [ebp - 0x74], vtable.InstallerService.0
xor eax, eax
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
push 0xc
push 0x430464
call fcn.00404110
mov dword [ebp - 4], 1
push 0
push 0
push 1
push 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x58], 0x10
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x408f85
mov dword [ebp - 4], 3
lea eax, [ebp - 0x74]
mov dword [0x435c8c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x430464
mov dword [ebp - 0x1c], 0x406d30
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, 1
je 0x408f4c
push 0x19
xor eax, eax
mov dword [ebp - 0x98], 0
push str.Service_failed_to_launch.
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
call fcn.00404110
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x90]
call fcn.00408270
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x90]
call fcn.004020d0
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x408ef5
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408eeb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408fcc
push edx
push ecx
call fcn.0040a239
add esp, 8
mov edx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp edx, 8
jb 0x408f4c
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408fd1
push edx
push ecx
call fcn.0040a239
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.00406320
xor eax, eax
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.0040a1f8
mov esp, ebp
pop ebp
ret
push 1
call fcn.004104fb
push 1
call fcn.004104fb
call fcn.004101f6
push str.MBAMIService_Constructor
lea ecx, [ebp - 0x28]
call fcn.00405240
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.004020d0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004023d0
call esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push 0x432960
push eax
call fcn.0040b5fd
call fcn.004101f6
call fcn.004101f6
int3