Function at 0x416790
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x416798
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x416a4c
push dword fs:[eax]
mov dword fs:[eax], esp
dec edx
je 0x4167cd
sub edx, 0xf
je 0x416981
sub edx, 0x10
je 0x4169bf
jmp 0x416a29
lea eax, [ebp - 0xc]
push eax
push 0x4004667f
push ebx
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x416a29
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004042cc
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.wsock32.dll_recv
lea eax, [ebp - 0x10]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004041fc
mov eax, dword [ebp - 0x10]
mov edx, 0x416a64
call fcn.004040e8
jne 0x41686c
lea eax, [ebp - 0x14]
push eax
mov ecx, 2
mov edx, 0x416a64
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x14]
call fcn.00408420
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 0x416a64
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x18]
call fcn.00408420
pop edx
call fcn.0040b54c
jmp 0x416a29
lea eax, [ebp - 0x1c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004041fc
mov eax, dword [ebp - 0x1c]
mov edx, 0x416a70
call fcn.004040e8
jne 0x41696f
lea eax, [ebp - 0x20]
push eax
mov ecx, 2
mov edx, 0x416a70
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x20]
call fcn.00408420
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 1
mov edx, 0x416a70
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x24]
call fcn.00408420
pop edx
call fcn.0040b54c
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 2
mov edx, 0x416a70
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x28]
call fcn.00408420
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, 0x416a70
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x2c]
call fcn.00408420
push eax
push 2
call fcn.00404f40
push 0
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 2
mov edx, 0x416a70
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x30]
call fcn.00408420
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, 1
mov edx, 0x416a70
mov eax, dword [ebp - 8]
call fcn.004099a0
mov eax, dword [ebp - 0x34]
call fcn.00408420
push eax
push 4
call fcn.00404f40
jmp 0x416a29
mov eax, dword [ebp - 8]
call fcn.00408420
call fcn.004081ac
jmp 0x416a29
cmp dword [0x419990], 0xffffffff
jne 0x41699d
push 0
push 0x416a74
push 0x416a74
push 0
call fcn.00404ec8
mov dword [0x41a334], 1
push 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x415854
xor edx, edx
xor eax, eax
call fcn.00403dd4
jmp 0x416a29
xor eax, eax
mov dword [0x41a334], eax
xor eax, eax
push ebp
push 0x4169e4
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4169f5
xor eax, eax
push ebp
push 0x416a18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x419990]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x416a29
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416a53
lea eax, [ebp - 0x34]
mov edx, 0xa
call fcn.00403e3c
lea eax, [ebp - 8]
call fcn.00403e18
ret