Function at 0x40c310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x45702c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ecx
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ebx
call fcn.0043d1f0
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], edx
xor edi, edi
movq qword [ebp - 0x40], xmm0
nop dword [eax]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 0x1c]
cmp esi, 0xffffffff
je 0x40c364
mov dword [ecx + 0x1c], 0xffffffff
jmp 0x40c3df
test edi, edi
sete al
movzx eax, al
push eax
push ecx
call fcn.0040ee30
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x40c3cc
or ebx, 1
call sub.KERNEL32.dll_GetLastError
push eax
push 4
push 0x13b
push str..._src_util_win_exception_handler_server.cc
push str.void___thiscall_crashpad::ExceptionHandlerServer::Run_class_crashpad::ExceptionHandlerServer::Delegate__
lea ecx, [ebp - 0x114]
call fcn.00409060
push str.CreateNamedPipe
push 0x445510
push str.Check_failed:_pipe___INVALID_HANDLE_VALUE
push eax
call fcn.004011c0
add esp, 8
push eax
call fcn.004011c0
add esp, 8
push eax
call fcn.004011c0
add esp, 8
test bl, 1
je 0x40c3df
lea ecx, [ebp - 0x114]
and ebx, 0xfffffffe
call fcn.00409240
push 0x20
call fcn.0043bf67
mov edx, eax
add esp, 4
test edx, edx
je 0x40c41d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x18]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edx], ecx
mov dword [edx + 4], esi
lea ecx, [eax + 0x20]
add eax, 0x38
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], ecx
mov dword [edx + 0x1c], eax
jmp 0x40c41f
xor edx, edx
push 0
push 0
push edx
push 0x40c240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebp + edi*4 - 0x40]
test eax, eax
je 0x40c44e
cmp eax, esi
je 0x40c53c
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebp + edi*4 - 0x40], esi
test esi, esi
jne 0x40c4a5
or ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push 4
push 0x14a
push str..._src_util_win_exception_handler_server.cc
push str.void___thiscall_crashpad::ExceptionHandlerServer::Run_class_crashpad::ExceptionHandlerServer::Delegate__
lea ecx, [ebp - 0x114]
call fcn.00409060
push 0x445c5c
push 0x445510
push str.Check_failed:_thread_handles_i_.is_valid__
push eax
call fcn.004011c0
add esp, 8
push eax
call fcn.004011c0
add esp, 8
push eax
call fcn.004011c0
add esp, 8
test bl, 2
je 0x40c4b8
lea ecx, [ebp - 0x114]
and ebx, 0xfffffffd
call fcn.00409240
inc edi
cmp edi, 2
jb 0x40c350
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x40c6cc
lea eax, [esi + 0x20]
add esi, 0x38
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov ecx, eax
call fcn.00409e00
mov edx, dword [esi]
mov edi, edx
mov dword [ebp - 0x28], edx
mov esi, edx
mov ecx, dword [edx + 4]
mov eax, ecx
cmp byte [eax + 0xd], 0
jne 0x40c55a
nop dword [eax]
mov edx, dword [eax + 0x10]
cmp edx, ebx
jae 0x40c542
mov eax, dword [eax + 8]
jmp 0x40c551
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
cmp byte [esi + 0xd], 0
je 0x40c54d
cmp ebx, edx
cmovb esi, eax
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40c530
mov edx, dword [ebp - 0x28]
cmp byte [esi + 0xd], 0
jne 0x40c562
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40c57c
cmp ebx, dword [ecx + 0x10]
jae 0x40c573
mov esi, ecx
mov ecx, dword [ecx]
jmp 0x40c576
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x40c568
mov dword [ebp - 0x28], edi
cmp edi, dword [edx]
jne 0x40c595
cmp byte [esi + 0xd], 0
je 0x40c595
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.0040d1a0
jmp 0x40c5c8
cmp edi, esi
je 0x40c5c5
mov ebx, dword [ebp - 0x24]
nop dword [eax]
lea ecx, [ebp - 0x28]
call fcn.00402220
push edi
mov ecx, ebx
call fcn.0040cdb0
push 0x14
push eax
call fcn.0043bf97
mov edi, dword [ebp - 0x28]
add esp, 8
cmp edi, esi
jne 0x40c5a0
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
test ebx, ebx
je 0x40c66d
mov edi, dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
push 0xffffffffffffffff
push dword [ebx]
call edi
push 0xffffffffffffffff
push dword [ebx + 4]
mov dword [ebx], 0xffffffff
call edi
push 0xffffffffffffffff
push dword [ebx + 8]
mov dword [ebx + 4], 0xffffffff
call edi
mov dword [ebx + 8], 0xffffffff
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40c615
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x40c62c
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x40c643
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40c65a
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x2c], 0
lea ecx, [ebx + 0xc]
call fcn.00409df0
push 0x58
push ebx
call fcn.0043bf97
add esp, 8
mov ebx, dword [ebp - 0x14]
cmp byte [ebx + 0x40], 0
jne 0x40c67c
cmp dword [ebx + 0x3c], 0
je 0x40c6c2
mov ecx, dword [ebp - 0x18]
call fcn.00409e10
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x40c6d0
mov eax, dword [ebp - 0x18]
jmp 0x40c512
mov ecx, dword [ebp - 0x18]
call fcn.00409e10
jmp 0x40c6d3
mov ebx, esi
jmp 0x40c6d3
mov ebx, dword [ebp - 0x14]
mov esi, 2
nop dword [eax + eax]
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
movlpd qword [ebp - 0x58], xmm0
push eax
push ebx
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x64], 1
call fcn.0040f100
add esp, 0xc
sub esi, 1
jne 0x40c6e0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [ebp - 0x40]
push 0xffffffffffffffff
push dword [esi]
call edi
add esi, 4
lea eax, [ebp - 0x38]
cmp esi, eax
jne 0x40c724
lea edi, [ebx + 0x20]
mov ecx, edi
call fcn.00409e00
mov esi, dword [ebx + 0x38]
lea eax, [ebx + 0x38]
mov dword [ebp - 0x20], eax
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x40c84a
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x40c801
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
push 0xffffffffffffffff
push dword [ebx + 4]
mov dword [ebx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
push 0xffffffffffffffff
push dword [ebx + 8]
mov dword [ebx + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov dword [ebx + 8], 0xffffffff
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40c7a9
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x40c7c0
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x40c7d7
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40c7ee
push eax
call fcn.0040e9d0
add esp, 4
mov dword [ebx + 0x2c], 0
lea ecx, [ebx + 0xc]
call fcn.00409df0
push 0x58
push ebx
call fcn.0043bf97
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40c827
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40c823
cmp esi, dword [eax + 8]
jne 0x40c823
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40c813
mov esi, eax
jmp 0x40c83d
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40c83d
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40c831
cmp byte [esi + 0xd], 0
je 0x40c753
mov eax, dword [ebp - 0x20]
mov ecx, eax
call fcn.0040d1a0
mov ecx, edi
call fcn.00409e10
mov edi, 2
lea esi, [ebp - 0x38]
mov eax, dword [esi - 4]
lea esi, [esi - 4]
dec edi
test eax, eax
je 0x40c87a
push eax
call fcn.0040e9d0
add esp, 4
mov dword [esi], 0
test edi, edi
jne 0x40c860
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c18a
mov esp, ebp
pop ebp
ret 4