Function at 0x100146a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100b3400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1d], 0
call fcn.10014da0
mov word [ebp - 8], ax
mov eax, dword [ebp - 8]
shr eax, 8
movzx ecx, al
movzx eax, byte [ebp - 8]
shl ax, 8
or cx, ax
push edi
mov word [ebx + 0x18], cx
call fcn.10014d40
lea ecx, [ebx + 8]
push ecx
push edx
push eax
mov dword [ebp - 0xc], ecx
call fcn.10012af0
add esp, 0x14
test al, al
jne 0x1001473a
push str.mg_open_listener
push 0x195a
push str.d:jenkins.jenkinsworkspacelib_commonw3checkhelperw3checkhelper_src_third_partymongoose.cc
push 1
call fcn.10013e60
add esp, 0x10
test al, al
je 0x10014727
push edi
push str.invalid_listening_URL:__s
call fcn.10013df0
add esp, 8
mov al, byte [ebp - 0x1d]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
mov ax, word [ebx + 0x18]
xorps xmm0, xmm0
cmp byte [ebx + 0x1b], 0
push esi
mov word [ebp - 0x1a], ax
mov esi, 2
mov eax, dword [ebx + 8]
push 4
mov dword [ebp - 0x18], eax
mov eax, 0x17
push str.udp:
mov word [ebp - 0x1c], si
cmovne esi, eax
push edi
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 8], 1
call fcn.10059ec0
add esp, 0xc
mov ebx, eax
neg ebx
mov edx, 0x11
mov ecx, 6
sbb ebx, ebx
add ebx, 2
test eax, eax
cmove ecx, edx
push ecx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100147ee
push str.mg_open_listener
push 0x1964
push str.d:jenkins.jenkinsworkspacelib_commonw3checkhelperw3checkhelper_src_third_partymongoose.cc
push 1
call fcn.10013e60
add esp, 0x10
test al, al
je 0x10014902
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket:__d
call fcn.10013df0
mov al, byte [ebp - 0x1d]
add esp, 8
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
test edi, edi
je 0x10014863
push str.mg_open_listener
push 0x1969
push str.d:jenkins.jenkinsworkspacelib_commonw3checkhelperw3checkhelper_src_third_partymongoose.cc
push 1
call fcn.10013e60
add esp, 0x10
test al, al
je 0x100148fb
test edi, edi
jns 0x10014835
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10014837
xor eax, eax
push eax
push dword [ebp - 8]
push str.setsockopt_SO_EXCLUSIVEADDRUSE_:__d__d
call fcn.10013df0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, byte [ebp - 0x1d]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
mov edi, eax
test edi, edi
je 0x100148af
push str.mg_open_listener
push 0x1981
push str.d:jenkins.jenkinsworkspacelib_commonw3checkhelperw3checkhelper_src_third_partymongoose.cc
push 1
call fcn.10013e60
add esp, 0x10
test al, al
je 0x100148fb
test edi, edi
jns 0x100148a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind:__d
jmp 0x100148f3
xor eax, eax
push eax
push str.bind:__d
jmp 0x100148f3
cmp ebx, 1
jne 0x10014916
push 3
push esi
call dword [sym.imp.WS2_32.dll_listen]
mov edi, eax
test edi, edi
je 0x10014916
push str.mg_open_listener
push 0x1986
push str.d:jenkins.jenkinsworkspacelib_commonw3checkhelperw3checkhelper_src_third_partymongoose.cc
push ebx
call fcn.10013e60
add esp, 0x10
test al, al
je 0x100148fb
test edi, edi
jns 0x100148eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x100148ed
xor eax, eax
push eax
push str.listen:__d
call fcn.10013df0
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, byte [ebp - 0x1d]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
push esi
call fcn.100128e0
add esp, 8
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax + 0x30], esi
mov al, 1
pop esi
pop edi
pop ebx
call fcn.1003bac5
mov esp, ebp
pop ebp
ret