Function at 0x407210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor ebx, ebx
mov dword [ebp - 4], 0
test esi, esi
je 0x407349
call fcn.0045d110
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x18]
mov esi, dword [eax + 4]
cmp esi, 0xffffffff
jne 0x407270
call fcn.0045d110
mov ecx, 0x2719
jmp 0x4072b1
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
test edi, edi
jne 0x4072b7
call fcn.0045d110
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x4072f6
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x4072ec
test byte [eax + 0x1c], 2
je 0x4072ec
cmp byte [eax + 0x19], 2
jb 0x4072ec
push ecx
push dword [eax + 0x14]
mov edx, 0x48cc24
push dword [eax + 0x10]
mov ecx, 0x73
call fcn.00401020
add esp, 0xc
mov ebx, 0xffffffe6
jmp 0x407414
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x18]
push ecx
add eax, 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e500
cmp dword [ebp - 0x20], ebx
jne 0x407349
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x407349
test byte [eax + 0x1c], 2
je 0x407349
cmp byte [eax + 0x19], 5
jb 0x407349
push dword [ebp - 0x18]
mov edx, 0x48cc24
push dword [eax + 0x14]
mov ecx, 0x74
push dword [eax + 0x10]
call fcn.00401020
add esp, 0xc
mov esi, dword [ebp + 8]
test esi, esi
je 0x407414
mov dword [ebp - 0x20], ebx
call fcn.0045d110
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
push ecx
mov ecx, dword [eax + 0x18]
call fcn.0040b970
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4073c1
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x4072ec
test byte [eax + 0x1c], 2
je 0x4072ec
cmp byte [eax + 0x19], 2
jb 0x4072ec
push ecx
push dword [eax + 0x14]
mov edx, 0x48cc24
push dword [eax + 0x10]
mov ecx, 0x75
call fcn.00401020
mov ebx, 0xffffffe6
jmp 0x407411
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x18]
push ecx
add eax, 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e5c0
cmp dword [ebp - 0x20], ebx
jne 0x407414
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x407414
test byte [eax + 0x1c], 2
je 0x407414
cmp byte [eax + 0x19], 5
jb 0x407414
push dword [ebp - 0x18]
mov edx, 0x48cc24
push dword [eax + 0x14]
mov ecx, 0x76
push dword [eax + 0x10]
call fcn.00401020
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x407448
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x407448
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea edx, [esi + 8]
lock xadd dword [edx], edi
dec edi
jne 0x407448
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret