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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64570b
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x6a56e8]
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.0040fea0
mov dword [ebp - 0x4f0], eax
cmp dword [ebp + 0x1c], 0
je 0x40f730
mov ecx, dword [ebp + 0x1c]
call fcn.004103d0
cmp dword [ebp + 0x20], 0
je 0x40f73e
mov ecx, dword [ebp + 0x20]
call fcn.00410170
push 0x400
push 0
lea eax, [ebp - 0x490]
push eax
call fcn.00619ac0
add esp, 0xc
push 0x80
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.00619ac0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x4c8], dx
mov eax, 1
test eax, eax
je 0x40fb44
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 0x40fb1a
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 0x40fb1a
mov ecx, dword [ebp - 0x4d0]
call fcn.0040fea0
mov dword [ebp - 0x4f8], 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 0x40fb1a
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 0x40fb1a
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 0x40fb1a
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 0x40fb1a
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 0x40fb1a
lea edx, [ebp - 0x484]
mov dword [ebp - 0x4cc], edx
mov dword [ebp - 0x4e8], 0
jmp 0x40f8f4
mov eax, dword [ebp - 0x4e8]
add eax, 1
mov dword [ebp - 0x4e8], eax
movzx ecx, word [ebp - 0x4d4]
cmp dword [ebp - 0x4e8], ecx
je 0x40f94e
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.0040fd10
test eax, eax
jne 0x40f935
xor eax, eax
jmp 0x40fb49
movzx edx, word [ebp - 0x4c8]
mov eax, dword [ebp - 0x4cc]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x4cc], ecx
jmp 0x40f8e5
mov dword [ebp - 0x4ec], 0
jmp 0x40f969
mov edx, dword [ebp - 0x4ec]
add edx, 1
mov dword [ebp - 0x4ec], edx
movzx eax, word [ebp - 0x4d8]
cmp dword [ebp - 0x4ec], eax
je 0x40fb01
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.0040fd10
test eax, eax
jne 0x40f9b3
xor eax, eax
jmp 0x40fb49
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 + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4f4], ax
mov ecx, dword [ebp - 0x4cc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x4fc], eax
mov eax, dword [ebp - 0x4cc]
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4e4], ax
mov edx, dword [ebp - 0x4cc]
add edx, 0xa
mov dword [ebp - 0x4cc], edx
movzx eax, word [ebp - 0x4dc]
cmp eax, 1
jne 0x40fa66
cmp dword [ebp + 0x1c], 0
je 0x40fa66
mov ecx, dword [ebp - 0x4cc]
mov edx, dword [ecx]
mov dword [ebp - 0x498], edx
lea eax, [ebp - 0x498]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.00410450
jmp 0x40fae9
movzx ecx, word [ebp - 0x4dc]
cmp ecx, 5
jne 0x40fae9
cmp dword [ebp + 0x20], 0
je 0x40fae9
lea edx, [ebp - 0x490]
push edx
push 0x80
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x4c8]
push ecx
mov edx, dword [ebp - 0x4cc]
push edx
mov ecx, dword [ebp - 0x4d0]
call fcn.0040fd10
test eax, eax
jne 0x40faaf
xor eax, eax
jmp 0x40fb49
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x514]
call fcn.00404cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x514]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.004101f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x514]
call fcn.00404be0
movzx edx, word [ebp - 0x4e4]
add edx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4cc], edx
jmp 0x40f95a
cmp dword [ebp + 0x24], 0
je 0x40fb18
mov eax, dword [ebp - 0x4f8]
sub eax, dword [ebp - 0x4f0]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x40fb44
mov ecx, dword [ebp - 0x4d0]
call fcn.0040fea0
sub eax, dword [ebp - 0x4f0]
cmp eax, dword [ebp + 0x18]
jbe 0x40fb3f
mov edx, dword [ebp + 0x18]
add edx, 1
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
xor eax, eax
jmp 0x40fb49
jmp 0x40f773
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.006158c5
mov esp, ebp
pop ebp
ret 0x20