Function at 0x1000a470
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 0x1006a11d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
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 edx, ecx
mov dword [ebp - 0x38], edx
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], eax
cmp ecx, 2
je 0x1000a4d3
cmp ecx, 0x17
jne 0x1000a729
mov eax, dword [ebx + 0x10]
cmp eax, 1
je 0x1000a4e4
cmp eax, 5
je 0x1000a4e4
xor esi, esi
jmp 0x1000a55c
lea esi, [edx + 0xc]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jne 0x1000a552
push eax
push eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], 0x25a207b9
push eax
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x4660ddf3
push eax
mov eax, dword [ebp - 0x44]
push 0xc8000006
mov dword [ebp - 0x1c], 0xe576e98e
mov dword [ebp - 0x18], 0x3e06748c
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov edx, dword [ebp - 0x38]
test eax, eax
je 0x1000a547
mov eax, edx
mov dword [ebp - 0x3c], eax
jmp 0x1000a54a
mov eax, dword [ebp - 0x3c]
lea ecx, [edx + 0xc]
xchg dword [ecx], eax
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebx + 0xc]
xor eax, eax
cmp esi, edx
cmove esi, eax
test esi, esi
je 0x1000a729
lea eax, [edi + 0x20]
mov dword [ebp - 0x18], 0
push eax
cmp ecx, 2
mov edx, 0x10
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, edx
movq qword [ebp - 0x20], xmm0
push eax
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x30], cx
mov ecx, dword [eax]
call fcn.10007df0
add esp, 8
cmp dword [edi + 0x20], 0
je 0x1000a670
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008816c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10088e60]
cmp eax, dword [ecx + 4]
jle 0x1000a5f6
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x1000a5f6
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bfc]
jne 0x1000a60d
cmp dword [edi + 0x20], 0x2726
je 0x1000a670
mov eax, dword [ebp - 0x38]
mov esi, dword [eax + 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 0x1000a7f8
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 0x1000a651
mov dword [eax + 0x14], edi
jmp 0x1000a654
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 0x1000a7f8
mov eax, dword [ebp - 0x38]
mov byte [edi + 0x34], 1
mov eax, dword [eax + 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 esi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1000a6ba
cmp eax, 0x3e5
je 0x1000a6ba
push esi
push eax
mov eax, dword [ebp - 0x38]
push edi
mov ecx, dword [eax + 4]
call fcn.10007560
jmp 0x1000a7f8
mov eax, dword [ebp - 0x38]
lea ecx, [edi + 0x1c]
mov edx, 1
mov esi, dword [eax + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
cmp eax, 1
jne 0x1000a7f8
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1000a7f8
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 0x1000a70a
mov dword [eax + 0x14], edi
jmp 0x1000a70d
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 0x1000a7f8
lea eax, [edx + 8]
xor ecx, ecx
mov dword [ebp - 0x50], eax
lea esi, [edx + 8]
xor eax, eax
lock cmpxchg dword [esi], ecx
mov esi, dword [ebp - 0x44]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jne 0x1000a77f
mov eax, dword [edx]
push 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.10010370
add esp, 8
lea eax, [ebp - 0x40]
push dword [ecx + 0x18]
push 0x10010390
push eax
call fcn.10006860
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], eax
xchg dword [ecx], eax
test byte [esi + 4], 3
jne 0x1000a849
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1000a818
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008816c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10088e60]
cmp eax, dword [ecx + 4]
jle 0x1000a7e0
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x1000a7e0
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], 0x10086bf8
push ecx
mov ecx, dword [ebp - 0x3c]
push edi
call fcn.100090f0
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.100462d6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 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.10007d80
test esi, esi
js 0x1000a7ee
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.10008010
add esp, 8
test eax, eax
je 0x1000a7ee
mov ecx, dword [0x1008816c]
mov eax, dword fs:[0x2c]
mov edx, dword [eax + ecx*4]
mov ecx, dword [0x10088e60]
mov dword [ebp - 0x48], edx
cmp ecx, dword [edx + 4]
jle 0x1000a8bc
push 0x10088e60
call fcn.10046360
mov ecx, dword [0x10088e60]
add esp, 4
cmp ecx, 0xffffffff
jne 0x1000a8b9
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
mov ecx, dword [0x10088e60]
add esp, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bfc]
jne 0x1000a8d3
cmp dword [edi + 0x20], 0x2734
je 0x1000a92a
cmp ecx, dword [edx + 4]
jle 0x1000a90b
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x1000a90b
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bfc]
jne 0x1000a7ee
cmp dword [edi + 0x20], 0x2733
jne 0x1000a7ee
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0x10086be8
mov eax, dword [esi]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x50], 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 0x1000a979
push ecx
push edi
mov ecx, esi
call fcn.100090f0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000a7f8
push edi
push dword [ebp - 0x50]
lea ecx, [esi + 0x8c]
call fcn.1000c690
mov ecx, dword [esi + 0x14]
add ecx, 0x18
lock inc dword [ecx]
test al, al
je 0x1000a9c9
lea eax, [ebp - 0x31]
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], 1
push eax
push ecx
mov ecx, dword [esi + 0x34]
push 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0x10086be8
call fcn.10008460
add esp, 0xc
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000a7f8