Function at 0x10067330
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0xe8
push 0xffffffffffffffff
push 0x100fbc00
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10143964]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call sub.MSVCP140.dll__Lock_shared_ptr_spin_lock
mov edi, dword [esi + 0x5ec]
test edi, edi
je 0x1006738e
lock inc dword [edi + 4]
mov edi, dword [esi + 0x5ec]
mov eax, dword [esi + 0x5e8]
mov ebx, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
call sub.MSVCP140.dll__Unlock_shared_ptr_spin_lock
add esi, 0x5b8
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x1c], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x10067688
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp byte [eax + 0x4d0], 0
je 0x1006768e
cmp dword [ebp - 0x14], 0
jne 0x100673e6
push str.Got_a_remote_candidate_without_ICE_transport
jmp 0x10067693
sub esp, 0x18
lea ecx, [eax + 0x420]
mov dword [ebp - 0x24], ecx
push esp
call sym.datachannel.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_rtc::Description::bundleMid_void_
lea ecx, [ebp + 0xf0]
call sym.datachannel.dll_public:_void___thiscall_rtc::Candidate::hintMid_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0xf0]
push eax
call sym.datachannel.dll_public:_bool___thiscall_rtc::Description::hasCandidate_class_rtc::Candidate_const__const
test al, al
je 0x1006744b
push esi
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
test edi, edi
je 0x100674c4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100674c4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x100674c4
mov eax, dword [edi]
mov ecx, edi
jmp 0x100674c1
push 0
lea ecx, [ebp + 0xf0]
call sym.datachannel.dll_public:_bool___thiscall_rtc::Candidate::resolve_enum_rtc::Candidate::ResolveMode_
sub esp, 0xdc
lea eax, [ebp + 0xf0]
mov ecx, esp
push eax
call sym.datachannel.dll_public:_void___thiscall_rtc::Candidate::constructor_class_rtc::Candidate_const__
mov ecx, dword [ebp - 0x24]
call sym.datachannel.dll_public:_void___thiscall_rtc::Description::addCandidate_class_rtc::Candidate_
push esi
mov byte [ebp - 4], 1
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
lea ecx, [ebp + 0xf0]
call sym.datachannel.dll_public:_bool___thiscall_rtc::Candidate::isResolved_void_const
or esi, 0xffffffff
test al, al
je 0x100674f4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xf0]
push eax
call fcn.10054af0
test ebx, ebx
je 0x100674c4
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x100674c4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x100674c4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp + 0xf0]
call sym.datachannel.dll_public:_void___thiscall_rtc::Candidate::destructor_void_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
call fcn.100f06e3
lea esp, [ebp + 0xe8]
pop ebp
ret 0xdc
mov eax, dword [ebp - 0x10]
add eax, 0x5e8
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10056490
add esp, 8
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ebx
test edi, edi
je 0x10067547
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10067547
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10067547
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call fcn.1000a860
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100674a2
xor eax, eax
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test ebx, ebx
je 0x10067576
mov eax, ecx
mov edi, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
lock inc dword [ebx + 8]
mov dword [ebp], 0
mov dword [ebp + 4], 0
test edi, edi
je 0x10067592
mov dword [ebp], eax
mov dword [ebp + 4], edi
lock inc dword [edi + 8]
lea eax, [ebp + 0xf0]
push eax
lea ecx, [ebp + 8]
call sym.datachannel.dll_public:_void___thiscall_rtc::Candidate::constructor_class_rtc::Candidate__
push 0xe4
mov byte [ebp - 4], 4
call fcn.100f0182
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100675f0
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp]
mov dword [eax], ecx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
lea ecx, [eax + 8]
lea eax, [ebp + 8]
mov dword [ebp], 0
push eax
mov dword [ebp + 4], 0
call sym.datachannel.dll_public:_void___thiscall_rtc::Candidate::constructor_class_rtc::Candidate__
mov eax, dword [ebp - 0x10]
jmp 0x100675f2
xor eax, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x10056340
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1006767a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call sym.datachannel.dll_public:_void___thiscall_rtc::Candidate::destructor_void_
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x1006763a
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1006763a
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100676a9
push eax
push dword [ebp - 0x20]
call sub.MSVCP140.dll__Thrd_detach
add esp, 8
test eax, eax
jne 0x100676b0
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test edi, edi
je 0x100674a2
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100674a2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x100674a2
push 6
mov dword [ebp - 0x1c], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push str.Got_a_remote_candidate_without_remote_description
lea ecx, [ebp - 0x30]
call fcn.10005970
push 0x1012086c
lea eax, [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3