Function at 0x4c6e8f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x24], eax
push edi
mov ebx, ecx
mov dword [ebp - 0x14], esi
call fcn.0045d830
and dword [ebp - 0x38], esi
lea ecx, [ebp - 0x38]
and dword [ebp - 0x34], esi
mov dword [ebp - 0x28], eax
xor eax, eax
push 2
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ecx
pop edi
cmp dword [ebx + 0x1c], 0xffffffff
je 0x4c6ee3
mov eax, dword [ebx + 0x1c]
or dword [ebx + 0x1c], 0xffffffff
mov dword [ebp - 0x1c], eax
jmp 0x4c6f57
test eax, eax
sete al
movzx eax, al
push eax
push ebx
call fcn.0048fbd3
mov dword [ebp - 0x1c], eax
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x4c6f3c
or esi, 1
mov dword [ebp - 0x14], esi
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x13b
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadutilwinexception_handler_server.cc
lea ecx, [ebp - 0x114]
call fcn.00431820
push str.CreateNamedPipe
add eax, 0x10
push str.Check_failed:_pipe___INVALID_HANDLE_VALUE.
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415b8c
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
test al, 1
je 0x4c6f54
and eax, 0xfffffffe
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x14], eax
call fcn.00431af0
mov esi, dword [ebp - 0x14]
push 0x20
call fcn.0049d3c0
pop ecx
test eax, eax
je 0x4c6f83
push dword [ebp - 0x20]
lea ecx, [ebx + 0x24]
push dword [ebp - 0x28]
push ecx
lea ecx, [ebx + 0x20]
push ecx
push dword [ebp - 0x24]
mov ecx, eax
push dword [ebp - 0x1c]
push dword [ebx + 0x18]
call fcn.004c687b
jmp 0x4c6f85
xor eax, eax
push 0
push 0
push eax
push 0x4c6cab
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0048b0d6
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x4c6fef
or esi, edi
mov dword [ebp - 0x14], esi
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0x14a
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadutilwinexception_handler_server.cc
lea ecx, [ebp - 0x114]
call fcn.00431820
push 0x4de764
add eax, 0x10
push str.Check_failed:_thread_handles_i_.is_valid__.
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415b8c
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
test al, 2
je 0x4c7007
and eax, 0xfffffffd
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x14], eax
call fcn.00431af0
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x18], 4
inc eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jb 0x4c6ed1
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4c70be
lea esi, [ebx + 0x20]
mov ecx, esi
mov dword [ebp - 0x24], edi
call fcn.00451aa0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x24]
call fcn.004c762c
test edi, edi
je 0x4c7079
mov ecx, edi
call fcn.004c68ad
push edi
call fcn.0049d3f3
pop ecx
cmp byte [ebx + 0x2c], 0
jne 0x4c7085
cmp dword [ebx + 0x28], 0
je 0x4c70b7
mov ecx, esi
call fcn.00451ad0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x4c7051
jmp 0x4c70be
mov ecx, esi
call fcn.00451ad0
push 2
pop esi
push 9
xor eax, eax
lea edi, [ebp - 0x5c]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 1
push eax
push ebx
call fcn.0048fc44
add esp, 0xc
sub esi, 1
jne 0x4c70c1
lea esi, [ebp - 0x38]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 4
lea eax, [ebp - 0x30]
cmp esi, eax
jne 0x4c70f7
lea edi, [ebx + 0x20]
mov ecx, edi
call fcn.00451aa0
lea eax, [ebx + 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
jmp 0x4c7144
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x4c7139
mov ecx, ebx
call fcn.004c68ad
push ebx
call fcn.0049d3f3
pop ecx
lea ecx, [ebp - 0x20]
call fcn.004cabc4
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4c7124
mov ecx, dword [ebp - 0x28]
call fcn.0049b93a
mov ecx, edi
call fcn.00451ad0
push 2
lea esi, [ebp - 0x30]
pop ebx
lea esi, [esi - 4]
dec ebx
cmp dword [esi], 0
je 0x4c7171
push dword [esi]
call fcn.0048bdd7
and dword [esi], 0
pop ecx
test ebx, ebx
jne 0x4c715d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 4