Function at 0x4088b0
Capabilities:
Check for peb beingdebugged flag
Connect pipe
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x3c]
push ebx
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], 0
call sym._service_start_process.constprop.0
mov ebx, eax
test eax, eax
je 0x4088f0
test byte [global___dbch.0], 8
jne 0x408b90
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
test byte [global___dbch.0], 8
jne 0x408cb0
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
mov edx, dword [ebp - 0x50]
sub esp, 8
test eax, eax
je 0x408be2
cmp word [edx], 0
je 0x408e33
mov ecx, edx
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x408950
sub ecx, edx
sar ecx, 1
add ecx, 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x408999
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea edi, [ebx + edi*4]
mov esi, dword [ebx]
cmp word [esi], 0
je 0x408bc8
mov eax, esi
nop
add eax, 2
cmp word [eax], 0
jne 0x408980
sub eax, esi
sar eax, 1
add eax, 1
add ebx, 4
add ecx, eax
cmp edi, ebx
jne 0x408970
lea eax, [ecx + ecx + 2]
mov dword [ebp - 0x50], edx
mov edi, eax
mov dword [ebp - 0x58], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x50]
mov ebx, eax
sub esp, 0xc
xor eax, eax
test ebx, ebx
je 0x408e3d
lea esi, [esi]
nop
movzx ecx, word [edx + eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x4089e0
cmp word [edx], 0
je 0x408e53
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408a00
sub eax, edx
lea ecx, [eax + 2]
mov edi, dword [ebp + 0xc]
add ecx, ebx
test edi, edi
je 0x408a75
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x5c], ebx
lea edi, [esi + eax*4]
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [esi]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x408a38
cmp word [ecx], 0
je 0x408bd8
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408a58
sub eax, ecx
add eax, 2
add esi, 4
add ecx, eax
cmp edi, esi
jne 0x408a30
mov edx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x5c]
xor esi, esi
lea eax, [ebp - 0x34]
mov word [ecx], si
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dbg.process_send_control
test eax, eax
jne 0x408ab5
mov dword [ebp - 0x34], 0x41d
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 0x34]
sub esp, 0xc
test ebx, ebx
jne 0x408c42
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [edi + 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41906c]
mov dword [ebp - 0x2c], edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub esp, 0x10
test eax, eax
jne 0x408c2f
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
add eax, 0x18
mov dword [esp], eax
call edi
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov ebx, dword [eax + 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
add eax, 0x18
sub ebx, 2
mov dword [esp], eax
call esi
sub esp, 4
and ebx, 0xfffffffd
jne 0x408c3b
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dbg.release_process
test byte [global___dbch.0], 8
je 0x4088e1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.returning__ld_n
mov dword [esp + 8], global___FUNCTION__.24
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
jmp 0x408990
mov eax, 2
jmp 0x408a66
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x408d47
cmp dword [eax + 0x34], 0x217
je 0x40893c
test byte [global___dbch.0], 2
je 0x408c2f
mov dword [esp + 0xc], str.pipe_connect_failed_n
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ebx, 0x41d
jmp 0x408c4e
mov edi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
add eax, 0x18
mov dword [esp], eax
call edi
mov eax, dword [ebp + 8]
sub esp, 4
mov edx, dword [eax + 0x68]
test edx, edx
je 0x408c9a
mov edi, dword [ebp - 0x4c]
mov dword [eax + 0x18], 1
mov dword [eax + 0x68], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x50], eax
sub eax, 1
mov dword [edi + 0x10], eax
je 0x408d3a
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dbg.release_process
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0x18
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x408b69
test edx, edx
je 0x408e5d
mov eax, edx
shr eax, 0x10
je 0x408e18
mov dword [esp], edx
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x50], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x50]
mov ecx, eax
sub esp, 8
mov eax, 0x41ac0d
test ecx, ecx
jne 0x408cf2
mov eax, edx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov edx, dword [ebp - 0x50]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], edx
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], str._p__s__p__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x50]
jmp 0x40890f
mov dword [esp], edi
call dbg.process_terminate
jmp 0x408c8f
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41906c]
mov dword [ebp - 0x34], ecx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
mov edx, dword [ebp - 0x50]
sub esp, 0x10
test eax, eax
jne 0x408e67
cmp dword [ebp - 0x2c], 0x103
jne 0x40893c
test byte [global___dbch.0], 2
je 0x408c2f
test edx, edx
je 0x408e81
mov eax, edx
shr eax, 0x10
je 0x408e95
mov dword [esp], edx
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x50], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x408e8b
mov eax, dword [ebp - 0x50]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.service__s_failed_to_start_n
mov dword [esp + 8], str.process_send_start_message
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x408c3b
mov dword [esp + 4], edx
mov dword [ebp - 0x50], edx
mov dword [esp], 0x41ac00
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, dword [ebp - 0x50]
jmp 0x408cf2
mov ecx, 1
jmp 0x408960
mov edi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ebx, 0x46a
jmp 0x408c4e
mov ecx, 2
jmp 0x408a0e
mov eax, 0x41ac06
jmp 0x408cf2
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CancelIo]
mov edx, dword [ebp - 0x50]
sub esp, 4
jmp 0x408d89
mov eax, 0x41ac06
jmp 0x408ddc
mov eax, 0x41ac0d
jmp 0x408ddc
mov dword [esp + 4], edx
mov dword [esp], 0x41ac00
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x408ddc