Function at 0x52e690
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 [0x5749c0]
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.00471e55
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0x14c], eax
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0x148], 0
jne 0x52e78a
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.0047288c
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 0x52e7bf
push str.Received_too_short_packet
mov eax, dword [ebp - 0xa0]
push eax
call fcn.00472a1c
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0xc], 7
jmp 0x52e9d2
mov edx, dword [ebp - 0xa4]
add edx, 0x15c
push edx
call fcn.0052db40
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.0x52e811
mov edx, dword [ebp - 0xac]
jmp dword [edx*4 + 0x52ea3c]
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x14c], 4
jle 0x52e8fc
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.0052db70
add esp, 4
movzx eax, ax
cmp esi, eax
jne 0x52e8fc
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.0047249f
add esp, 0x10
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x52e8b7
push 5
mov eax, dword [ebp - 0xa4]
push eax
call fcn.0052e5a0
add esp, 8
mov eax, dword [ebp - 0x9c]
jmp 0x52e9d8
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.00472a58
add esp, 0xc
jmp 0x52e9aa
mov eax, dword [ebp - 0xa4]
add eax, 0x15c
push eax
call fcn.0052db70
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 0x5716ac
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00470e79
add esp, 0xc
jmp 0x52e9aa
jmp 0x52e9aa
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.0052dca0
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x52e98f
mov eax, dword [ebp - 0x9c]
jmp 0x52e9d8
jmp 0x52e9aa
push str.Internal_error:_Unexpected_packet
push 0x5716d4
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00472a1c
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00471d47
add esp, 4
test eax, eax
je 0x52e9d2
push 5
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0052e5a0
add esp, 8
mov eax, 0x2a
jmp 0x52e9d8
mov eax, dword [ebp - 0x9c]
push edx
mov ecx, ebp
push eax
lea edx, [0x52ea08]
call fcn.00471914
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047120c
add esp, 0xac
cmp ebp, esp
call fcn.00471e55
mov esp, ebp
pop ebp
ret