Function at 0x100ec980
Capabilities:
Check mutex on windows
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x144
mov eax, dword [0x10143964]
xor eax, esp
mov dword [esp + 0x140], eax
push ebp
mov ebp, dword [esp + 0x14c]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 8], 0
push eax
push 0x101065d8
push dword [ebp]
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 0x11
mov dword [esp + 0x34], 9
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x100eca25
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getaddrinfo_for_binding_address_failed__errno_d
push 0x44
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 4
call fcn.100df840
add esp, 0x14
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.100f06e3
add esp, 0x144
ret
mov eax, dword [esp + 4]
push esi
mov esi, eax
test esi, esi
je 0x100eca3d
cmp dword [esi + 4], 0x17
je 0x100eca3d
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100eca30
push ebx
push edi
test esi, esi
jne 0x100eca89
mov esi, eax
test esi, esi
je 0x100eca61
nop dword [eax]
cmp dword [esi + 4], 2
je 0x100eca5d
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100eca50
test esi, esi
jne 0x100eca89
push str.getaddrinfo_for_binding_address_failed:_no_suitable_address_family
push 0x4d
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 4
call fcn.100df840
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or eax, 0xffffffff
jmp 0x100ece19
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [esp + 0x2c], edi
cmp edi, 0xffffffff
jne 0x100ecad1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UDP_socket_creation_failed__errno_d
push 0x54
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 4
call fcn.100df840
add esp, 0x14
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or eax, edi
jmp 0x100ece19
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x24], 0
cmp dword [esi + 4], 0x17
jne 0x100ecaf3
push 4
lea eax, [esp + 0x28]
push eax
push 0x1b
push 0x29
push edi
call ebx
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 0xe
push 0
push edi
call ebx
cmp dword [esi + 4], 0x17
jne 0x100ecb1d
push 4
lea eax, [esp + 0x18]
push eax
push 0xe
push 0x29
push edi
call ebx
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x100000
push eax
push 0x1002
push 0xffff
push edi
call ebx
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1001
push 0xffff
push edi
call ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x100ecb8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Setting_non_blocking_mode_on_UDP_socket_failed__errno_d
push 0x78
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 4
call fcn.100df840
add esp, 0x14
jmp 0x100ecdcc
movzx ebx, word [ebp + 4]
test bx, bx
jne 0x100ecbd5
cmp word [ebp + 6], bx
jne 0x100ecbd5
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x100ece0d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UDP_socket_binding_failed__errno_d
push 0x83
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 4
call fcn.100df840
add esp, 0x14
jmp 0x100ecdcc
mov edx, dword [esi + 0x10]
movzx eax, word [ebp + 6]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], edx
push edx
push ecx
cmp bx, ax
jne 0x100ecc54
lea eax, [esp + 0x58]
mov esi, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.100e0030
add esp, 0x14
lea eax, [esp + 0x50]
push dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
push esi
test eax, eax
jne 0x100ecc36
mov eax, dword [ebp]
mov ecx, 0x10117154
test eax, eax
cmovne ecx, eax
push ecx
push str.UDP_socket_bound_to__s:_hu
push 0x8e
jmp 0x100ecdfe
push str.UDP_socket_binding_failed_on_port__hu__errno_d
push 0x93
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 4
call fcn.100df840
add esp, 0x14
jmp 0x100ecdcc
lea eax, [esp + 0xd8]
push eax
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, word [ebp + 6]
add esp, 0xc
sub ecx, ebx
mov edx, 0xffff
mov dword [esp + 0x20], ecx
mov ecx, 0x400
nop dword [eax + eax]
movzx esi, word [ebp + 4]
movzx ebx, word [ebp + 6]
test si, si
cmove esi, ecx
test bx, bx
cmove ebx, edx
cmp si, bx
jne 0x100ecca1
movzx esi, si
jmp 0x100ecd3b
cmp dword [0x1014adcc], 0
jne 0x100eccb4
call fcn.100e9500
mov dword [0x1014adcc], eax
cmp dword [0x1014add0], 0
jne 0x100ecceb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100eccfe
mov ecx, edx
xor eax, eax
mov edi, 0x1014add0
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x100ecceb
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1014add0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100ecd04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp bx, si
jbe 0x100ecd13
movzx eax, si
movzx ecx, bx
sub ecx, eax
jmp 0x100ecd15
xor ecx, ecx
mov eax, dword [0x1014adcc]
xor edx, edx
inc ecx
div ecx
mov eax, dword [0x1014adcc]
push dword [0x1014add0]
add edx, esi
inc eax
movzx esi, dx
mov dword [0x1014adcc], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [esp + 0xd0]
push esi
push eax
call fcn.100e0030
add esp, 8
lea eax, [esp + 0xd0]
push dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x100ecde2
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2740
je 0x100ecd7b
call ebx
cmp eax, 0x271d
jne 0x100ecd98
mov ecx, dword [esp + 0x20]
mov edx, 0xffff
mov eax, ecx
dec ecx
mov dword [esp + 0x20], ecx
mov ecx, 0x400
test eax, eax
jg 0x100ecc80
mov eax, dword [ebp]
mov esi, 0x10117154
test eax, eax
cmovne esi, eax
call ebx
push eax
movzx eax, word [ebp + 6]
push eax
movzx eax, word [ebp + 4]
push eax
push esi
push str.UDP_socket_binding_failed_on_port_range__s:__hu__hu___errno_d
push 0xa8
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 4
call fcn.100df840
add esp, 0x20
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100ece19
mov eax, dword [ebp]
mov ecx, 0x10117154
test eax, eax
cmovne ecx, eax
movzx eax, si
push eax
push ecx
push str.UDP_socket_bound_to__s:_hu
push 0xa0
push str.X:jenkins_workspaceworkspacehybridclient_builder_productlibdatachanneldepslibjuice_srcudp.c
push 1
call fcn.100df840
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
mov ecx, dword [esp + 0x150]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.100f06e3
add esp, 0x144
ret