Function at 0x407cf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4d1088]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
call fcn.00477000
mov eax, dword [esi]
mov dword [esp + 0x20], 1
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x407d34
call fcn.00477000
mov ecx, 0x2719
jmp 0x407e7c
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x24]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00477000
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], esi
mov ecx, eax
mov dword [esp + 0x14], ecx
test edi, edi
jne 0x407e74
call fcn.00477000
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi]
lea eax, [esp + 0x18]
push eax
call fcn.0040f7f0
cmp dword [esp + 0x14], ebx
jne 0x407de3
mov ecx, dword [0x4d1a00]
cmp ecx, 0x4d1a00
je 0x407de3
test byte [ecx + 0x1c], 2
je 0x407de3
cmp byte [ecx + 0x19], 5
jb 0x407de3
cmp dword [esp + 0x20], ebx
mov edx, str.FALSE
mov eax, str.TRUE
cmove eax, edx
mov edx, 0x4be4d0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x6a
call fcn.00401ff0
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x407f3a
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], ebx
call fcn.00477000
mov ecx, dword [esi]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040c8d0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x407ec6
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407ead
test byte [eax + 0x1c], 2
je 0x407ead
cmp byte [eax + 0x19], 2
jb 0x407ead
push ecx
push dword [eax + 0x14]
mov edx, 0x4be4d0
mov ecx, 0x6d
push dword [eax + 0x10]
call fcn.00401a90
mov ebx, 0xffffffea
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x407d7f
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407ead
test byte [eax + 0x1c], 2
je 0x407ead
cmp byte [eax + 0x19], 2
jb 0x407ead
push ecx
push dword [eax + 0x14]
mov edx, 0x4be4d0
mov ecx, 0x69
push dword [eax + 0x10]
call fcn.00401a90
add esp, 0xc
mov ebx, 0xffffffea
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
mov dl, byte [ecx + 4]
lea eax, [esp + 0x24]
mov ecx, dword [ecx]
push eax
push 0x1001
push 0xffff
call fcn.0041a660
add esp, 0x14
cmp dword [esp + 0x14], ebx
jne 0x407f3a
push dword [esp + 0xc]
push ecx
call fcn.00411680
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407f3a
test byte [eax + 0x1c], 2
je 0x407f3a
cmp byte [eax + 0x19], 5
jb 0x407f3a
push dword [esp + 0x1c]
mov edx, 0x4be4d0
mov ecx, 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401a90
add esp, 0xc
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x408025
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], ebx
call fcn.00477000
mov ecx, dword [esi]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040c950
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x407fd3
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407ead
test byte [eax + 0x1c], 2
je 0x407ead
cmp byte [eax + 0x19], 2
jb 0x407ead
push ecx
push dword [eax + 0x14]
mov edx, 0x4be4d0
mov ecx, 0x6f
push dword [eax + 0x10]
call fcn.00401a90
mov ebx, 0xffffffea
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040cb50
cmp dword [esp + 0x14], ebx
jne 0x408025
mov ecx, dword [0x4d1a00]
cmp ecx, 0x4d1a00
je 0x408025
test byte [ecx + 0x1c], 2
je 0x408025
cmp byte [ecx + 0x19], 5
jb 0x408025
push dword [esp + 0x1c]
mov edx, 0x4be4d0
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x70
call fcn.00401a90
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret