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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d11b
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x514], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4a0], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x4fc], ebx
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x524], esi
mov dword [ebp - 0x49c], edx
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], ecx
call fcn.004653e0
mov dword [ebp - 0x510], eax
test edi, edi
je 0x464d99
mov ecx, dword [edi + 4]
mov ebx, dword [edi]
cmp ebx, ecx
je 0x464d93
mov eax, ecx
sub eax, ecx
sar eax, 2
add eax, eax
add eax, eax
push eax
push ecx
push ebx
mov dword [ebp - 0x500], eax
call fcn.0048bf90
mov edx, dword [ebp - 0x500]
add esp, 0xc
add edx, ebx
mov dword [edi + 4], edx
mov ebx, dword [ebp - 0x4fc]
test esi, esi
je 0x464dd2
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, eax
je 0x464dd2
mov edx, dword [ebp - 0x508]
push edx
push ecx
push eax
push eax
call fcn.00446cd0
mov ecx, dword [ebp - 0x508]
push ecx
mov edi, eax
mov eax, dword [esi + 4]
lea edx, [esi + 0xc]
push edx
push eax
push edi
call fcn.00446d60
add esp, 0x20
mov dword [esi + 4], edi
push 0x3ff
lea eax, [ebp - 0x48f]
push 0
push eax
mov byte [ebp - 0x490], 0
call fcn.0048cf80
add esp, 0xc
push 0x7f
lea ecx, [ebp - 0x8f]
push 0
push ecx
mov byte [ebp - 0x90], 0
call fcn.0048cf80
add esp, 0xc
mov dword [ebp - 0x504], 0
push 0
push 0x64
push 0
lea esi, [ebx + 8]
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x464eec
mov eax, dword [esi]
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x4f8]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x4f8], 1
je 0x464eec
call fcn.004653e0
lea edx, [ebp - 0x520]
push edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x508], eax
lea eax, [ebp - 0x4a0]
push eax
push 0
push 0x400
lea ecx, [ebp - 0x490]
push ecx
push edx
mov dword [ebp - 0x520], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x464eec
mov ax, word [ebp - 0x490]
cmp ax, word [ebx + 0xc]
jne 0x464eec
mov ecx, dword [ebp - 0x48e]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
push ecx
call esi
mov edx, 0xfb7f
and ax, dx
mov ecx, 0x8100
cmp ax, cx
jne 0x464eec
mov edx, dword [ebp - 0x48c]
push edx
call esi
movzx ebx, ax
mov eax, dword [ebp - 0x48a]
push eax
call esi
movzx eax, ax
mov dword [ebp - 0x500], eax
test ax, ax
jne 0x464f9f
mov ebx, dword [ebp - 0x4fc]
lea ecx, [ebp - 0x4cc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x530]
push edx
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x52c]
mov ecx, dword [ebp - 0x530]
push 0
push 0x2710
push eax
push ecx
call fcn.00497b00
mov esi, eax
mov eax, dword [0x637df0]
mov edi, edx
test eax, eax
jne 0x464f3f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x637df0], eax
mov ecx, dword [0x637df8]
mov edx, ecx
or edx, dword [0x637dfc]
jne 0x464f5d
mov ecx, esi
mov dword [0x637df8], ecx
mov dword [0x637dfc], edi
sub esi, ecx
sub esi, dword [ebp - 0x510]
add esi, eax
cmp esi, 0x5dc
jbe 0x464e13
mov edx, dword [ebp - 0x514]
mov dword [edx], 0x5dd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret 0x18
xor edi, edi
lea esi, [ebp - 0x484]
test ebx, ebx
je 0x464fe6
push 0
push 0x80
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x504]
push ecx
mov ecx, dword [ebp - 0x4fc]
push esi
call fcn.004652c0
test eax, eax
je 0x464f7f
movzx edx, word [ebp - 0x504]
inc edi
lea esi, [esi + edx + 4]
cmp edi, ebx
jne 0x464fab
mov eax, dword [ebp - 0x500]
movzx eax, ax
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x528], eax
test eax, eax
je 0x4651ba
lea eax, [ebp - 0x490]
push eax
push 0x80
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0x4fc]
lea edx, [ebp - 0x504]
push edx
push esi
call fcn.004652c0
test eax, eax
je 0x464f7f
movzx eax, word [ebp - 0x504]
movzx ecx, word [esi + eax]
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
add esi, eax
push ecx
call ebx
movzx edx, word [esi + 2]
push edx
movzx edi, ax
call ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [esi + 8]
push ecx
call ebx
movzx edx, ax
add esi, 0xa
mov dword [ebp - 0x518], edx
cmp edi, 1
jne 0x4650e8
mov ebx, dword [ebp - 0x51c]
test ebx, ebx
je 0x465198
mov eax, dword [ebx + 4]
mov edi, dword [esi]
lea ecx, [ebp - 0x50c]
mov dword [ebp - 0x50c], edi
cmp ecx, eax
jae 0x4650ca
mov ecx, dword [ebx]
lea edx, [ebp - 0x50c]
cmp ecx, edx
ja 0x4650ca
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [ebx + 8]
jne 0x4650b3
mov eax, ebx
call fcn.004654a0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4650c1
mov ecx, dword [ebx]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
add dword [ebx + 4], 4
jmp 0x465198
cmp eax, dword [ebx + 8]
jne 0x4650d6
mov eax, ebx
call fcn.004654a0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4650df
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x465198
cmp edi, 5
jne 0x465198
mov ebx, dword [ebp - 0x524]
test ebx, ebx
je 0x465198
lea eax, [ebp - 0x490]
push eax
push 0x80
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0x4fc]
lea edx, [ebp - 0x504]
push edx
push esi
call fcn.004652c0
test eax, eax
je 0x464f7f
lea eax, [ebp - 0x90]
xor edi, edi
push eax
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], edi
mov byte [ebp - 0x4bc], 0
call fcn.0048d170
add esp, 4
push eax
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x4bc]
call fcn.0040ba64
lea edx, [ebp - 0x4bc]
push edx
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00446490
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4a8], 0x10
jb 0x465198
mov eax, dword [ebp - 0x4bc]
push eax
call fcn.0048bcc1
add esp, 4
movzx ecx, word [ebp - 0x518]
mov eax, dword [ebp - 0x500]
inc eax
add esi, ecx
mov dword [ebp - 0x500], eax
cmp eax, dword [ebp - 0x528]
jne 0x465001
mov ecx, dword [ebp - 0x514]
test ecx, ecx
je 0x4651d2
mov eax, dword [ebp - 0x508]
sub eax, dword [ebp - 0x510]
mov dword [ecx], eax
mov eax, 1
jmp 0x464f81