Function at 0x40d550
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4801d2
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x4a1500]
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 - 0x844], ecx
mov dword [ebp - 0x814], 0
mov dword [ebp - 4], 0
xor edi, edi
nop word [eax + eax]
lea eax, [ebp - 0x814]
push eax
push 0x485f20
push 0
push 4
push 0x48f958
call dword [sym.imp.ole32.dll_CoGetClassObject]
test eax, eax
js 0x40d5cd
mov ecx, dword [ebp - 0x814]
test ecx, ecx
jne 0x40d716
xorps xmm0, xmm0
movups xmmword [ebp - 0x828], xmm0
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0x85c]
mov byte [ebp - 4], 2
call fcn.00441c80
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d619
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0xb5
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.CoGetClassObject_failed:
mov ecx, eax
call fcn.004097d0
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.0040cc40
mov edx, eax
mov ecx, esi
call fcn.0040ec10
push eax
call fcn.00409b50
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x848]
cmp ecx, 7
jbe 0x40d6c8
mov edx, dword [ebp - 0x85c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d6be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc0a
push ecx
push edx
call fcn.00452718
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x820]
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
test ecx, ecx
je 0x40d6f2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x40d703
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x814]
test ecx, ecx
jne 0x40d716
cmp edi, 5
jb 0x40d5a0
cmp edi, 5
jne 0x40d733
mov dword [ebp - 4], edi
test ecx, ecx
je 0x40db7a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor al, al
jmp 0x40dbea
xorps xmm0, xmm0
mov dword [ebp - 0x830], 0
xor eax, eax
mov dword [ebp - 0x82c], 7
movups xmmword [ebp - 0x840], xmm0
mov word [ebp - 0x840], ax
mov byte [ebp - 4], 6
xor edi, edi
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00454a10
add esp, 0xc
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x818]
push 0x3e8
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push 0x10
push str.NeedAKey
push str..pipeMBLG
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
jne 0x40d86f
lea ecx, [ebp - 0x85c]
call fcn.00441c80
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d7cc
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0xcb
mov ecx, eax
call fcn.00407bb0
mov edx, str.:_CallNamedPipeW_failed:
mov ecx, eax
call fcn.004097d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040ea20
push eax
call fcn.00409b50
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0x848]
cmp ecx, 7
jbe 0x40d8c2
mov edx, dword [ebp - 0x85c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d863
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc0a
push ecx
push edx
call fcn.00452718
add esp, 8
jmp 0x40d8c2
mov eax, dword [ebp - 0x818]
cmp eax, 0x400
je 0x40d8c2
and eax, 0xfffffffe
cmp eax, 0x800
jae 0x40dc05
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d8a0
sub eax, edx
lea ecx, [ebp - 0x840]
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0040ef00
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp dword [ebp - 0x830], 0
jne 0x40d8e0
cmp edi, 5
jb 0x40d760
cmp edi, 5
jne 0x40d952
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x82c]
cmp ecx, 7
jbe 0x40d929
mov edx, dword [ebp - 0x840]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d91f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc0a
push ecx
push edx
call fcn.00452718
add esp, 8
xor eax, eax
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
mov dword [ebp - 4], 8
jmp 0x40db6a
xor edi, edi
lea eax, [ebp - 0x840]
cmp dword [ebp - 0x82c], 7
cmova eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, dword [ebp - 0x844]
add esi, 0x38
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x844], esi
mov ecx, dword [ebp - 0x814]
push esi
push eax
push 0x48f978
mov edx, dword [ecx]
push 0
push 0
push ecx
call dword [edx + 0x1c]
test eax, eax
js 0x40d9a8
cmp dword [esi], 0
jne 0x40daf1
xorps xmm0, xmm0
movups xmmword [ebp - 0x828], xmm0
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0x85c]
mov byte [ebp - 4], 0xa
call fcn.00441c80
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d9f4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0xe2
mov ecx, eax
call fcn.00407bb0
mov edx, str.:_CreateLicenseLic_failed:
mov ecx, eax
call fcn.004097d0
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.0040cc40
mov edx, eax
mov ecx, esi
call fcn.0040ec10
push eax
call fcn.00409b50
mov byte [ebp - 4], 0xa
add esp, 4
mov ecx, dword [ebp - 0x848]
cmp ecx, 7
jbe 0x40da97
mov edx, dword [ebp - 0x85c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40da8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc0a
push ecx
push edx
call fcn.00452718
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x820]
mov dword [ebp - method._com_error.virtual_0], vtable._com_error.0
test ecx, ecx
je 0x40dac1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x40dad2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x844]
mov byte [ebp - 4], 6
cmp dword [esi], 0
jne 0x40daf1
cmp edi, 5
jae 0x40daf1
mov eax, dword [ebp - 0x818]
jmp 0x40d984
push dword [ebp - 0x818]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x82c]
cmp edi, 5
jne 0x40db7e
cmp ecx, 7
jbe 0x40db46
mov edx, dword [ebp - 0x840]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40db3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc0a
push ecx
push edx
call fcn.00452718
add esp, 8
xor eax, eax
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x40db7a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x40dbea
cmp ecx, 7
jbe 0x40dbb4
mov edx, dword [ebp - 0x840]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dbaa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc0a
push ecx
push edx
call fcn.00452718
add esp, 8
xor eax, eax
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x40dbe8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
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.004523b6
mov esp, ebp
pop ebp
ret
call fcn.00452878
call fcn.0045e581
int3