Function at 0x1000e540
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 0x1000e57f
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.1000c040
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 0x1000e5ad
xor eax, eax
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1000e5ad
mov ecx, dword [ebx + 4]
push 0
push 0x3e3
push edi
call fcn.1000d5e0
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.1000c610
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 0x1000e721
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1000e721
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10098c30
push eax
lea ecx, [ebp - 0x14]
call fcn.100023e0
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 0x1000e631
cmp esi, 0xb2ab117a
je 0x1000e640
cmp eax, 0x257edfd0
jne 0x1000e644
cmp esi, 0xb2ab117a
jne 0x1000e644
mov al, 1
jmp 0x1000e65e
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.1000b530
test al, al
jne 0x1000e6e5
mov eax, dword [0x10098c38]
cmp eax, 0x257edfd1
jne 0x1000e698
cmp esi, 0xb2ab117a
je 0x1000e6a7
cmp eax, 0x257edfd0
jne 0x1000e6ab
cmp esi, 0xb2ab117a
jne 0x1000e6ab
mov al, 1
jmp 0x1000e6bf
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.1000b530
test al, al
je 0x1000e71e
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 0x1000e71e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10098c30
push eax
lea ecx, [ebp - 0x20]
call fcn.100023e0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x28]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1000e742
push ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.1000d660
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 0x1000e78c
cmp eax, 0x3e5
je 0x1000e78c
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.1000d5e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x1000e7a8
xor eax, eax
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1000e7a8
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
mov ecx, dword [ebx + 4]
push edi
call fcn.1000d570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24