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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x52e5b1
mov eax, dword [ebp - 4]
add esp, 0xffffffd4
push ebx
xor ecx, ecx
mov dword [ebp - 0x2030], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52e7bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2024]
push eax
push 0
push 0x2000
lea eax, [ebp - 0x2014]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x52e620
mov byte [ebp - 9], 0
jmp 0x52e7a2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0x44]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x54], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0x5c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004f5220
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004b5c24
lea edx, [ebp - 0x2014]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004f513c
mov ax, word [ebp - 0x2022]
push eax
call sub.wsock32.dll_ntohs
mov edx, eax
lea ecx, [ebp - 0x202c]
mov eax, dword [ebp - 0x2020]
call fcn.00511468
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x202c]
mov dword [eax + 0x64], edx
mov edx, dword [ebp - 0x2028]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1c], 0
je 0x52e7a2
mov eax, dword [ebp - 4]
lea edx, [eax + 0x20]
mov eax, dword [ebp - 4]
add eax, 0x64
call fcn.0051118c
test al, al
je 0x52e7a2
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 3
call fcn.004f5234
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004f54ec
dec al
je 0x52e6f8
sub al, 2
je 0x52e71d
dec al
je 0x52e77b
jmp 0x52e78a
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004f5534
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004f5510
xchg al, ah
mov edx, dword [ebp - 4]
mov word [edx + 0x68], ax
jmp 0x52e78a
lea eax, [ebp - 0x2030]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004f54ec
xor edx, edx
mov dl, al
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004f5728
mov eax, dword [ebp - 0x2030]
lea ecx, [ebp - 0x202c]
xor edx, edx
call fcn.00511214
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x202c]
mov dword [eax + 0x64], edx
mov edx, dword [ebp - 0x2028]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004f5510
xchg al, ah
mov edx, dword [ebp - 4]
mov word [edx + 0x68], ax
jmp 0x52e78a
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 0x10
call fcn.004f5234
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004b37f4
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004f5254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e7c4
lea eax, [ebp - 0x2030]
call fcn.0040b834
pop eax
jmp eax