Function at 0x4a1c9c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a209b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x490], 0
jne 0x4a1cef
mov eax, 0x2726
call fcn.0049ea5c
mov edx, 0x4a20b4
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x484], 0
jne 0x4a1d17
mov eax, 0x2726
call fcn.0049ea5c
mov edx, 0x4a20d8
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x47c], 0
jne 0x4a1d3f
mov eax, 0x2726
call fcn.0049ea5c
mov edx, 0x4a2100
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
xor eax, eax
push ebp
push 0x4a1e31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x485], 0
jne 0x4a1d9d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x488]
call fcn.004a0be0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x480], ebx
cmp ebx, 0x11
jne 0x4a1d86
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 2
jmp 0x4a1d93
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x485], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x491], 0
jne 0x4a1dfa
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
call fcn.004a031c
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48c]
call fcn.004a09d8
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x494], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x494]
call fcn.0049ef70
mov edx, dword [ebp - 4]
mov word [edx + 0x546], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x491], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x474], 0
jne 0x4a1e27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
call fcn.004a077c
mov edx, dword [ebp - 4]
mov dword [edx + 0x548], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x474], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a1e74
mov eax, dword [ebp - 4]
call fcn.004a22d4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x480]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4a4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x478]
call fcn.0049ece0
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x46c], ebx
inc ebx
jne 0x4a1ebc
mov edx, 0x4a213c
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x4a1f0d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d0], 0
je 0x4a1f0d
mov dword [ebp - 8], 0xffffffff
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x4a1f0d
mov edx, 0x4a214c
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
mov eax, dword [ebp - 4]
lea edx, [eax + 0x544]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x10
call fcn.0049f0d8
test eax, eax
jne 0x4a1f39
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0049f9ac
jmp 0x4a1f56
mov edx, 0x4a2170
mov eax, dword [ebp - 4]
call fcn.004a2774
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x90]
jmp 0x4a207d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x4a1fd1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4c5], 0
je 0x4a1fd1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c8]
lea eax, [ebp - 0x111]
call fcn.004099e4
lea eax, [ebp - 0x111]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
call fcn.004a077c
mov dword [ebp - 0xc], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 5
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x4a1fd1
mov edx, 0x4a2180
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a4]
dec eax
je 0x4a2003
dec eax
sub eax, 2
jae 0x4a2035
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.0049f9ac
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0049f9ac
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
jmp 0x4a2044
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov edx, 5
call fcn.0049ee7c
test eax, eax
jne 0x4a2026
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.0049f9ac
jmp 0x4a2044
mov edx, 0x4a21a4
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
mov edx, 0x4a21b4
mov eax, dword [ebp - 4]
call fcn.004a2774
jmp 0x4a207d
mov edx, dword [ebp - 4]
mov eax, 0x2b
mov dword [edx + 0x4d8], eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x401
call fcn.0049ebd4
test eax, eax
je 0x4a207d
mov edx, 0x4a21dc
mov eax, dword [ebp - 4]
call fcn.004a2774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a20a2
lea eax, [ebp - 0x11c]
mov edx, 2
call fcn.0040495c
ret