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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5222cb
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x55e5f4]
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.004115e0
mov dword [ebp - 0x4f0], eax
cmp dword [ebp + 0x1c], 0
je 0x4117d0
mov ecx, dword [ebp + 0x1c]
call fcn.00412090
cmp dword [ebp + 0x20], 0
je 0x4117de
mov ecx, dword [ebp + 0x20]
call fcn.00412110
push 0x400
push 0
lea eax, [ebp - 0x490]
push eax
call fcn.004f91d0
add esp, 0xc
push 0x80
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.004f91d0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x4c8], dx
mov eax, 1
test eax, eax
je 0x411be4
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 0x411bba
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 0x411bba
mov ecx, dword [ebp - 0x4d0]
call fcn.004115e0
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 0x411bba
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 0x411bba
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 0x411bba
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 0x411bba
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 0x411bba
lea edx, [ebp - 0x484]
mov dword [ebp - 0x4cc], edx
mov dword [ebp - 0x4e8], 0
jmp 0x411994
mov eax, dword [ebp - 0x4e8]
add eax, 1
mov dword [ebp - 0x4e8], eax
movzx ecx, word [ebp - 0x4d4]
cmp dword [ebp - 0x4e8], ecx
je 0x4119ee
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.004112b0
test eax, eax
jne 0x4119d5
xor eax, eax
jmp 0x411be9
movzx edx, word [ebp - 0x4c8]
mov eax, dword [ebp - 0x4cc]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x4cc], ecx
jmp 0x411985
mov dword [ebp - 0x4ec], 0
jmp 0x411a09
mov edx, dword [ebp - 0x4ec]
add edx, 1
mov dword [ebp - 0x4ec], edx
movzx eax, word [ebp - 0x4d8]
cmp dword [ebp - 0x4ec], eax
je 0x411ba1
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.004112b0
test eax, eax
jne 0x411a53
xor eax, eax
jmp 0x411be9
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 0x411b06
cmp dword [ebp + 0x1c], 0
je 0x411b06
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.00412390
jmp 0x411b89
movzx ecx, word [ebp - 0x4dc]
cmp ecx, 5
jne 0x411b89
cmp dword [ebp + 0x20], 0
je 0x411b89
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.004112b0
test eax, eax
jne 0x411b4f
xor eax, eax
jmp 0x411be9
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x514]
call fcn.00403270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x514]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.004123b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x514]
call fcn.00403390
movzx edx, word [ebp - 0x4e4]
add edx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4cc], edx
jmp 0x4119fa
cmp dword [ebp + 0x24], 0
je 0x411bb8
mov eax, dword [ebp - 0x4f8]
sub eax, dword [ebp - 0x4f0]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x411be4
mov ecx, dword [ebp - 0x4d0]
call fcn.004115e0
sub eax, dword [ebp - 0x4f0]
cmp eax, dword [ebp + 0x18]
jbe 0x411bdf
mov edx, dword [ebp + 0x18]
add edx, 1
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
xor eax, eax
jmp 0x411be9
jmp 0x411813
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.004f4e42
mov esp, ebp
pop ebp
ret 0x20