Function at 0x450fa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x612678]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
push edi
mov edi, ecx
cmp edx, 2
je 0x450fd5
cmp edx, 0x17
jne 0x45118d
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x450fe6
cmp eax, 5
jne 0x45118d
xor ecx, ecx
lea esi, [edi + 0xc]
xor eax, eax
lock cmpxchg dword [esi], ecx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x451055
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0x25a207b9
push eax
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0x4660ddf3
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0xe576e98e
push eax
push 0xc8000006
push dword [esi]
mov dword [ebp - 8], 0x3e06748c
mov dword [ebp - 0x28], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 0x24]
test eax, eax
lea eax, [edi + 0xc]
cmovne ecx, edi
mov dword [ebp - 0x24], ecx
xchg dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x45118d
lea eax, [ebx + 0x20]
mov dword [ebp - 8], ecx
push eax
cmp edx, 2
mov ecx, 0x10
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, ecx
movq qword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], dx
call fcn.00449e60
add esp, 0x10
cmp dword [ebx + 0x20], 0
je 0x451121
call fcn.0053de50
cmp dword [ebx + 0x24], eax
jne 0x4510b6
cmp dword [ebx + 0x20], 0x2726
je 0x451121
mov esi, dword [edi + 4]
lock inc dword [esi + 0x18]
push ebx
push 0
push 0
mov dword [ebx + 0x1c], 1
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x4511de
lea edi, [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4510f7
mov dword [eax + 0x14], ebx
jmp 0x4510fa
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
lea eax, [esi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00556510
mov esp, ebp
pop ebp
ret 0x18
mov byte [ebx + 0x34], 1
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
push ebx
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x30]
push dword [esi]
call dword [ebp - 0x28]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x451171
cmp eax, 0x3e5
je 0x451171
mov ecx, dword [edi + 4]
push esi
push eax
push ebx
call fcn.0044ec30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00556510
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.0044ecb0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00556510
mov esp, ebp
pop ebp
ret 0x18
lea edx, [edi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x4511b3
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
call fcn.00444f30
mov dword [ebp - 0x24], eax
lea ecx, [edi + 8]
xchg dword [ecx], eax
test byte [esi + 4], 3
jne 0x451241
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x4511f1
call fcn.0053de50
mov dword [ebx + 0x20], 0x2719
mov dword [ebx + 0x24], eax
mov ecx, dword [ebp - 0x24]
push 0
push ebx
call fcn.0044f570
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00556510
mov esp, ebp
pop ebp
ret 0x18
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.0053de50
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], esi
test edi, edi
js 0x4511d3
call fcn.0053de50
mov edi, dword [ebp - 0x2c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], eax
or byte [edi + 4], 2
jmp 0x451244
mov edi, dword [ebp - 0x2c]
lea esi, [ebx + 0x20]
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x30]
push dword [edi]
call fcn.0044a060
add esp, 0x10
test eax, eax
je 0x4511d3
call fcn.0053de50
cmp dword [esi + 4], eax
jne 0x451272
cmp dword [esi], 0x2734
je 0x45128c
call fcn.0053de50
cmp dword [esi + 4], eax
jne 0x4511d3
cmp dword [esi], 0x2733
jne 0x4511d3
call fcn.0053de50
mov ecx, dword [ebp - 0x24]
push 0
push 0
mov dword [esi + 4], eax
lea eax, [edi + 0x10]
push ebx
push eax
mov dword [esi], 0
push dword [edi]
push 3
call fcn.004512d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00556510
mov esp, ebp
pop ebp
ret 0x18