Function at 0x100e5060
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x58c
mov eax, dword [0x10143964]
xor eax, esp
mov dword [esp + 0x588], eax
push ebx
push ebp
mov ebp, dword [esp + 0x598]
cmp dword [ebp + 0x3c], 0
lea ebx, [ebp + 0x3c]
jne 0x100e50ab
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100e50bb
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x100e50ab
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100e50c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x2c], 2
je 0x100e5101
push 2
call sym.datachannel.dll_juice_state_to_string
push eax
push str.Changing_state_to__s
push 0x30c
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 2
call fcn.100df840
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov dword [ebp + 0x2c], 2
test eax, eax
je 0x100e5101
push dword [ebp + 0x28]
push 2
push ebp
call eax
add esp, 0xc
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, 0xd96
jle 0x100e5351
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
cmp edx, 2
jge 0x100e5351
mov ebx, dword [ebp + 8]
add ebx, ecx
mov dword [esp + 0x20], ebx
movzx eax, word [ebx + 0xc]
test ax, ax
jne 0x100e514a
mov word [ebx + 0xc], di
mov eax, 0xd96
movzx eax, ax
push eax
push 0x1011336c
lea eax, [esp + 0x598]
push 8
push eax
call fcn.1004b510
push 8
lea eax, [esp + 0x15c]
push eax
lea eax, [esp + 0x5a8]
push eax
push dword [ebx]
call fcn.100dff40
mov edi, eax
add esp, 0x20
test edi, edi
jle 0x100e52dd
mov eax, dword [ebx]
lea ecx, [esp + 0x590]
cmp edi, 8
jle 0x100e519b
mov edi, 8
push ecx
push eax
push str.Using_TURN_server__s:_s
push 0x217
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 2
call fcn.100df840
add esp, 0x18
lea eax, [esp + 0x148]
xor esi, esi
xor edx, edx
movzx ecx, word [eax]
cmp ecx, 2
je 0x100e51df
cmp ecx, 0x17
jne 0x100e51d3
test esi, esi
cmove esi, eax
inc edx
add eax, 0x88
cmp edx, edi
jl 0x100e51c1
jmp 0x100e51ee
imul eax, edx, 0x88
lea esi, [esp + 0x148]
add esi, eax
test esi, esi
je 0x100e52f6
push dword [ebp + 0xad08]
push str.Registering_STUN_entry__d_for_relay_request
push 0x226
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 0
call fcn.100df840
imul eax, dword [ebp + 0xad08], 0x158
lea ebx, [ebp + 0x59b8]
mov ecx, 0x22
push 0x940
push 1
mov dword [ebx + eax], 2
add ebx, eax
mov dword [ebx + 4], 0
lea edi, [ebx + 0x10]
mov dword [ebx + 0xc], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x148], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 0x1c
mov dword [ebx + 0x144], eax
test eax, eax
je 0x100e5333
push 0x14
push eax
call fcn.100ec620
add esp, 8
test eax, eax
js 0x100e5322
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0x144]
add eax, 0x18
push dword [esi + 4]
push 0x10102f94
push 0x202
push eax
call fcn.1004b510
mov ecx, dword [ebx + 0x144]
mov eax, dword [esi + 8]
push 0xc
mov dword [ecx + 0x93c], eax
lea eax, [ebx + 0x120]
push eax
call fcn.100e9520
mov eax, dword [esp + 0x2c]
inc dword [ebp + 0xad08]
cdq
push edx
push eax
push ebx
push ebp
call fcn.100e1a20
mov edx, dword [esp + 0x38]
add esp, 0x28
inc edx
mov dword [esp + 0x10], edx
jmp 0x100e52fa
push str.TURN_address_resolution_failed
push 0x241
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 4
call fcn.100df840
add esp, 0x10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, 0xd96
mov ecx, dword [esp + 0x1c]
inc eax
add dword [esp + 0x14], 0x32
add ecx, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp eax, dword [ebp + 0xc]
jge 0x100e5351
jmp 0x100e5126
push dword [ebx + 0x144]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x100e534c
push str.calloc_for_TURN_state_failed
push 0x22f
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 4
call fcn.100df840
add esp, 0x10
mov edi, 0xd96
cmp dword [ebp], 0
je 0x100e54b1
movzx eax, word [ebp + 4]
mov ecx, eax
test ax, ax
jne 0x100e536f
mov word [ebp + 4], di
mov ecx, 0xd96
movzx eax, cx
push eax
push 0x1011336c
lea eax, [esp + 0x590]
push 8
push eax
call fcn.1004b510
push 2
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x5a0]
push eax
push dword [ebp]
call fcn.100dff40
mov ebx, eax
add esp, 0x20
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x100e5498
mov eax, dword [ebp]
lea ecx, [esp + 0x588]
cmp ebx, 2
jle 0x100e53c6
mov dword [esp + 0x10], 2
push ecx
push eax
push str.Using_STUN_server__s:_s
push 0x255
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 2
call fcn.100df840
add esp, 0x18
lea eax, [esp + 0x38]
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp esi, 0x64
jge 0x100e54b1
push dword [ebp + 0xad08]
push str.Registering_STUN_entry__d_for_server_request
push 0x25a
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 0
call fcn.100df840
imul eax, dword [ebp + 0xad08], 0x158
lea ebx, [ebp + 0x59b8]
mov esi, dword [esp + 0x28]
mov ecx, 0x22
push 0xc
mov dword [ebx + eax], 1
add ebx, eax
lea eax, [ebx + 0x120]
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100e9520
mov esi, dword [esp + 0x34]
mov eax, esi
inc dword [ebp + 0xad08]
cdq
push edx
push eax
push ebx
push ebp
call fcn.100e1a20
mov eax, dword [esp + 0x48]
add esi, 0x32
add dword [esp + 0x40], 0x88
inc eax
add esp, 0x2c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
cmp eax, dword [esp + 0x10]
jl 0x100e53f3
jmp 0x100e54b1
push str.STUN_server_address_resolution_failed
push 0x266
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 4
call fcn.100df840
add esp, 0x10
push ebp
call fcn.100e67d0
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.100e1b30
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esp, 0xc
test eax, eax
jne 0x100e5671
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [eax]
call fcn.100ebcc0
mov esi, dword [esp + 0x24]
sub esi, eax
mov eax, dword [esp + 0x28]
sbb eax, edx
test eax, eax
jg 0x100e550e
jl 0x100e54fb
test esi, esi
jae 0x100e550e
xorps xmm0, xmm0
movlpd qword [esp + 0x588], xmm0
mov esi, dword [esp + 0x588]
mov eax, dword [ebp + 0x34]
push esi
push str.Entering_poll_for__d_ms
push 0x277
mov dword [esp + 0x38], eax
mov eax, 0x300
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 0
mov word [esp + 0x44], ax
call fcn.100df840
add esp, 0x14
push dword [ebp + 0x3c]
call ebx
push esi
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_WSAPoll]
cmp dword [ebp + 0x3c], 0
mov esi, eax
lea eax, [ebp + 0x3c]
jne 0x100e5588
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100e5598
mov ecx, edx
lea ebx, [ebp + 0x3c]
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x100e5585
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x3c]
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100e559e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Leaving_poll
push 0x27b
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 0
call fcn.100df840
add esp, 0x10
test esi, esi
jns 0x100e55e8
call edi
cmp eax, 0x2714
je 0x100e55cd
call edi
cmp eax, 0x2733
jne 0x100e5627
push str.poll_interrupted
push 0x27e
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 0
call fcn.100df840
add esp, 0x10
jmp 0x100e560f
cmp byte [ebp + 0xad22], 0
jne 0x100e5658
test byte [esp + 0x32], 5
jne 0x100e5645
test dword [esp + 0x32], 0x300
je 0x100e560f
push ebp
call fcn.100e4ca0
add esp, 4
test eax, eax
js 0x100e5671
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.100e1b30
add esp, 8
test eax, eax
je 0x100e54e0
jmp 0x100e5671
call edi
push eax
push str.poll_failed__errno_d
push 0x281
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 5
call fcn.100df840
add esp, 0x14
jmp 0x100e5671
push str.Error_when_polling_socket
push 0x28c
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 5
jmp 0x100e5669
push str.Agent_destruction_requested
push 0x287
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 0
call fcn.100df840
add esp, 0x10
push str.Leaving_agent_thread
push 0x295
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 1
call fcn.100df840
add esp, 0x10
cmp dword [ebp + 0x2c], 0
pop edi
pop esi
je 0x100e56cc
push 0
call sym.datachannel.dll_juice_state_to_string
push eax
push str.Changing_state_to__s
push 0x30c
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_src_agent.c
push 2
call fcn.100df840
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov dword [ebp + 0x2c], 0
test eax, eax
je 0x100e56cc
push dword [ebp + 0x28]
push 0
push ebp
call eax
add esp, 0xc
push dword [ebp + 0x3c]
call ebx
mov ecx, dword [esp + 0x590]
pop ebp
pop ebx
xor ecx, esp
call fcn.100f06e3
add esp, 0x58c
ret