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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push esi
push edi
lea edi, [ebp - 0xac]
mov ecx, 0x2b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5759c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5e8]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 0x50
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x94], 0x80
mov esi, esp
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x88]
push eax
push 0
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0x154]
add edx, 4
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x15c]
push ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp esi, esp
call fcn.00471e7d
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0x14c], eax
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0x148], 0
jne 0x52ecea
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0xa4]
add edx, 0xc8
push edx
call fcn.0047289b
add esp, 0xc
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x94]
mov dword [eax + 0x148], ecx
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0x14c], 4
jge 0x52ed1f
push str.Received_too_short_packet
mov eax, dword [ebp - 0xa0]
push eax
call fcn.00472a30
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0xc], 7
jmp 0x52ef32
mov edx, dword [ebp - 0xa4]
add edx, 0x15c
push edx
call fcn.0052e0a0
add esp, 4
movzx eax, ax
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
sub ecx, 3
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 3
ja case.default.0x52ed71
mov edx, dword [ebp - 0xac]
jmp dword [edx*4 + 0x52ef9c]
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x14c], 4
jle 0x52ee5c
mov ecx, dword [ebp - 0xa4]
movzx esi, word [ecx + 0x40]
add esi, 1
and esi, 0xffff
mov edx, dword [ebp - 0xa4]
add edx, 0x15c
push edx
call fcn.0052e0d0
add esp, 4
movzx eax, ax
cmp esi, eax
jne 0x52ee5c
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0x14c]
sub edx, 4
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x15c]
add ecx, 4
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004724a4
add esp, 0x10
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x52ee17
push 5
mov eax, dword [ebp - 0xa4]
push eax
call fcn.0052eb00
add esp, 8
mov eax, dword [ebp - 0x9c]
jmp 0x52ef38
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0x14c]
sub eax, 4
cdq
mov ecx, dword [ebp - 0xa8]
add eax, dword [ecx + 0x20]
adc edx, dword [ecx + 0x24]
mov ecx, dword [ebp - 0xa8]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [edx + 0x20]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00472a6c
add esp, 0xc
jmp 0x52ef0a
mov eax, dword [ebp - 0xa4]
add eax, 0x15c
push eax
call fcn.0052e0d0
add esp, 4
movzx ecx, ax
mov edx, dword [ebp - 0xa4]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x15c]
add ecx, 4
push ecx
push 0x5726ac
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00470e9c
add esp, 0xc
jmp 0x52ef0a
jmp 0x52ef0a
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x14c]
sub ecx, 2
push ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x15c]
add eax, 2
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0052e200
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x52eeef
mov eax, dword [ebp - 0x9c]
jmp 0x52ef38
jmp 0x52ef0a
push str.Internal_error:_Unexpected_packet
push 0x5726d4
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00472a30
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00471d6a
add esp, 4
test eax, eax
je 0x52ef32
push 5
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0052eb00
add esp, 8
mov eax, 0x2a
jmp 0x52ef38
mov eax, dword [ebp - 0x9c]
push edx
mov ecx, ebp
push eax
lea edx, [0x52ef68]
call fcn.0047194b
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471225
add esp, 0xac
cmp ebp, esp
call fcn.00471e7d
mov esp, ebp
pop ebp
ret