Function at 0x411a50
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 0x44e16d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x463040]
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 - 0x54], esi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x48], edx
cmp eax, 2
je 0x411ab9
cmp eax, 0x17
jne 0x411c4c
mov eax, dword [ebx + 0x10]
cmp eax, 1
je 0x411aca
cmp eax, 5
jne 0x411c4c
xor ecx, ecx
lea edx, [esi + 0xc]
xor eax, eax
lock cmpxchg dword [edx], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x411b39
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0x25a207b9
push eax
push 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0x4660ddf3
push eax
push 0x10
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0xe576e98e
push eax
push 0xc8000006
push dword [edx]
mov dword [ebp - 0x24], 0x3e06748c
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x411b2e
mov eax, esi
mov dword [ebp - 0x40], eax
jmp 0x411b31
mov eax, dword [ebp - 0x40]
lea ecx, [esi + 0xc]
xchg dword [ecx], eax
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x411c4c
xorps xmm0, xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0xc]
lea eax, [edi + 0x20]
cmp ecx, 2
movq qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x3c], cx
mov edx, 0x10
mov ecx, dword [ebp - 0x48]
push eax
mov eax, 0x1c
cmove eax, edx
lea edx, [ebp - 0x3c]
mov ecx, dword [ecx]
push eax
call fcn.0040ee70
add esp, 8
cmp dword [edi + 0x20], 0
je 0x411bf0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46864c]
cmp eax, dword [ecx + 4]
jle 0x411bd1
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x411bd1
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x463bd8]
jne 0x411be8
cmp dword [edi + 0x20], 0x2726
je 0x411bf0
mov esi, dword [esi + 4]
jmp 0x411d0a
mov byte [edi + 0x38], 1
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
push edi
push 0
push 0
push 0
push dword [ebx + 0x18]
push dword [ebp - 0x4c]
push dword [eax]
call dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x411c3b
cmp eax, 0x3e5
je 0x411c3b
mov ecx, dword [ebp - 0x54]
push esi
push eax
push edi
mov ecx, dword [ecx + 4]
call fcn.0040e400
jmp 0x411f6f
mov ecx, dword [ebp - 0x54]
push edi
mov ecx, dword [ecx + 4]
call fcn.0040e390
jmp 0x411f6f
lea edx, [esi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x411c99
mov eax, dword [esi]
push 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.0041e1d0
add esp, 8
lea eax, [ebp - 0x20]
push dword [ecx + 0x18]
push 0x41e1f0
push eax
call fcn.0040d120
mov dword [ebp - 0x40], eax
lea ecx, [esi + 8]
xchg dword [ecx], eax
mov esi, dword [ebp - 0x48]
test byte [esi + 4], 3
jne 0x411d80
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x411d4f
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46864c]
cmp eax, dword [ecx + 4]
jle 0x411cf6
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x411cf6
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], 0x463bd4
mov esi, dword [ebp - 0x40]
mov esi, dword [esi + 0x14]
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 0x411f6f
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 0x411f55
mov dword [eax + 0x14], edi
jmp 0x411f58
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 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.0040ee00
test esi, esi
js 0x411d04
mov esi, dword [ebp - 0x48]
or byte [esi + 4], 2
mov edx, dword [ebp - 0x4c]
lea eax, [edi + 0x20]
mov ecx, dword [esi]
push eax
push dword [ebx + 0x18]
call fcn.0040f0a0
add esp, 8
test eax, eax
je 0x411d04
mov eax, dword fs:[0x2c]
mov ecx, dword [0x46864c]
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
cmp ecx, dword [edx + 4]
jle 0x411df0
push 0x46864c
call fcn.00434878
mov ecx, dword [0x46864c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x411ded
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
mov ecx, dword [0x46864c]
add esp, 4
mov edx, dword [ebp - 0x4c]
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x463bd8]
jne 0x411e07
cmp dword [edi + 0x20], 0x2734
je 0x411e5e
cmp ecx, dword [edx + 4]
jle 0x411e3f
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x411e3f
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x463bd8]
jne 0x411d04
cmp dword [edi + 0x20], 0x2733
jne 0x411d04
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0x463bbc
mov eax, dword [esi]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [ebp - 0x41], al
mov byte [ebp - 0x4c], al
mov dword [ebp - 4], 0
cmp byte [esi + 0xfc], 0
je 0x411f20
mov esi, dword [esi + 0x14]
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
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x4c], eax
jne 0x411f11
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 0x411ee5
mov dword [eax + 0x14], edi
jmp 0x411ee8
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]
mov esi, dword [ebp - 0x4c]
push eax
call esi
cmp byte [ebp - 0x41], 0
je 0x411f4e
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov eax, 3
jmp 0x411f72
mov esi, eax
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov eax, 3
jmp 0x411f72
push edi
push dword [ebp - 0x18]
lea ecx, [esi + 0x8c]
call fcn.00418cc0
mov ecx, dword [esi + 0x14]
add ecx, 0x18
lock inc dword [ecx]
test al, al
je 0x411f44
lea ecx, [esi + 0x30]
call fcn.004101a0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 3
jmp 0x411f72
mov dword [esi + 0x54], edi
lea eax, [esi + 0x34]
mov dword [esi + 0x58], edi
mov ecx, 1
xchg dword [eax], ecx
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
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.0043435c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c