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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fb43
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 1
cmp byte [esi + 4], 0
mov ecx, dword [ebp + 0xc]
jne 0x40772d
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
test ecx, ecx
je 0x40791a
mov eax, dword [ebp + 0x14]
sub eax, ecx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x4076ef
call fcn.0041c3be
shl eax, 2
cmp eax, 0x1000
jb 0x407911
test cl, 0x1f
je 0x407707
call fcn.0041c3be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x407713
call fcn.0041c3be
sub ecx, eax
cmp ecx, 4
jae 0x40771f
call fcn.0041c3be
cmp ecx, 0x23
jbe 0x40790f
call fcn.0041c3be
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
test eax, eax
jne 0x40775d
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
test ecx, ecx
je 0x40791a
mov eax, dword [ebp + 0x14]
sub eax, ecx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x4076ef
call fcn.0041c3be
mov edi, dword [sym.imp.WS2_32.dll_send]
lea eax, [eax*4 + 5]
push 0
mov dword [ebp - 0x16], eax
mov ecx, 1
push 0xb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10000
push eax
push dword [esi]
mov word [ebp - 0x18], cx
mov byte [ebp - 0x12], 4
call edi
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 2
push 0
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push 4
push eax
push dword [esi]
call edi
mov eax, dword [ebp - 0x88]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ee4
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x88]
xor ecx, ecx
test eax, eax
je 0x4077f4
nop dword [eax + eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
mov eax, dword [ebp - 0x88]
cmp ecx, eax
jb 0x4077e0
push 0
shl eax, 2
push eax
push edx
push dword [esi]
call edi
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x84], 0
nop
lea eax, [ebp - 0x84]
push eax
push 0x4004667f
push dword [esi]
call edi
cmp dword [ebp - 0x84], 0xb
jb 0x407810
push 0
push 0xb
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x84], 0
nop dword [eax]
lea eax, [ebp - 0x84]
push eax
push 0x4004667f
push dword [esi]
call edi
cmp dword [ebp - 0x84], 4
jb 0x407850
push 0
push 4
lea eax, [ebp - 0x8c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
jbe 0x4078ed
nop
mov dword [ebp - 0x84], 0
nop word [eax + eax]
lea eax, [ebp - 0x84]
push eax
push 0x4004667f
push dword [esi]
call edi
cmp dword [ebp - 0x84], 0x60
jb 0x4078a0
push 0
push 0x60
lea eax, [ebp - 0x80]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00407a70
mov eax, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x90], eax
cmp eax, dword [ebp - 0x8c]
jb 0x407890
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x98]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebx + 8], eax
jmp 0x407741
mov ecx, eax
push ecx
call fcn.00412d5e
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412858
mov esp, ebp
pop ebp
ret 0x10