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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f550
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4d0], ecx
mov ecx, dword [ebp - 0x4d0]
call fcn.1002f5f0
mov dword [ebp - 0x4f0], eax
cmp dword [ebp + 0x1c], 0
je 0x1002eeb0
mov ecx, dword [ebp + 0x1c]
call fcn.1002f900
cmp dword [ebp + 0x20], 0
je 0x1002eebe
mov ecx, dword [ebp + 0x20]
call fcn.1001a3a0
push 0x400
push 0
lea eax, [ebp - 0x490]
push eax
call fcn.1009f7e0
add esp, 0xc
push 0x80
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.1009f7e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x4c8], dx
mov eax, 1
test eax, eax
je 0x1002f296
push 0
push 0x64
push 0
mov ecx, dword [ebp - 0x4d0]
add ecx, 8
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x1002f26c
lea edx, [ebp - 0x4c4]
push edx
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x4d0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov ecx, dword [ebp - 0x4c4]
and ecx, 1
je 0x1002f26c
mov ecx, dword [ebp - 0x4d0]
call fcn.1002f5f0
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x494], 0x10
lea edx, [ebp - 0x494]
push edx
lea eax, [ebp + 8]
push eax
push 0
push 0x400
lea ecx, [ebp - 0x490]
push ecx
mov edx, dword [ebp - 0x4d0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x1002f26c
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x4e0], ecx
xor edx, edx
mov word [ebp - 0x4d4], dx
xor eax, eax
mov word [ebp - 0x4d8], ax
mov ecx, dword [ebp - 0x4e0]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x4d0]
movzx ecx, word [eax + 0xc]
cmp edx, ecx
jne 0x1002f26c
mov edx, dword [ebp - 0x4e0]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
and ecx, 0xfb7f
cmp ecx, 0x8100
jne 0x1002f26c
mov edx, dword [ebp - 0x4e0]
movzx eax, word [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4d4], ax
movzx ecx, word [ebp - 0x4d4]
test ecx, ecx
jl 0x1002f26c
mov edx, dword [ebp - 0x4e0]
movzx eax, word [edx + 6]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4d8], ax
movzx ecx, word [ebp - 0x4d8]
test ecx, ecx
jle 0x1002f26c
lea edx, [ebp - 0x484]
mov dword [ebp - 0x4cc], edx
mov dword [ebp - 0x4e8], 0
jmp 0x1002f074
mov eax, dword [ebp - 0x4e8]
add eax, 1
mov dword [ebp - 0x4e8], eax
movzx ecx, word [ebp - 0x4d4]
cmp dword [ebp - 0x4e8], ecx
je 0x1002f0ce
push 0
push 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x4c8]
push eax
mov ecx, dword [ebp - 0x4cc]
push ecx
mov ecx, dword [ebp - 0x4d0]
call fcn.1002f460
test eax, eax
jne 0x1002f0b5
xor eax, eax
jmp 0x1002f29b
movzx edx, word [ebp - 0x4c8]
mov eax, dword [ebp - 0x4cc]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x4cc], ecx
jmp 0x1002f065
mov dword [ebp - 0x4ec], 0
jmp 0x1002f0e9
mov edx, dword [ebp - 0x4ec]
add edx, 1
mov dword [ebp - 0x4ec], edx
movzx eax, word [ebp - 0x4d8]
cmp dword [ebp - 0x4ec], eax
je 0x1002f253
lea ecx, [ebp - 0x490]
push ecx
push 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x4c8]
push eax
mov ecx, dword [ebp - 0x4cc]
push ecx
mov ecx, dword [ebp - 0x4d0]
call fcn.1002f460
test eax, eax
jne 0x1002f133
xor eax, eax
jmp 0x1002f29b
movzx edx, word [ebp - 0x4c8]
add edx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4cc], edx
mov eax, dword [ebp - 0x4cc]
movzx ecx, word [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4dc], ax
mov edx, dword [ebp - 0x4cc]
movzx eax, word [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4e4], ax
mov ecx, dword [ebp - 0x4cc]
add ecx, 0xa
mov dword [ebp - 0x4cc], ecx
movzx edx, word [ebp - 0x4dc]
cmp edx, 1
jne 0x1002f1b8
cmp dword [ebp + 0x1c], 0
je 0x1002f1b8
mov eax, dword [ebp - 0x4cc]
mov ecx, dword [eax]
mov dword [ebp - 0x498], ecx
lea edx, [ebp - 0x498]
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.1002f980
jmp 0x1002f23b
movzx eax, word [ebp - 0x4dc]
cmp eax, 5
jne 0x1002f23b
cmp dword [ebp + 0x20], 0
je 0x1002f23b
lea ecx, [ebp - 0x490]
push ecx
push 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x4c8]
push eax
mov ecx, dword [ebp - 0x4cc]
push ecx
mov ecx, dword [ebp - 0x4d0]
call fcn.1002f460
test eax, eax
jne 0x1002f201
xor eax, eax
jmp 0x1002f29b
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x50c]
call fcn.10003f60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x50c]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.1001a500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50c]
call fcn.10003ed0
movzx ecx, word [ebp - 0x4e4]
add ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4cc], ecx
jmp 0x1002f0da
cmp dword [ebp + 0x24], 0
je 0x1002f26a
mov edx, dword [ebp - 0x4f4]
sub edx, dword [ebp - 0x4f0]
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
jmp 0x1002f296
mov ecx, dword [ebp - 0x4d0]
call fcn.1002f5f0
sub eax, dword [ebp - 0x4f0]
cmp eax, dword [ebp + 0x18]
jbe 0x1002f291
mov ecx, dword [ebp + 0x18]
add ecx, 1
mov edx, dword [ebp + 0x24]
mov dword [edx], ecx
xor eax, eax
jmp 0x1002f29b
jmp 0x1002eef3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret 0x20