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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.004bfb50
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 0x47bce1
cmp dword [ebp + 0x10], 0xffffffff
je 0x47bf17
push edi
xor edi, edi
mov dword [ebp - 0x102c], edi
cmp dword [esi + 0x78], edi
jle 0x47bf16
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 0x47befc
cmp dword [ebx + 0x54], 0
jne 0x47befc
test ecx, ecx
je 0x47bd7e
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47bef0
mov edi, dword [ebp - 0x1030]
xor ecx, ecx
mov edx, dword [edi]
test edx, edx
je 0x47bd87
mov esi, dword [ebx + 0x1c]
lea eax, [edi + 4]
cmp dword [eax], esi
je 0x47bd56
inc ecx
add eax, 4
cmp ecx, edx
jb 0x47bd42
mov esi, dword [ebp - 0x1028]
jmp 0x47bd87
lea eax, [edx - 1]
cmp ecx, eax
jae 0x47bd74
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 0x47bd63
dec dword [edi]
mov esi, dword [ebp - 0x1028]
jmp 0x47bd87
cmp eax, dword [ebp + 0x10]
jne 0x47befc
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x47bda9
push dword [ebp - 0x103c]
xor edi, edi
push dword [ebp - 0x102c]
push esi
call fcn.0047afb0
add esp, 0xc
jmp 0x47beda
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 0x47bdf9
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 0x47be1c
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 0x47be57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x47beea
cmp eax, 0x2733
je 0x47beea
push dword [ebp - 0x103c]
push dword [ebp - 0x102c]
push esi
call fcn.0047afb0
add esp, 0xc
jmp 0x47beda
test edi, edi
jg 0x47be72
push dword [ebp - 0x103c]
push dword [ebp - 0x102c]
push esi
call fcn.0047afb0
add esp, 0xc
jmp 0x47beda
movzx eax, word [ebp - 0x1024]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x47beea
sub ecx, 2
je 0x47beae
sub ecx, 0x15
jne 0x47beea
lea edx, [ebx + 4]
lea eax, [ebp - 0x101c]
lea esi, [ecx + 0xc]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x47bee4
add edx, 4
add eax, 4
sub esi, 4
jae 0x47be95
mov esi, dword [ebp - 0x1028]
jmp 0x47bebb
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x1020]
cmp eax, dword [ecx]
jne 0x47beea
push dword [ebp - 0x103c]
lea eax, [ebp - 0x1008]
push 0
push dword [ebp - 0x102c]
push edi
push eax
push esi
call fcn.0047b700
add esp, 0x18
test edi, edi
jg 0x47bd87
jmp 0x47beea
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 0x47bd00
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047299a
mov esp, ebp
pop ebp
ret