Function at 0x7724b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov al, byte [0x81c644]
sub esp, 0x20
test al, al
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x7724d3
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x7724eb
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x7724f7
mov ecx, dword [0x83f454]
add ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
cmp dword [esp + 0x14], 5
jle 0x77254b
mov al, byte [0x81c644]
test al, al
jne 0x772520
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x772534
sub eax, ecx
jmp 0x77253c
mov edx, dword [0x83f454]
add eax, edx
sub eax, dword [esp + 0x10]
cmp eax, 0x1388
ja 0x77269b
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
inc eax
push 0
mov dword [esp + 0x18], eax
call ebx
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x18]
push eax
push 0x4004667f
push ecx
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x7726a1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x7726a1
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
lea esi, [ebp + 0xa54c]
push 0
push 0x280
push esi
push ecx
mov dword [esp + 0x34], 0x10
call sub.WSOCK32.dll_recvfrom
mov edi, eax
mov ecx, ebp
cmp edi, 0xffffffff
je 0x772694
call fcn.00772430
mov ebx, eax
lea ecx, [edi - 4]
push ebx
mov dword [ebx + 4], ecx
mov edx, dword [esi]
mov eax, ecx
lea edi, [ebx + 0x14]
lea esi, [ebp + 0xa550]
mov dword [ebx + 0x10], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 4]
test al, al
jne 0x77261c
mov al, byte [ebx + 0xa]
test al, al
je 0x772606
push ebx
call fcn.00672c80
add esp, 4
jmp 0x7724ff
mov byte [ebx + 9], 0
mov eax, dword [ebp + 0xa548]
dec eax
mov dword [ebp + 0xa548], eax
jmp 0x7724ff
mov dword [ebx], 0
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov ecx, dword [esp + 0x22]
push ecx
call sub.WSOCK32.dll_ntohs
mov edx, dword [ebx + 4]
mov word [ebx + 0xc], ax
lea eax, [ebx + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.007728b0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
lea esi, [ebp + 0xc]
cmp ecx, eax
jl 0x772680
mov cl, byte [esi + 0xd]
test cl, cl
jne 0x772661
test eax, eax
jne 0x7724ff
mov ecx, dword [esi + 0x14]
test ecx, ecx
jle 0x7724ff
mov edx, dword [esi]
add ecx, eax
push 0
push ecx
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x7724ff
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
mov dword [edx + eax*4], ebx
jmp 0x7724ff
call fcn.00772020
jmp 0x7726a1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x81c644]
test al, al
jne 0x7726bb
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x7726d3
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x7726df
mov ecx, dword [0x83f454]
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x34]
xor edi, edi
test eax, eax
je 0x772804
cmp edi, 5
jle 0x772736
mov al, byte [0x81c644]
test al, al
jne 0x77270b
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x77271f
sub eax, ecx
jmp 0x772727
mov edx, dword [0x83f454]
add eax, edx
sub eax, dword [esp + 0x10]
cmp eax, 0x1388
ja 0x772804
push 0
inc edi
call ebx
mov eax, dword [ebp + 0x28]
mov esi, dword [eax]
mov word [esp + 0x20], 2
mov ax, word [esi + 0xc]
test ax, ax
jne 0x772757
mov cx, word [ebp + 8]
push ecx
jmp 0x772758
push eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x22], ax
mov edx, dword [esi]
mov dword [esp + 0x24], edx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x20]
push 0x10
push eax
mov eax, dword [ebp + 4]
add ecx, 4
push 0
lea edx, [esi + 0x10]
push ecx
push edx
push eax
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
je 0x7727e5
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x7727af
lea ecx, [eax - 1]
xor eax, eax
test ecx, ecx
mov dword [ebp + 0x34], ecx
jle 0x7727af
mov ecx, dword [ebp + 0x28]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [ebp + 0x34]
cmp eax, ecx
jl 0x77279d
mov al, byte [esi + 0xa]
test al, al
je 0x7727c1
push esi
call fcn.00672c80
add esp, 4
jmp 0x7727d2
mov byte [esi + 9], 0
mov eax, dword [ebp + 0xa548]
dec eax
mov dword [ebp + 0xa548], eax
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x7726ec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x772800
mov ecx, ebp
call fcn.00772020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret