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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.004c7050
mov eax, dword [0x4f600c]
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 0x471531
cmp dword [ebp + 0x10], 0xffffffff
je 0x471767
push edi
xor edi, edi
mov dword [ebp - 0x102c], edi
cmp dword [esi + 0x78], edi
jle 0x471766
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 0x47174c
cmp dword [ebx + 0x54], 0
jne 0x47174c
test ecx, ecx
je 0x4715ce
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x471740
mov edi, dword [ebp - 0x1030]
xor ecx, ecx
mov edx, dword [edi]
test edx, edx
je 0x4715d7
mov esi, dword [ebx + 0x1c]
lea eax, [edi + 4]
cmp dword [eax], esi
je 0x4715a6
inc ecx
add eax, 4
cmp ecx, edx
jb 0x471592
mov esi, dword [ebp - 0x1028]
jmp 0x4715d7
lea eax, [edx - 1]
cmp ecx, eax
jae 0x4715c4
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 0x4715b3
dec dword [edi]
mov esi, dword [ebp - 0x1028]
jmp 0x4715d7
cmp eax, dword [ebp + 0x10]
jne 0x47174c
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x4715f9
push dword [ebp - 0x103c]
xor edi, edi
push dword [ebp - 0x102c]
push esi
call fcn.00470800
add esp, 0xc
jmp 0x47172a
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 0x471649
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 0x47166c
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 0x4716a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x47173a
cmp eax, 0x2733
je 0x47173a
push dword [ebp - 0x103c]
push dword [ebp - 0x102c]
push esi
call fcn.00470800
add esp, 0xc
jmp 0x47172a
test edi, edi
jg 0x4716c2
push dword [ebp - 0x103c]
push dword [ebp - 0x102c]
push esi
call fcn.00470800
add esp, 0xc
jmp 0x47172a
movzx eax, word [ebp - 0x1024]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x47173a
sub ecx, 2
je 0x4716fe
sub ecx, 0x15
jne 0x47173a
lea edx, [ebx + 4]
lea eax, [ebp - 0x101c]
lea esi, [ecx + 0xc]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x471734
add edx, 4
add eax, 4
sub esi, 4
jae 0x4716e5
mov esi, dword [ebp - 0x1028]
jmp 0x47170b
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x1020]
cmp eax, dword [ecx]
jne 0x47173a
push dword [ebp - 0x103c]
lea eax, [ebp - 0x1008]
push 0
push dword [ebp - 0x102c]
push edi
push eax
push esi
call fcn.00470f50
add esp, 0x18
test edi, edi
jg 0x4715d7
jmp 0x47173a
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 0x471550
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00467552
mov esp, ebp
pop ebp
ret