Function at 0x474dcc
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x474dd5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a54
xor eax, eax
push ebp
push 0x47503c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004045a4
lea eax, [ebp - 0x1c]
call fcn.0046fbd0
push dword [ebp - 0x1c]
push 0x475054
call fcn.0040ab28
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x475064
call fcn.0040b7d0
push dword [ebp - 0x20]
push 0x475078
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404924
lea eax, [ebp - 0x24]
call fcn.0046fbd0
push dword [ebp - 0x24]
push 0x475054
call fcn.0040ab28
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x28]
mov eax, 0x475088
call fcn.0040b7d0
push dword [ebp - 0x28]
push 0x475078
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404924
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov edx, 0x475098
call fcn.004048b0
mov edx, dword [ebp - 0x2c]
mov eax, 0x4750a8
call fcn.004747cc
mov eax, dword [ebp - 4]
call fcn.00404864
inc eax
call fcn.00402a48
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404864
mov edx, eax
inc edx
mov eax, edi
call fcn.0040755c
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00409460
push 0
lea eax, [ebp - 0x30]
mov edx, edi
call fcn.0040479c
mov eax, dword [ebp - 0x30]
call fcn.00404864
push eax
push edi
mov eax, dword [0x482020]
push eax
call sub.wsock32.dll_send
mov esi, eax
inc esi
jne 0x474f60
call sub.kernel32.dll_GetLastError
mov dword [0x482038], eax
lea edx, [ebp - 0x34]
mov eax, dword [0x482038]
call fcn.0040c16c
mov edx, dword [ebp - 0x34]
mov eax, 0x482034
call fcn.004045f8
push 0x4750b8
push dword [0x482034]
push 0x4750cc
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00408c1c
push dword [ebp - 0x3c]
push 0x4750d8
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.00404924
mov edx, dword [ebp - 0x38]
mov eax, 0x4750a8
call fcn.004747cc
jmp 0x475019
push 4
lea eax, [ebp - 8]
push eax
push 0x1006
push 0xffff
mov eax, dword [0x482020]
push eax
call sub.wsock32.dll_setsockopt
mov eax, 0x14000
call fcn.00402a48
mov ebx, eax
mov edx, 0x14000
mov eax, ebx
call fcn.0040755c
push 0
push 0x14000
push ebx
mov eax, dword [0x482020]
push eax
call sub.wsock32.dll_recv
mov esi, eax
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.004095d0
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
call fcn.0040486c
mov dword [ebp - 8], 0x3e8
push 4
lea eax, [ebp - 8]
push eax
push 0x1006
push 0xffff
mov eax, dword [0x482020]
push eax
call sub.wsock32.dll_setsockopt
test esi, esi
jg 0x474f87
mov eax, edi
call fcn.00402a78
mov eax, ebx
call fcn.00402a78
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4750e4
call fcn.004048b0
mov edx, dword [ebp - 0x44]
mov eax, 0x4750a8
call fcn.004747cc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004045f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475043
lea eax, [ebp - 0x44]
mov edx, 0xe
call fcn.004045c8
lea eax, [ebp - 4]
call fcn.004045a4
ret