Function at 0x407d40
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.00477590
mov eax, dword [esi]
mov dword [esp + 0x20], 1
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x407d84
call fcn.00477590
mov ecx, 0x2719
jmp 0x407ecc
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.00477590
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 0x407ec4
call fcn.00477590
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.0040f840
cmp dword [esp + 0x14], ebx
jne 0x407e33
mov ecx, dword [0x4d1a00]
cmp ecx, 0x4d1a00
je 0x407e33
test byte [ecx + 0x1c], 2
je 0x407e33
cmp byte [ecx + 0x19], 5
jb 0x407e33
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.00402040
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x407f8a
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], ebx
call fcn.00477590
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.0040c920
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x407f16
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407efd
test byte [eax + 0x1c], 2
je 0x407efd
cmp byte [eax + 0x19], 2
jb 0x407efd
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.0047aa96
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x407dcf
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407efd
test byte [eax + 0x1c], 2
je 0x407efd
cmp byte [eax + 0x19], 2
jb 0x407efd
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.0047aa96
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.0041a6b0
add esp, 0x14
cmp dword [esp + 0x14], ebx
jne 0x407f8a
push dword [esp + 0xc]
push ecx
call fcn.004116d0
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407f8a
test byte [eax + 0x1c], 2
je 0x407f8a
cmp byte [eax + 0x19], 5
jb 0x407f8a
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 0x408075
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], ebx
call fcn.00477590
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.0040c9a0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x408023
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x407efd
test byte [eax + 0x1c], 2
je 0x407efd
cmp byte [eax + 0x19], 2
jb 0x407efd
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.0047aa96
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.0040cba0
cmp dword [esp + 0x14], ebx
jne 0x408075
mov ecx, dword [0x4d1a00]
cmp ecx, 0x4d1a00
je 0x408075
test byte [ecx + 0x1c], 2
je 0x408075
cmp byte [ecx + 0x19], 5
jb 0x408075
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.0047aa96
mov esp, ebp
pop ebp
ret