Function at 0x413570
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov eax, 0x2818
lea ebp, [esp - 0x2798]
call fcn.004aec00
mov eax, dword [0x504530]
push ebx
push esi
mov esi, ecx
mov dword [ebp + 0x2794], eax
mov eax, dword [esi + 0x24]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [ebp - 0x7c], esi
jne 0x4135b7
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x2794]
call fcn.004ae38e
add ebp, 0x2798
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x38]
test eax, eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], 0
je 0x413691
cmp dword [eax], 0
je 0x413691
cmp dword [0x534510], 0x64
jbe 0x4135f5
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x413691
lea eax, [edi - 0x3e8]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x7c]
mov ebx, 0xffffffc0
mov edx, dword [ebp - 0x74]
xor eax, eax
cmp edx, dword [ecx + ebx*4 + 0x24c]
ja 0x41361b
add eax, dword [ecx + ebx*4 + 0x14c]
inc ebx
jne 0x41360b
mov dword [ebp - 0x70], eax
mov edx, dword [0x534510]
cmp edx, 0x64
mov ecx, dword [esi + 0x38]
mov ecx, dword [ecx]
jae 0x413647
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x413647
imul edx, ecx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov ecx, edx
mov ebx, dword [esi + 0x250]
mov edx, edi
sub edx, ebx
imul edx, ecx
mov eax, 0x10624dd3
mul edx
mov eax, dword [ebp - 0x70]
shr edx, 6
cmp eax, ecx
mov dword [ebp - 0x74], edx
mov dword [esi + 0x250], edi
jb 0x413677
mov dword [ebp - 0x70], 0
jmp 0x413683
sub ecx, eax
cmp edx, ecx
mov dword [ebp - 0x70], ecx
lea eax, [ebp - 0x74]
jb 0x413686
lea eax, [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x70], eax
je 0x413707
mov ebx, eax
mov dword [ebp - 0x7c], 0x2800
jmp 0x4136a0
mov eax, ebx
and eax, 0xfffff
mov dword [ebp - 0x74], eax
cmp eax, 0x2800
lea eax, [ebp - 0x7c]
ja 0x4136b7
lea eax, [ebp - 0x74]
mov eax, dword [eax]
mov edx, dword [esi + 0x24]
push 0
push eax
lea ecx, [ebp - 0x6c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x413704
cmp edi, 0x2800
mov eax, dword [ebp - 0x80]
mov dword [esi + 0x44], eax
jg 0x4136ee
mov ebx, dword [esi + 0x28]
push edi
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0040e000
mov ebx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x78]
add ecx, edi
cmp ebx, 0xffffffff
mov dword [ebp - 0x78], ecx
je 0x413700
sub ebx, edi
mov dword [ebp - 0x70], ebx
test ebx, ebx
jne 0x4136a0
mov edi, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
lea edx, [esi + 0x4c]
test edx, edx
je 0x413759
test ecx, ecx
je 0x413759
mov ebx, dword [esi + 0x254]
mov eax, edi
sub eax, ebx
cmp eax, 0x64
jae 0x413732
mov edx, dword [esi + 0x24c]
lea eax, [esi + edx*4 + 0x4c]
add dword [eax], ecx
jmp 0x413759
mov eax, dword [esi + 0x24c]
inc eax
and eax, 0x3f
mov dword [esi + 0x24c], eax
mov dword [esi + eax*4 + 0x14c], edi
mov eax, dword [esi + 0x24c]
mov dword [esi + eax*4 + 0x4c], ecx
mov dword [esi + 0x254], edi
add dword [esi + 0x40], ecx
mov edx, dword [0x5062d8]
mov eax, dword [0x5062dc]
add edx, ecx
mov ecx, dword [ebp + 0x2794]
adc eax, 0
pop edi
pop esi
mov dword [0x5062dc], eax
mov dword [0x5062d8], edx
mov eax, 1
pop ebx
call fcn.004ae38e
add ebp, 0x2798
mov esp, ebp
pop ebp
ret