Function at 0x4f9e80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x24
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x590
mov dword [esp], str.test_NamedPipe_2_starting_n
call fcn.004f61b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebx + 0x34], 0xdeadbeef
mov esi, dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x7efa38], eax
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4e20
mov dword [esp + 8], 0x4f99a0
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x595
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__ld_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
lea edi, [ebp - 0x14]
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0x4f8120
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov dword [ebp - 0x18], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x59f
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x18]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword [ebp - 0x18]
mov eax, str..PiPe_tests_pipe.cserverThreadMain1
call fcn.004f9a20
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4f9490
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov dword [ebp - 0x18], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x5a5
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__ld_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword [ebp - 0x18]
mov eax, str..PiPe_tests_pipe.cserverThreadMain2
call fcn.004f9a20
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4f8600
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov dword [ebp - 0x18], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x5ab
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x18]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword [ebp - 0x18]
mov eax, str..PiPe_tests_pipe.cserverThreadMain3
call fcn.004f9a20
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x509590
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov dword [ebp - 0x18], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x5b1
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__ld_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword [ebp - 0x18]
mov eax, str..PiPe_tests_pipe.cserverThreadMain4
call fcn.004f9a20
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4f7960
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x5b7
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__ld_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.004f6800
mov edx, esi
mov eax, str..PiPe_tests_pipe.cserverThreadMain5
call fcn.004f9a20
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x5ba
mov eax, dword [0x7efa38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetEvent_n
call fcn.004f6800
mov eax, dword [0x7efa38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
cmp dword [0x57fce8], 1
jle 0x4fa210
mov eax, 0x5bc
call fcn.004f6080
mov dword [esp], str.test_NamedPipe_2_returning_n
call fcn.004f61b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret