Function at 0x4152dc
Capabilities:
Create pipe
Create thread

Disassembly:
push 0xd4
mov eax, 0x569bff
call fcn.0053cea9
mov eax, dword [ebp + 8]
push 0x2f
mov ebx, str.EventPipe.cpp
push ebx
mov dword [ebp - 0xd0], eax
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x41530b
push 0x2f
jmp 0x41531b
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x415326
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x415328
mov eax, ebx
push 1
push 0x1b
push eax
lea esi, [ebp - 0x7c]
call fcn.00404558
and dword [ebp - 4], 0
push str.CEventPipe::StartWaitEvent
push 0
mov ecx, eax
call fcn.00404636
mov edi, eax
call fcn.0040a124
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.004045c4
mov esi, dword [ebp - 0xd0]
cmp dword [esi + 4], 0xffffffff
je 0x415371
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
jmp 0x4155a8
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
push edi
push edi
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xdc]
push eax
push 0x4e20
mov eax, 0x1000
push eax
push eax
push 0xff
push 4
mov dword [ebp - 0xd4], edi
push 0x40000001
mov edi, str..pipeescanevent
push edi
mov dword [ebp - 0xdc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x2f
mov dword [esi + 4], eax
push ebx
cmp eax, 0xffffffff
je 0x415544
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x4153ef
push 0x2f
jmp 0x4153ff
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x41540a
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x41540c
mov eax, ebx
push 1
push 0x34
push eax
lea esi, [ebp - 0x7c]
call fcn.00404558
push edi
push str.CreateNamedPipe_succeeded:__s
xor esi, esi
push esi
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00404636
mov edi, eax
call fcn.0040c58b
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.004045c4
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0xd0]
push esi
push esi
push 1
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0xe0]
push eax
push esi
push edi
push 0x4156b4
push esi
push esi
call fcn.0053c14d
add esp, 0x18
push 0x2f
mov dword [edi + 0xc], eax
push ebx
cmp eax, esi
je 0x4154db
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x415490
push 0x2f
jmp 0x4154a0
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x4154ab
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x4154ad
mov eax, ebx
push 1
push 0x41
push eax
lea esi, [ebp - 0x7c]
call fcn.00404558
push str.WaitEventDataThread_is_created
push 0
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00404636
mov edi, eax
call fcn.0040a124
jmp 0x41559b
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x4154ea
push 0x2f
jmp 0x4154fa
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x415505
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x415507
mov eax, ebx
push 4
pop edi
push edi
push 0x43
push eax
lea esi, [ebp - 0xcc]
call fcn.00404558
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Creating_WaitEventDataThread_failed___d_
push 0
mov ecx, esi
call fcn.00404636
mov edi, eax
call fcn.0040a124
pop ecx
pop ecx
lea ecx, [ebp - 0xcc]
jmp 0x41559f
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x415553
push 0x2f
jmp 0x415563
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x41556e
push 0x5c
push ebx
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x415570
mov eax, ebx
push 4
push 0x36
push eax
lea esi, [ebp - 0x7c]
call fcn.00404558
push edi
push str.CreateNamedPipe_failed:__s
push 0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00404636
mov edi, eax
call fcn.0040c58b
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
or dword [ebp - 4], 0xffffffff
call fcn.004045c4
call fcn.0053cf2c
ret 8