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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x524]
lea ecx, [ebp - 4]
push eax
call fcn.005e6fa0
mov eax, dword [ebx + 0x4d8]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x61ca73
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea edx, [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push edx
mov dword [ebp - 0x18], ecx
push 0x4004667f
push esi
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], ecx
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x61ca76
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x61ca76
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20]
push eax
push ecx
push 0
push edx
push edi
push esi
call sub.WSOCK32.dll_recvfrom
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x61cb86
add eax, 0xfffffffc
lea esi, [edi + 4]
push 0
push eax
push esi
call fcn.005e6d90
add esp, 0xc
mov dword [ebp - 0xc], eax
push eax
mov eax, dword [ebp - 0xc]
bswap eax
mov dword [ebp - 0xc], eax
pop eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
cmp eax, ecx
je 0x61cb20
mov dword [ebx + 0x4d8], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x4dc]
mov ecx, dword [ebx + 0x4d8]
cmp eax, ecx
jge 0x61cbfe
cmp esi, dword [ebx + 0x4e0]
jne 0x61cbfe
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0x4cc]
lea eax, [eax + edx*2]
lea esi, [ecx + eax*4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0x258]
cmp eax, ecx
mov dword [ebp + 8], eax
jl 0x61cabd
mov eax, ecx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x4d0]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dx, word [ebx + 0x4d4]
mov word [eax], dx
mov edx, dword [ebx + 0x4dc]
mov ecx, dword [ebx + 0x4d8]
inc edx
mov eax, edx
mov dword [ebx + 0x4dc], edx
cmp eax, ecx
jl 0x61cb0c
xor eax, eax
mov dword [ebx + 0x4dc], eax
mov dword [ebx + 0x4d8], eax
lea ecx, [ebp - 4]
call fcn.005e6fd0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1e]
add ecx, 0x1c
push 0
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
mov ecx, ebx
call fcn.0061cd90
mov eax, dword [ebp + 0xc]
sub eax, 4
push eax
push esi
push edi
mov dword [ebp + 0xc], eax
call fcn.0078c350
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1e]
add esp, 0xc
mov dword [ebx + 0x4e0], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edx
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0061c6f0
test al, al
jne 0x61cb77
mov dword [ebx + 0x4d8], 0
mov dword [ebx + 0x4dc], 0
jmp 0x61ca73
cmp eax, 0xffffffff
jne 0x61ca76
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x61ca76
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], 4
je 0x61cbcb
lea edx, [ebp + 8]
lea eax, [ebp - 0x10]
push edx
push eax
push 0x1007
push 0xffff
push esi
call sub.WSOCK32.dll_getsockopt
cmp dword [ebp - 0xc], 0x2746
jne 0x61ca76
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [ecx], edx
mov cx, word [ebp - 0x1e]
mov word [eax], cx
lea ecx, [ebp - 4]
call fcn.005e6fd0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 4]
call fcn.005e6fd0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14