Function at 0x40429f
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x14
mov eax, 0x408676
call fcn.0040837f
mov edi, ecx
xor eax, eax
xor ebx, ebx
push eax
push eax
inc ebx
push ebx
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
push eax
mov ecx, edi
call fcn.00404df0
cmp dword [edi], 0
je 0x404567
cmp dword [edi], 0xffffffff
je 0x404567
push 0
push 0
push ebx
push 0
lea esi, [edi + 4]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
push eax
mov ecx, esi
call fcn.00404df0
cmp dword [esi], 0
je 0x404540
cmp dword [esi], 0xffffffff
je 0x404540
mov eax, dword [edi]
push 0x14
mov dword [edi + 0x1c], eax
pop eax
push eax
mov dword [edi + 0x24], eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_malloc]
mov dword [edi + 0x20], eax
pop ecx
test eax, eax
jne 0x40434b
mov eax, dword [section..data]
cmp eax, section..data
je 0x404597
test byte [eax + 0x1c], bl
je 0x404597
push dword [eax + 0x14]
mov edx, 0x4016bc
push dword [eax + 0x10]
push 0x17
pop ecx
call fcn.0040342c
jmp 0x404597
xor esi, esi
mov dword [ebp - 0x20], 0xc
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
push ebx
push 0x401640
mov dword [ebp - 0x18], esi
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x4043a1
mov eax, dword [section..data]
cmp eax, section..data
je 0x404597
test byte [eax + 0x1c], bl
je 0x404597
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x18
jmp 0x40458c
lea eax, [ebp - 0x20]
push eax
push esi
mov eax, 0x200
push eax
push eax
push ebx
mov ebx, dword [ebp + 8]
push 0xe
push 0x40080003
push ebx
call dword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreateNamedPipeW]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp ecx, 0xffffffff
je 0x4043f0
test ecx, ecx
je 0x4043f0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x404511
test eax, eax
je 0x404511
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
lea eax, [edi + 0xc]
push eax
push dword [edi + 8]
call dword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
mov esi, section..data
test eax, eax
jne 0x4044e6
mov eax, dword [section..data]
cmp eax, esi
je 0x404451
test byte [eax + 0x1c], 2
je 0x404451
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1a
pop ecx
call fcn.00403de4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x217
je 0x4044e6
cmp eax, 0x3e5
jne 0x404597
push 0x1388
push dword [edi]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4044b6
cmp eax, 0xffffffff
jne 0x4044e6
mov eax, dword [section..data]
cmp eax, esi
je 0x404597
test byte [eax + 0x1c], 1
je 0x404597
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1b
jmp 0x40458c
mov eax, dword [section..data]
cmp eax, esi
je 0x404597
test byte [eax + 0x1c], 1
je 0x404597
push ebx
push dword [eax + 0x14]
mov edx, 0x4016bc
push dword [eax + 0x10]
push 0x1c
pop ecx
call fcn.00402e93
jmp 0x404597
mov ecx, dword [section..data]
cmp ecx, esi
je 0x40450a
test byte [ecx + 0x1c], 2
je 0x40450a
push ebx
push dword [ecx + 0x14]
mov edx, 0x4016bc
push dword [ecx + 0x10]
push 0x1d
pop ecx
call fcn.00402e93
mov al, 1
jmp 0x404599
mov eax, dword [section..data]
cmp eax, section..data
je 0x404597
test byte [eax + 0x1c], 1
je 0x404597
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x19
pop ecx
call fcn.00403de4
jmp 0x404597
mov eax, dword [section..data]
cmp eax, section..data
je 0x404597
test byte [eax + 0x1c], bl
je 0x404597
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
jmp 0x40458c
mov eax, dword [section..data]
cmp eax, section..data
je 0x404597
test byte [eax + 0x1c], bl
je 0x404597
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
mov edx, 0x4016bc
pop ecx
call fcn.00402f55
xor al, al
call fcn.00408336
ret 8