Function at 0x1000e360
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x1000e39f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 5], 0
push 1
lea edx, [ebp - 5]
movq qword [ebp - 0x2c], xmm0
call fcn.1000be60
add esp, 8
mov dword [edi], 0xffffffff
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov ecx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
test ecx, ecx
je 0x1000e3cd
xor eax, eax
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1000e3cd
mov ecx, dword [ebx + 4]
push 0
push 0x3e3
push edi
call fcn.1000d400
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
push eax
push dword [ebp + 0x18]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
call fcn.1000c430
mov esi, dword [ebp + 0xc]
add esp, 8
mov dword [ebp + 0x28], eax
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x1000e541
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1000e541
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10098c30
push eax
lea ecx, [ebp - 0x14]
call fcn.10002300
mov esi, dword [0x10098c3c]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10098c38]
movq qword [ebp - 0x20], xmm0
cmp eax, 0x257edfd1
jne 0x1000e451
cmp esi, 0xb2ab117a
je 0x1000e460
cmp eax, 0x257edfd0
jne 0x1000e464
cmp esi, 0xb2ab117a
jne 0x1000e464
mov al, 1
jmp 0x1000e47e
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x10098c3c]
movzx eax, al
lea edx, [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], 0x2733
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0x10098c30
mov dword [ebp - 0xc], eax
call fcn.1000b360
test al, al
jne 0x1000e505
mov eax, dword [0x10098c38]
cmp eax, 0x257edfd1
jne 0x1000e4b8
cmp esi, 0xb2ab117a
je 0x1000e4c7
cmp eax, 0x257edfd0
jne 0x1000e4cb
cmp esi, 0xb2ab117a
jne 0x1000e4cb
mov al, 1
jmp 0x1000e4df
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
lea edx, [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], 0x4d5
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0x10098c30
mov dword [ebp - 0xc], eax
call fcn.1000b360
test al, al
je 0x1000e53e
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0x8004667e
push esi
mov dword [ebp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1000e53e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10098c30
push eax
lea ecx, [ebp - 0x20]
call fcn.10002300
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x28]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1000e562
push ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.1000d480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push edi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov eax, dword [ebp + 0x20]
push eax
push eax
mov eax, dword [ebp + 0x28]
push 0
push dword [ebp + 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1000e5ac
cmp eax, 0x3e5
je 0x1000e5ac
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.1000d400
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x1000e5c8
xor eax, eax
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1000e5c8
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
mov ecx, dword [ebx + 4]
push edi
call fcn.1000d390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24