Function at 0x1000a380
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069aad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x10086040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x44], edx
cmp eax, 2
je 0x1000a3e3
cmp eax, 0x17
jne 0x1000a634
mov eax, dword [ebx + 0x10]
cmp eax, 1
je 0x1000a3f4
cmp eax, 5
jne 0x1000a634
xor ecx, ecx
lea edx, [esi + 0xc]
xor eax, eax
lock cmpxchg dword [edx], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x1000a463
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], 0x25a207b9
push eax
push 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], 0x4660ddf3
push eax
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0xe576e98e
push eax
push 0xc8000006
push dword [edx]
mov dword [ebp - 0x18], 0x3e06748c
mov dword [ebp - 0x3c], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1000a458
mov eax, esi
mov dword [ebp - 0x34], eax
jmp 0x1000a45b
mov eax, dword [ebp - 0x34]
lea ecx, [esi + 0xc]
xchg dword [ecx], eax
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1000a634
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0xc]
lea eax, [edi + 0x20]
cmp ecx, 2
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x30], cx
mov edx, 0x10
mov ecx, dword [ebp - 0x44]
push eax
mov eax, 0x1c
cmove eax, edx
lea edx, [ebp - 0x30]
mov ecx, dword [ecx]
push eax
call fcn.10007d40
add esp, 8
cmp dword [edi + 0x20], 0
je 0x1000a57d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008813c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10088e30]
cmp eax, dword [ecx + 4]
jle 0x1000a506
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x1000a506
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bcc]
jne 0x1000a51d
cmp dword [edi + 0x20], 0x2726
je 0x1000a57d
mov esi, dword [esi + 4]
lock inc dword [esi + 0x18]
push edi
push 0
push 0
mov dword [edi + 0x1c], 1
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1000a6fd
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000a55e
mov dword [eax + 0x14], edi
jmp 0x1000a561
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 [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000a6fd
mov byte [edi + 0x34], 1
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
mov eax, dword [ebp - 0x44]
push edi
push 0
push 0
push 0
push dword [ebx + 0x18]
push dword [ebp - 0x48]
push dword [eax]
call dword [ebp - 0x3c]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1000a5c5
cmp eax, 0x3e5
je 0x1000a5c5
push esi
push eax
mov eax, dword [ebp - 0x50]
push edi
mov ecx, dword [eax + 4]
call fcn.100074b0
jmp 0x1000a6fd
mov eax, dword [ebp - 0x50]
lea ecx, [edi + 0x1c]
mov edx, 1
mov esi, dword [eax + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
cmp eax, 1
jne 0x1000a6fd
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1000a6fd
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000a615
mov dword [eax + 0x14], edi
jmp 0x1000a618
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 [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000a6fd
lea edx, [esi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x1000a681
mov eax, dword [esi]
push 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.10010200
add esp, 8
lea eax, [ebp - 0x40]
push dword [ecx + 0x18]
push 0x10010220
push eax
call fcn.100067b0
mov dword [ebp - 0x34], eax
lea ecx, [esi + 8]
xchg dword [ecx], eax
mov esi, dword [ebp - 0x44]
test byte [esi + 4], 3
jne 0x1000a74e
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1000a71d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008813c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10088e30]
cmp eax, dword [ecx + 4]
jle 0x1000a6e5
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x1000a6e5
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], 0x10086bc8
push ecx
mov ecx, dword [ebp - 0x34]
push edi
call fcn.10009010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10045df2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
lea ecx, [edi + 0x20]
mov edx, esi
shr edx, 0x1f
call fcn.10007cd0
test esi, esi
js 0x1000a6f3
mov esi, dword [ebp - 0x44]
or byte [esi + 4], 2
mov edx, dword [ebp - 0x48]
lea eax, [edi + 0x20]
mov ecx, dword [esi]
push eax
push dword [ebx + 0x18]
call fcn.10007f60
add esp, 8
test eax, eax
je 0x1000a6f3
mov ecx, dword [0x1008813c]
mov eax, dword fs:[0x2c]
mov edx, dword [eax + ecx*4]
mov ecx, dword [0x10088e30]
mov dword [ebp - 0x48], edx
cmp ecx, dword [edx + 4]
jle 0x1000a7c1
push 0x10088e30
call fcn.10045e7c
mov ecx, dword [0x10088e30]
add esp, 4
cmp ecx, 0xffffffff
jne 0x1000a7be
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
mov ecx, dword [0x10088e30]
add esp, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bcc]
jne 0x1000a7d8
cmp dword [edi + 0x20], 0x2734
je 0x1000a82f
cmp ecx, dword [edx + 4]
jle 0x1000a810
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x1000a810
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bcc]
jne 0x1000a6f3
cmp dword [edi + 0x20], 0x2733
jne 0x1000a6f3
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0x10086bb8
mov eax, dword [esi]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x48], 1
mov dword [ebp - 4], 0
cmp byte [esi + 0xd8], 0
je 0x1000a87e
push ecx
push edi
mov ecx, esi
call fcn.10009010
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000a6fd
push edi
push dword [ebp - 0x3c]
lea ecx, [esi + 0x8c]
call fcn.1000c580
mov ecx, dword [esi + 0x14]
add ecx, 0x18
lock inc dword [ecx]
test al, al
je 0x1000a8ce
lea eax, [ebp - 0x35]
mov byte [ebp - 0x35], 0
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], 1
push eax
push ecx
mov ecx, dword [esi + 0x34]
push 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x10086bb8
call fcn.100083b0
add esp, 0xc
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000a6fd