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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x629af0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x400]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x50
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x80
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x98]
push eax
push 0
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0x154]
add edx, 4
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0x15c]
push ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [ebp - 0x9c]
mov dword [ecx + 0x14c], eax
mov edx, dword [ebp - 0x9c]
cmp dword [edx + 0x148], 0
jne 0x457276
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x9c]
add edx, 0xc8
push edx
call fcn.0057de50
add esp, 0xc
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x148], ecx
mov edx, dword [ebp - 0x9c]
cmp dword [edx + 0x14c], 4
jge 0x4572a8
push str.Received_too_short_packet
mov eax, dword [ebp - 0xc]
push eax
call fcn.004440d0
add esp, 8
mov ecx, dword [ebp - 0x9c]
mov dword [ecx + 0xc], 7
jmp 0x45749a
mov edx, dword [ebp - 0x9c]
add edx, 0x15c
push edx
call fcn.004574c0
add esp, 4
movzx eax, ax
mov ecx, dword [ebp - 0x9c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
sub ecx, 3
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 3
ja case.default.0x4572fa
mov edx, dword [ebp - 0xa0]
jmp dword [edx*4 + 0x4574ac]
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x14c], 4
jle 0x4573d2
mov ecx, dword [ebp - 0x9c]
movzx esi, word [ecx + 0x40]
add esi, 1
and esi, 0xffff
mov edx, dword [ebp - 0x9c]
add edx, 0x15c
push edx
call fcn.00456d20
add esp, 4
movzx eax, ax
cmp esi, eax
jne 0x4573d2
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0x14c]
sub edx, 4
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0x15c]
add ecx, 4
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004447f0
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x457397
push 5
mov eax, dword [ebp - 0x9c]
push eax
call fcn.004562a0
add esp, 8
mov eax, dword [ebp - 0x10]
jmp 0x45749d
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx + 0x14c]
sub eax, 4
cdq
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
adc ecx, edx
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [eax + 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0046cce0
add esp, 0xc
jmp 0x457472
mov ecx, dword [ebp - 0x9c]
add ecx, 0x15c
push ecx
call fcn.00456d20
add esp, 4
movzx edx, ax
mov eax, dword [ebp - 0x9c]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0x15c]
add edx, 4
push edx
push 0x5ca52c
mov eax, dword [ebp - 0xc]
push eax
call fcn.00444030
add esp, 0xc
jmp 0x457472
jmp 0x457472
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0x14c]
sub edx, 2
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0x15c]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004574e0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45745a
mov eax, dword [ebp - 0x10]
jmp 0x45749d
jmp 0x457472
push str.Internal_error:_Unexpected_packet
push 0x5ca2dc
mov eax, dword [ebp - 0xc]
push eax
call fcn.004440d0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046ce00
add esp, 4
test eax, eax
je 0x45749a
push 5
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004562a0
add esp, 8
mov eax, 0x2a
jmp 0x45749d
mov eax, dword [ebp - 0x10]
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057976c
mov esp, ebp
pop ebp
ret