Function at 0x1000dc90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x38], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], esi
push edi
mov edi, dword [ebp + 0x28]
cmp ecx, 0xffffffff
je 0x1000dcf4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x25], 0
push 1
lea edx, [ebp - 0x25]
movq qword [ebp - 0x18], xmm0
call fcn.1000a8d0
mov eax, dword [ebp - 0x2c]
add esp, 8
mov dword [eax], 0xffffffff
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], ecx
test esi, esi
je 0x1000dd7e
xor eax, eax
lock xadd dword [esi], eax
cmp eax, 1
jne 0x1000dd7e
mov esi, dword [ebx + 4]
push edi
push 2
push 0
mov dword [edi + 0x1c], eax
mov dword [edi], 0x1007d078
mov dword [edi + 8], 0x3e3
mov dword [edi + 0xc], 0
push dword [esi + 0x14]
call ecx
test eax, eax
jne 0x1000dd7e
lea eax, [esi + 0x38]
push eax
call dword [ebp - 0x30]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000dd67
mov dword [eax + 0x14], edi
jmp 0x1000dd6a
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
lea eax, [esi + 0x38]
push eax
call dword [ebp - 0x34]
push 1
push 0
push 0
push dword [ebp + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
push dword [ebp + 0x14]
movq qword [ebp - 0x18], xmm0
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
lea ecx, [ebp - 0x18]
cmp esi, 0xffffffff
sete dl
call fcn.1000a620
cmp esi, 0xffffffff
jne 0x1000ddbb
or esi, esi
jmp 0x1000ddd9
cmp dword [ebp + 0x10], 0x17
jne 0x1000ddd9
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1000de0a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x25], 0
push 1
lea edx, [ebp - 0x25]
movq qword [ebp - 0x24], xmm0
call fcn.1000a8d0
mov eax, dword [ebp - 0x2c]
add esp, 8
mov dword [eax], esi
cmp esi, 0xffffffff
jne 0x1000de32
push ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.1000c790
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1005c9d3
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
push 0
push dword [ebp - 0x3c]
push esi
push dword [ebp - 0x38]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1000decf
cmp eax, 0x3e5
je 0x1000decf
mov esi, dword [ebx + 4]
push edi
push 2
push 0
mov dword [edi + 0x1c], 1
mov dword [edi], 0x1007d078
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
push dword [esi + 0x14]
call dword [ebp - 0x40]
test eax, eax
jne 0x1000def4
lea ebx, [esi + 0x38]
push ebx
call dword [ebp - 0x30]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000dea8
mov dword [eax + 0x14], edi
jmp 0x1000deab
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1000deeb
xor eax, eax
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1000deeb
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
mov ecx, dword [ebx + 4]
push edi
call fcn.1000c720
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 0x24