Function at 0x4be0b1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x51a0a0]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ebx
call fcn.00469ea0
and dword [esp + 0x38], ebx
lea esi, [edi + 0x20]
and dword [esp + 0x3c], ebx
xor ecx, ecx
mov dword [esp + 0x24], eax
lea eax, [edi + 0x24]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0xc], eax
cmp dword [edi + 0x1c], 0xffffffff
je 0x4be125
mov eax, dword [edi + 0x1c]
or dword [edi + 0x1c], 0xffffffff
mov dword [esp + 0x10], eax
jmp 0x4be16d
test ecx, ecx
mov ecx, edi
sete dl
call fcn.004b9fb0
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4be15c
or ebx, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
push 0x13c
push str..._.._third_party_crashpad_crashpad_util_win_exception_handler_server.cc
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], eax
call fcn.0044bca0
test bl, 1
je 0x4be16d
lea ecx, [esp + 0x68]
and ebx, 0xfffffffe
call fcn.0044c710
push 0x20
call fcn.004cbadf
pop ecx
mov ecx, dword [edi + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
lea ecx, [edi + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x1c], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4be820
push ecx
push ecx
mov dword [eax + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.00496d0f
mov eax, dword [esp + 0xc]
cmp dword [eax], 0
jne 0x4be1ee
or ebx, 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
push 0x14b
push str..._.._third_party_crashpad_crashpad_util_win_exception_handler_server.cc
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], eax
call fcn.0044bca0
test bl, 2
je 0x4be1ff
lea ecx, [esp + 0x68]
and ebx, 0xfffffffd
call fcn.0044c710
mov ecx, dword [esp + 0x14]
add dword [esp + 0xc], 4
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 2
jb 0x4be112
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [ecx]
mov dword [esp + 0x18], ebx
call dword [eax + 4]
jmp 0x4be26a
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.0044def0
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x24]
call fcn.004bea8a
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4be257
push ecx
call fcn.004bea12
cmp byte [edi + 0x2c], 0
jne 0x4be263
cmp dword [edi + 0x28], 0
je 0x4be2a0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4be231
jmp 0x4be2a7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 2
pop ebx
mov esi, edi
xor eax, eax
lea edi, [esp + 0x44]
push 9
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov ecx, esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x120]
push eax
mov dword [esp + 0x48], 1
call fcn.004b9d67
pop ecx
sub ebx, 1
jne 0x4be2ac
mov esi, dword [esp + 0x30]
lea edi, [esp + 0x38]
mov ebx, dword [esp + 0x18]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add edi, 4
lea eax, [esp + 0x40]
cmp edi, eax
jne 0x4be2f4
mov ecx, esi
call fcn.0044def0
mov edi, dword [esp + 0x34]
mov esi, dword [edi]
mov eax, dword [esi]
mov dword [esp + 0x20], eax
jmp 0x4be338
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4be32b
push ecx
call fcn.004bea12
lea ecx, [esp + 0x20]
call fcn.00421ea5
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x4be31e
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.004a026b
mov eax, dword [edi]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x28]
and dword [edi + 4], 0
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 2
lea esi, [esp + 0x44]
pop edi
lea esi, [esi - 4]
dec edi
cmp dword [esi], 0
je 0x4be3b7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4be3a3
or ebx, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
push 0x1c
push str..._.._third_party_crashpad_crashpad_util_win_scoped_handle.cc
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], eax
call fcn.0044bca0
test bl, 4
je 0x4be3b4
lea ecx, [esp + 0x68]
and ebx, 0xfffffffb
call fcn.0044c710
and dword [esi], 0
test edi, edi
jne 0x4be36f
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 4