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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.004bfd20
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1030], ecx
mov dword [ebp - 0x103c], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1028], esi
test ecx, ecx
jne 0x47bec1
cmp dword [ebp + 0x10], 0xffffffff
je 0x47c0f7
push edi
xor edi, edi
mov dword [ebp - 0x102c], edi
cmp dword [esi + 0x78], edi
jle 0x47c0f6
xor edx, edx
mov dword [ebp - 0x1034], edx
push ebx
nop dword [eax]
mov ebx, dword [esi + 0x74]
add ebx, edx
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x47c0dc
cmp dword [ebx + 0x54], 0
jne 0x47c0dc
test ecx, ecx
je 0x47bf5e
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47c0d0
mov edi, dword [ebp - 0x1030]
xor ecx, ecx
mov edx, dword [edi]
test edx, edx
je 0x47bf67
mov esi, dword [ebx + 0x1c]
lea eax, [edi + 4]
cmp dword [eax], esi
je 0x47bf36
inc ecx
add eax, 4
cmp ecx, edx
jb 0x47bf22
mov esi, dword [ebp - 0x1028]
jmp 0x47bf67
lea eax, [edx - 1]
cmp ecx, eax
jae 0x47bf54
lea edx, [edi + 4]
lea edx, [edx + ecx*4]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov eax, dword [edi]
dec eax
cmp ecx, eax
jb 0x47bf43
dec dword [edi]
mov esi, dword [ebp - 0x1028]
jmp 0x47bf67
cmp eax, dword [ebp + 0x10]
jne 0x47c0dc
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x47bf89
push dword [ebp - 0x103c]
xor edi, edi
push dword [ebp - 0x102c]
push esi
call fcn.0047b190
add esp, 0xc
jmp 0x47c0ba
cmp dword [ebx], 2
mov ecx, 0x10
mov eax, 0x1c
cmove eax, ecx
mov dword [ebp - 0x1038], eax
mov eax, dword [esi + 0x91b8]
mov ecx, dword [ebx + 0x1c]
test eax, eax
je 0x47bfd9
push dword [esi + 0x91bc]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x1038]
push edx
lea edx, [ebp - 0x1024]
push edx
push 0
push 0x1001
lea edx, [ebp - 0x1008]
push edx
push ecx
call eax
add esp, 0x1c
jmp 0x47bffc
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1024]
push eax
push 0
push 0x1001
lea eax, [ebp - 0x1008]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c037
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x47c0ca
cmp eax, 0x2733
je 0x47c0ca
push dword [ebp - 0x103c]
push dword [ebp - 0x102c]
push esi
call fcn.0047b190
add esp, 0xc
jmp 0x47c0ba
test edi, edi
jg 0x47c052
push dword [ebp - 0x103c]
push dword [ebp - 0x102c]
push esi
call fcn.0047b190
add esp, 0xc
jmp 0x47c0ba
movzx eax, word [ebp - 0x1024]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x47c0ca
sub ecx, 2
je 0x47c08e
sub ecx, 0x15
jne 0x47c0ca
lea edx, [ebx + 4]
lea eax, [ebp - 0x101c]
lea esi, [ecx + 0xc]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x47c0c4
add edx, 4
add eax, 4
sub esi, 4
jae 0x47c075
mov esi, dword [ebp - 0x1028]
jmp 0x47c09b
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x1020]
cmp eax, dword [ecx]
jne 0x47c0ca
push dword [ebp - 0x103c]
lea eax, [ebp - 0x1008]
push 0
push dword [ebp - 0x102c]
push edi
push eax
push esi
call fcn.0047b8e0
add esp, 0x18
test edi, edi
jg 0x47bf67
jmp 0x47c0ca
mov esi, dword [ebp - 0x1028]
mov edi, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x1034]
mov ecx, dword [ebp - 0x1030]
inc edi
add edx, 0x58
mov dword [ebp - 0x102c], edi
mov dword [ebp - 0x1034], edx
cmp edi, dword [esi + 0x78]
jl 0x47bee0
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00472b2a
mov esp, ebp
pop ebp
ret