Function at 0x450840
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], esi
push edi
mov edi, dword [ebp + 0x1c]
cmp edx, 2
je 0x450875
cmp edx, 0x17
jne 0x4509f0
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x450886
cmp eax, 5
jne 0x4509f0
xor ecx, ecx
lea esi, [ebx + 0xc]
xor eax, eax
lock cmpxchg dword [esi], ecx
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4508f5
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], 0x25a207b9
push eax
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0x4660ddf3
push eax
push 0x10
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0xe576e98e
push eax
push 0xc8000006
push dword [esi]
mov dword [ebp - 0x10], 0x3e06748c
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 0x2c]
test eax, eax
lea eax, [ebx + 0xc]
cmovne ecx, ebx
mov dword [ebp - 0x2c], ecx
xchg dword [eax], ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, ebx
cmove eax, ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4509f0
lea eax, [edi + 0x20]
mov dword [ebp - 0x10], ecx
push eax
cmp edx, 2
mov ecx, 0x10
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, ecx
movq qword [ebp - 0x18], xmm0
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi]
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], dx
call fcn.0042e280
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x450984
push 0x2726
lea ecx, [ebp - 0x34]
call fcn.0040fae0
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x30]
cmp ecx, dword [eax + 4]
jne 0x450966
mov eax, dword [edi + 0x20]
cmp eax, dword [ebp - 0x34]
je 0x450984
mov ecx, dword [ebx + 4]
push 0
push edi
call fcn.00446ae0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
mov byte [edi + 0x34], 1
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
push edi
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x38]
push dword [esi]
call dword [ebp - 8]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x4509d4
cmp eax, 0x3e5
je 0x4509d4
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.00445200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
push edi
call fcn.00445570
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
lea edx, [ebx + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x450a39
mov eax, dword [ebx]
push ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov esi, dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.004190d0
add esp, 8
lea eax, [ebp - 0xc]
mov ecx, esi
push dword [esi + 0x18]
push 0x416200
push eax
call fcn.004381b0
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 8]
xchg dword [ecx], eax
mov esi, dword [ebp - 0x30]
test byte [esi + 4], 3
jne 0x450b3d
mov eax, dword [esi]
lea ebx, [edi + 0x20]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x450ade
mov eax, dword [0x6b1214]
test al, 1
jne 0x450a86
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov dword [ebx], 0x2719
mov dword [ebx + 4], 0x6b120c
mov esi, dword [ebp - 0x2c]
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 0x450c0c
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x450bf5
mov dword [eax + 0x14], edi
jmp 0x450bf8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.00417e70
add esp, 8
test eax, eax
js 0x450a93
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x450c1f
mov dword [ebx], 0
mov dword [ebx + 4], 0x6b1290
or byte [esi + 4], 2
lea ebx, [edi + 0x20]
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x38]
push dword [esi]
call fcn.00430000
add esp, 0x10
test eax, eax
je 0x450a93
push 0x2734
lea ecx, [ebp - 0xc]
call fcn.0040fae0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x450b7b
mov eax, dword [ebx]
cmp eax, dword [ebp - 0xc]
je 0x450ba5
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.0040fae0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x450a93
mov eax, dword [ebx]
cmp eax, dword [ebp - 0xc]
jne 0x450a93
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x450c24
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 0x10]
push 0
push 0
push edi
push eax
mov dword [ebx], 0
mov dword [ebx + 4], 0x6b1290
push dword [esi]
push 3
call fcn.00450c30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
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 [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
call fcn.006027a2
call fcn.006027a2
int3