Function at 0x477dd8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4782a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x46c], 0xffffffff
je 0x477e20
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4e2], 7
je 0x477e20
mov edx, 0x4782c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x47828d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x490], 0
jne 0x477e3e
mov edx, 0x4782e8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x47828d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x47c], 0
jne 0x477e5c
mov edx, 0x47830c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x47828d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x484], 0
jne 0x477e7a
mov edx, 0x478338
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x47828d
xor eax, eax
push ebp
push 0x477fa4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x485], 0
jne 0x477ed8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x488]
call fcn.00477554
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x480], ebx
cmp ebx, 0x11
jne 0x477ec1
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 2
jmp 0x477ece
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 0x477f2f
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00476c20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48c]
call fcn.0047734c
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.00475888
mov edx, dword [ebp - 4]
mov word [edx + 0x55a], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x491], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x486], 0
jne 0x477f6d
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00476c20
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x498]
call fcn.0047734c
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x49c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x486], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x474], 0
jne 0x477f9a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
call fcn.004770f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x55c], 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 0x477fe1
mov eax, dword [ebp - 4]
call fcn.00478a7c
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.004755a8
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x46c], ebx
inc ebx
jne 0x478029
mov edx, 0x478374
mov eax, dword [ebp - 4]
call fcn.00478f08
jmp 0x47828d
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00476238
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x4780e6
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d5], 0
je 0x478097
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4dc]
cmp eax, 1
je 0x478097
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x478097
mov edx, 0x478390
mov eax, dword [ebp - 4]
call fcn.00478f08
jmp 0x47828d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x55c], 0xffffffff
jne 0x4781d4
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x20
mov edx, 0xffff
call fcn.00475628
test eax, eax
je 0x4781d4
mov edx, 0x4783b8
mov eax, dword [ebp - 4]
call fcn.00478f08
jmp 0x47828d
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 4
mov edx, 0xffff
call fcn.00475628
test eax, eax
je 0x478121
mov edx, 0x4783dc
mov eax, dword [ebp - 4]
call fcn.00478f08
jmp 0x47828d
mov eax, dword [ebp - 4]
test byte [eax + 0x4e1], 2
je 0x478168
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 1
mov edx, 6
call fcn.00475628
test eax, eax
je 0x478168
mov edx, 0x478400
mov eax, dword [ebp - 4]
call fcn.00478f08
jmp 0x47828d
mov eax, dword [ebp - 4]
call fcn.00477d20
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 8
mov edx, 0xffff
call fcn.00475628
test eax, eax
je 0x4781ab
mov edx, 0x478430
mov eax, dword [ebp - 4]
call fcn.00478f08
jmp 0x47828d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x49c], 0
jne 0x4781cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a0]
mov edx, 0x478454
call fcn.00404ad0
je 0x4781d4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, dword [ebp - 4]
mov eax, 0x3b
mov dword [edx + 0x4e8], 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.0047549c
test eax, eax
je 0x47820f
mov edx, 0x478464
mov eax, dword [ebp - 4]
call fcn.00478f08
jmp 0x47828d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x478231
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00476238
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
jmp 0x47828d
mov eax, dword [ebp - 4]
lea edx, [eax + 0x558]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x10
call fcn.00475978
test eax, eax
jne 0x47825d
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00476238
jmp 0x47828d
call fcn.00475360
cmp eax, 0x2733
jne 0x478275
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00476238
jmp 0x47828d
call fcn.00475360
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov edx, 0x47847c
mov eax, dword [ebp - 4]
call fcn.00478f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4782af
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004046f8
ret