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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa4
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x7c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x7c]
mov eax, dword [eax + 0x500]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x70
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x80
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x154]
add eax, 4
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x15c]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14c], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x148], 0
jne 0x47038e
push dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xc8
push eax
call fcn.00417b30
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x148], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14c], 4
jge 0x4703b8
push str.Received_too_short_packet
push dword [ebp - 0x1c]
call fcn.004465bf
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 7
jmp 0x47055b
mov eax, dword [ebp - 0x14]
add eax, 0x15c
push eax
call fcn.004719fe
pop ecx
mov word [ebp - 0x24], ax
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x470407
cmp dword [ebp - 0x20], 4
je 0x4704f3
cmp dword [ebp - 0x20], 5
je 0x4704b7
cmp dword [ebp - 0x20], 6
je 0x4704f5
jmp 0x470528
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14c], 4
jle 0x4704b2
mov eax, dword [ebp - 0x14]
movzx esi, word [eax + 0x40]
inc esi
and esi, 0xffff
mov eax, dword [ebp - 0x14]
add eax, 0x15c
push eax
call fcn.004719d7
pop ecx
movzx eax, ax
cmp esi, eax
jne 0x4704b2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14c]
sub eax, 4
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x15c]
add eax, 4
push eax
push 1
push dword [ebp + 0x7c]
call fcn.004459e5
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47047f
push 5
push dword [ebp - 0x14]
call fcn.00470819
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
jmp 0x47055e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14c]
sub eax, 4
cdq
mov ecx, dword [ebp - 0x30]
add eax, dword [ecx + 0x20]
adc edx, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x30]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x1c]
call fcn.0045e0b9
add esp, 0xc
jmp 0x47053d
mov eax, dword [ebp - 0x14]
add eax, 0x15c
push eax
call fcn.004719d7
pop ecx
mov word [ebp - 0x28], ax
movzx eax, word [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x15c]
add eax, 4
push eax
push 0x4c67fc
push dword [ebp - 0x1c]
call fcn.004460bd
add esp, 0xc
jmp 0x47053d
jmp 0x47053d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14c]
dec eax
dec eax
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x15c]
inc eax
inc eax
push eax
push dword [ebp - 0x14]
call fcn.004716f9
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x470526
mov eax, dword [ebp - 0x18]
jmp 0x47055e
jmp 0x47053d
push str.Internal_error:_Unexpected_packet
push 0x4c6824
push dword [ebp - 0x1c]
call fcn.004465bf
add esp, 0xc
push dword [ebp + 0x7c]
call fcn.0045e346
pop ecx
test eax, eax
je 0x47055b
push 5
push dword [ebp - 0x14]
call fcn.00470819
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x47055e
mov eax, dword [ebp - 0x18]
pop esi
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.0041553e
add ebp, 0x74
mov esp, ebp
pop ebp
ret