Function at 0x616fcd
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop edi
mov esi, eax
cmp byte [esi + 0x15], bl
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
push ebx
je 0x617025
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [esi + 0x600]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x617050
push edi
lea eax, [esi + 0x754]
push eax
lea eax, [esi + 0x54]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00646470
add esp, 0xc
jmp 0x61704a
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [esi + 0x600]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x6170b6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub eax, 0x2733
je 0x61709b
sub eax, 0x13
je 0x617092
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push 0x71001c
push str...RMLStack.cpp:4430
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
or eax, 0xffffffff
jmp 0x61762e
push str.ICMP_port_unreachable_received_n
push 0x1e
jmp 0x6170a2
push str.Recv_would_block_n
push 0xa
call fcn.005a6bee
pop ecx
pop ecx
push ebx
mov byte [esi + 0x6d4], bl
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp byte [esi + 0x6d4], bl
je 0x61762c
mov eax, dword [ebp - 0x24]
cmp eax, 0xd
jb 0x61762c
add eax, 0xfffffff3
mov dword [esi + 0x50], eax
mov al, byte [esi + 0x48]
mov cl, al
shr cl, 2
and cl, 1
mov byte [ebp - 1], cl
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov cl, al
and cl, 1
mov byte [ebp - 3], cl
mov cl, al
shr cl, 1
and cl, 1
mov byte [ebp - 4], cl
mov cl, al
shr cl, 7
mov byte [ebp - 6], cl
mov cl, al
shr cl, 3
shr al, 6
lea ebx, [esi + 0x3c]
push dword [ebx]
and cl, 1
and al, 1
mov byte [ebp - 5], cl
mov byte [ebp - 2], al
call edi
push dword [esi + 0x40]
mov dword [ebp - 0xc], eax
call edi
push dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call edi
lea edi, [esi + 0x54]
push edi
push dword [esi + 0x50]
mov dword [ebp - 0x18], eax
push ebx
push 0x52
call fcn.00613d5c
add esp, 0x10
call fcn.0061476f
cmp eax, 3
mov dword [ebp - 0x10], eax
jg 0x617253
cmp eax, 3
je 0x6171ea
xor ecx, ecx
sub eax, ecx
je 0x617273
dec eax
je 0x6171ae
dec eax
jne 0x61762c
cmp byte [ebp - 4], al
je 0x617273
cmp dword [ebp - 0x14], 1
jne 0x617273
cmp byte [ebp - 1], al
jne 0x617306
cmp byte [ebp - 3], al
je 0x61762c
cmp dword [ebp - 0xc], ecx
jne 0x61731a
cmp dword [esi + 0x50], 0x29
jb 0x61731a
call fcn.0061666a
jmp 0x6171dc
cmp byte [ebp - 1], 0
jne 0x61762c
cmp byte [ebp - 4], 0
jne 0x61731a
cmp byte [ebp - 3], 0
je 0x61762c
cmp dword [ebp - 0xc], ecx
jne 0x61731a
mov ebx, esi
call fcn.00616569
cmp eax, 0xffffffff
jne 0x61762c
jmp 0x61708a
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
jl 0x617244
sub eax, dword [esi + 0x624]
dec eax
jns 0x617244
cmp byte [ebp - 1], 0
je 0x617212
push 1
push esi
call fcn.006149d4
pop ecx
pop ecx
jmp 0x61762c
cmp byte [ebp - 3], 0
jne 0x61731a
cmp byte [ebp - 4], 0
je 0x61762c
cmp dword [ebp - 0x14], 1
jne 0x61731a
cmp dword [esi + 0x50], 4
jb 0x61731a
call fcn.0061683d
jmp 0x61762c
cmp byte [ebp - 1], 0
jne 0x61762c
jmp 0x61736b
cmp eax, 4
jl 0x61762c
cmp eax, 0xa
jle 0x617282
cmp eax, 0xb
jle 0x61762c
cmp eax, 0xd
jg 0x61762c
cmp byte [ebp - 1], 0
jne 0x61762c
jmp 0x61731a
cmp byte [ebp - 1], 0
jne 0x617298
mov eax, esi
call fcn.0061630f
cmp eax, 0xffffffff
je 0x61708a
mov ebx, dword [esi + 0x20]
cmp ebx, 2
jne 0x6172c7
cmp byte [ebp - 2], 0
je 0x6172c1
mov eax, dword [esi + 0x774]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x6172c1
add eax, 4
mov ecx, edi
call fcn.00613fa1
test al, al
jne 0x6172c7
mov byte [ebp - 2], 0
jmp 0x6172cb
mov byte [ebp - 2], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x620]
mov edx, ecx
sub edx, dword [esi + 0x624]
sub edx, eax
js 0x617300
cmp byte [ebp - 1], 0
jne 0x61762c
inc dword [esi + 0x744]
push str.Missing_packets_n
push 0xa
call fcn.005a6bee
pop ecx
pop ecx
jmp 0x61736b
cmp byte [ebp - 1], 0
je 0x617310
call fcn.006169b4
jmp 0x61762c
cmp byte [ebp - 3], 0
je 0x617324
test ecx, ecx
je 0x61736b
call fcn.00615102
jmp 0x61762c
cmp byte [ebp - 4], 0
je 0x61762c
test ebx, ebx
je 0x617357
cmp byte [ebp - 2], 0
je 0x617357
mov edx, ecx
sub edx, eax
jns 0x617357
mov edx, dword [esi + 0x50]
sub edx, eax
add edx, ecx
test edx, edx
jg 0x617357
mov byte [esi + 0x6c4], 1
mov byte [esi + 0x6c5], 1
cmp ebx, 2
mov edi, dword [ebp - 0x14]
jne 0x61737e
mov eax, edi
sub eax, dword [esi + 0x660]
test eax, eax
jle 0x61737e
mov byte [esi + 0x6c4], 1
mov byte [esi + 0x6c5], 1
jmp 0x61762c
cmp byte [ebp - 5], 0
je 0x61738b
mov eax, esi
call fcn.0061688d
mov eax, dword [esi + 0x654]
mov ecx, edi
sub ecx, eax
js 0x6175a1
cmp byte [ebp - 2], 0
je 0x6175dc
cmp edi, eax
je 0x617539
mov ecx, dword [esi + 0x668]
mov edx, dword [esi + 0x66c]
cmp ecx, edx
jae 0x6173d4
sub ecx, eax
lea eax, [ecx + edi]
cmp eax, edx
mov dword [esi + 0x668], eax
jbe 0x6173ed
mov dword [esi + 0x668], edx
jmp 0x6173ed
cmp ecx, 0x165c00
jae 0x6173ed
xor edx, edx
mov eax, 0x1f3f11
div ecx
add eax, ecx
mov dword [esi + 0x668], eax
push dword [esi + 0x668]
push str.Congestion_window__lu_n
push 0xa
call fcn.005a6bee
add esp, 0xc
cmp byte [esi + 0x694], 0
je 0x61741c
mov eax, edi
sub eax, dword [esi + 0x69c]
test eax, eax
jle 0x61741c
call fcn.006169c9
cmp dword [esi + 0x20], 2
mov dword [esi + 0x654], edi
jne 0x617445
lea eax, [esi + 0x774]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
mov dword [ecx + 0x34], edi
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
cmp ecx, dword [eax + 0x1c]
jne 0x617445
call fcn.00614428
mov eax, dword [esi + 0x658]
sub eax, edi
jns 0x61747a
mov eax, dword [esi + 0x65c]
sub eax, edi
mov dword [esi + 0x658], edi
jns 0x617466
mov eax, esi
call fcn.006162f2
mov ecx, dword [esi + 0x658]
lea eax, [esi + 0x660]
mov edx, dword [eax]
sub edx, ecx
jns 0x61747a
mov dword [eax], ecx
and dword [esi + 0x6f4], 0
lea ebx, [esi + 0x710]
cmp byte [ebx], 0
je 0x617499
push 2
push esi
call fcn.00613fff
pop ecx
pop ecx
mov byte [ebx], 0
mov ebx, dword [ebp - 0x18]
mov eax, ebx
sub eax, dword [esi + 0x658]
add eax, edi
js 0x61758f
mov ecx, dword [ebp - 0xc]
mov eax, ecx
sub eax, dword [esi + 0x670]
test eax, eax
jg 0x6174ed
jne 0x6174c9
mov edx, edi
sub edx, dword [esi + 0x674]
test edx, edx
jg 0x6174ed
test eax, eax
jne 0x61758f
mov eax, edi
sub eax, dword [esi + 0x674]
jne 0x61758f
mov eax, ebx
sub eax, dword [esi + 0x664]
js 0x61758f
cmp ebx, dword [esi + 0x644]
mov dword [esi + 0x664], ebx
mov dword [esi + 0x670], ecx
mov dword [esi + 0x674], edi
jbe 0x61757f
push ebx
push esi
call fcn.0061515b
test al, al
pop ecx
pop ecx
jne 0x61758f
push 0x2747
call fcn.00613bfc
mov dword [esp], str...RMLStack.cpp:4777
push str._s:_malloc_failed_n
push 0x32
call fcn.005a6bee
add esp, 0xc
jmp 0x61708a
mov eax, edi
sub eax, dword [esi + 0x658]
jns 0x617499
cmp dword [esi + 0x20], 0
je 0x617499
cmp dword [esi + 0x50], 0
jne 0x617499
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [esi + 0x664]
jne 0x61749c
mov eax, esi
call fcn.006160f7
cmp eax, 0xffffffff
jne 0x61749c
jmp 0x61708a
test ebx, ebx
jne 0x61758f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x6ec], eax
cmp dword [esi + 0x6b0], 0
je 0x6175dc
push esi
call fcn.00616e00
pop ecx
jmp 0x6175dc
cmp dword [esi + 0x20], 2
jne 0x6175dc
cmp byte [ebp - 2], 0
jne 0x6175dc
cmp byte [ebp - 6], 0
jne 0x6175dc
mov eax, dword [esi + 0x658]
sub eax, dword [ebp - 0x18]
sub eax, edi
test eax, eax
jg 0x6175d5
mov ecx, edi
mov eax, esi
call fcn.00616075
cmp eax, 0xffffffff
jne 0x6175dc
jmp 0x61708a
mov eax, edi
call fcn.00616019
cmp byte [esi + 0x749], 0
je 0x6175f2
cmp edi, dword [esi + 0x660]
jne 0x6175f2
call fcn.00616865
cmp byte [ebp - 2], 0
je 0x61761a
cmp dword [ebp - 0x10], 4
je 0x61760a
cmp dword [ebp - 0x10], 5
je 0x61760a
cmp dword [ebp - 0x10], 6
jne 0x61761a
mov eax, esi
call fcn.006168f0
cmp eax, 0xffffffff
je 0x61708a
cmp dword [esi + 0x18], 0xa
jne 0x61762c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x6e0], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret