Function at 0x10018dc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042423
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100590e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edx, str.0.0.0.0
mov edi, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x18], 0xf
cmovne edx, eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [edx], 0
jne 0x10018e1c
xor ecx, ecx
jmp 0x10018e2a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018e21
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.100033f0
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x90]
call fcn.100070b0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x10018e64
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10001780
push 6
push 1
push dword [ebp - 0x78]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0xa8], esi
cmp esi, 0xffffffff
jne 0x10018eb3
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x10018eab
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.10001780
or eax, 0xffffffff
jmp 0x10019026
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 3
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x98], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x10018ef0
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push 0x10057260
push eax
call fcn.1002229c
push 4
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 1
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [ebp - 0x78], 0x17
lea ecx, [ebp - 0x90]
xorps xmm0, xmm0
jne 0x10018f6f
mov eax, 0x17
movq qword [ebp - 0x46], xmm0
movups xmmword [ebp - 0x56], xmm0
mov word [ebp - 0x3e], 0
mov word [ebp - 0x58], ax
call fcn.10007ba0
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.10004b50
lea ecx, [ebp - 0x90]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
call fcn.10007bb0
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x56], ax
lea eax, [ebp - 0x58]
push 0x1c
jmp 0x10018f8f
xor eax, eax
movq qword [ebp - 0x3a], xmm0
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x32], eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x3c]
push eax
call fcn.10007690
push 0x10
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10018fb3
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push 0x10057260
push eax
call fcn.1002229c
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10019019
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push 0x10057260
push eax
call fcn.1002229c
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, 0x10018fed
ret
lea ecx, [ebp - 0x90]
call fcn.100067a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001ff0d
mov esp, ebp
pop ebp
ret