Function at 0x4ad2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
xor eax, eax
push esi
mov esi, dword [esp + 0x124]
mov esi, dword [esi + 0x10]
cmp dword [esi], eax
cmove esi, eax
test esi, esi
je 0x4ade5e
mov eax, dword [esi]
xor ecx, ecx
push ebx
push ebp
push edi
cmp dword [eax], ecx
mov edi, dword [esp + 0x128]
cmove eax, ecx
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x134]
nop
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x4ad32c
push 0x3c208
push ebp
push edi
call fcn.004ad0a0
add esp, 0xc
jmp case.0x4ada51.538
cmp eax, 4
jne case.0x4ada51.538
mov ebx, dword [esi + 0x18]
mov eax, ebx
cmp eax, 0x100
jg 0x4ada3c
je 0x4ad6e0
sub eax, 0x2d
cmp eax, 0x5f
ja case.0x4ada51.538
movzx eax, byte [eax + 0x4ade84]
jmp dword [eax*4 + 0x4ade68]
imul ecx, ebx, 0x64
movzx eax, byte [ecx + 0x52384f]
test byte [esi + eax*4 + 0x30], 1
je case.0x4ada51.538
movzx eax, byte [ecx + 0x523850]
push dword [esi + eax*4 + 0x30]
push ebp
push edi
call fcn.004ad0a0
add esp, 0xc
jmp case.0x4ada51.538
push 8
push ebp
push edi
call fcn.004ad0a0
add esp, 0xc
jmp case.0x4ada51.538
movups xmm0, xmmword [esi + 0x58]
xor edx, edx
psrldq xmm0, 0xc
movd eax, xmm0
movups xmm0, xmmword [esi + 0x68]
psrldq xmm0, 0xc
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x24], 0
cmove edx, eax
movd eax, xmm0
mov dword [esp + 0x20], edx
xor ecx, ecx
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x1c], 0
cmove ecx, eax
mov eax, 1
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0x20]
mov cl, byte [ecx + 0x10]
shl eax, cl
imul ecx, ebx, 0x64
dec eax
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + 0x52384d]
test byte [esi + eax*4 + 0x30], 4
jne 0x4ad6d0
movzx eax, byte [ecx + 0x52384c]
test byte [esi + eax*4 + 0x30], 4
jne 0x4ad6d0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi + 4]
call fcn.00417620
add esp, 0xc
test al, 1
je 0x4ad451
push esi
call fcn.004096c0
add esp, 4
mov byte [edi + 0x18], 1
jmp case.0x4ada51.538
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 1
jne 0x4ad49f
movups xmm0, xmmword [eax + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f6b0
add esp, 4
test al, al
je 0x4ad49f
mov eax, dword [esp + 0x18]
movups xmm0, xmmword [eax + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
je 0x4ad6d0
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 1
jne 0x4ad4ed
movups xmm0, xmmword [eax + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f6b0
add esp, 4
test al, al
je 0x4ad4ed
mov eax, dword [esp + 0x20]
movups xmm0, xmmword [eax + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
je 0x4ad6d0
push 0
push 4
lea eax, [esp + 0x20]
push eax
push ebp
push edi
call fcn.004aef50
mov ebx, dword [esp + 0x140]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push ebx
push eax
push edi
call fcn.004af460
add esp, 0x2c
test al, al
je 0x4ad5b2
cmp byte [esp + 0x7c], 0
je 0x4ad558
mov ebx, dword [esp + 0x14]
push ebx
push dword [esp + 0x84]
push dword [esp + 0x28]
push dword [esp + 0x138]
call fcn.0041add0
mov esi, dword [esp + 0x28]
add esp, 0x10
mov byte [edi + 0x18], 1
jmp 0x4ad643
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x84]
push eax
push dword [edi + 4]
call fcn.00417620
add esp, 0xc
test al, 1
jne case.0x4ada51.538
mov eax, dword [esp + 0x80]
xorps xmm0, xmm0
movups xmmword [esp + 0x6c], xmm0
add eax, 0x48
mov dword [esp + 0x78], eax
movups xmm0, xmmword [esp + 0x6c]
push esi
push ebx
movups xmmword [esi + 0x68], xmm0
call fcn.0041dcb0
mov ebx, dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x18]
mov byte [edi + 0x18], 1
jmp 0x4ad643
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push 0x48
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xe0]
push 0
push eax
mov byte [esp + 0xdc], 0
mov dword [esp + 0xe0], esi
call fcn.004f0640
movups xmm0, xmmword [esp + 0xdc]
mov eax, dword [esp + 0x12c]
add esp, 0xc
mov ebx, dword [esp + 0x14]
movups xmmword [esp + 0x7c], xmm0
mov dword [esp + 0xcc], eax
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [esp + 0x8c], xmm0
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [esp + 0x9c], xmm0
movups xmm0, xmmword [esp + 0x100]
movups xmmword [esp + 0xac], xmm0
movups xmm0, xmmword [esp + 0x110]
movups xmmword [esp + 0xbc], xmm0
cmp dword [esi + 0x18], 0
je 0x4ad67e
nop dword [eax]
mov eax, dword [esi + 0x18]
cmp eax, 5
je 0x4ad692
test eax, eax
jne 0x4ad660
xor esi, esi
jmp 0x4ad678
movups xmm0, xmmword [esi + 0x24]
xor esi, esi
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove esi, eax
cmp dword [esi + 0x18], 0
jne 0x4ad650
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4ad692
test dword [eax + 0x10], 0x10000000
jne case.0x4ada51.538
push 0
push ebx
lea eax, [esp + 0x28]
push eax
push ebp
push edi
call fcn.004aed40
add esp, 0x14
test eax, eax
jne 0x4ad6b7
lea eax, [esp + 0x20]
push eax
push ebp
push edi
call fcn.004ad220
add esp, 0xc
push ebx
push 0
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.004af5e0
add esp, 0x10
jmp case.0x4ada51.538
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 1
push ebx
jmp 0x4ade1b
imul eax, ebx, 0x64
movzx eax, byte [eax + 0x52383e]
test byte [esi + eax*4 + 0x30], 4
jne case.0x4ada51.538
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x2c], 0
cmove ecx, eax
mov dword [esp + 0x28], ecx
test dword [ecx + 0x1c], 0xfffffbf9
je case.0x4ada51.538
cmp dword [ecx + 0x18], 5
jne 0x4ad78d
nop dword [eax]
cmp dword [ecx + 0x18], 0
je 0x4ad78d
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x4ad78d
test eax, eax
je 0x4ad78d
push ecx
call fcn.00417690
add esp, 4
test al, al
je 0x4ad789
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp dword [eax + 0x18], ecx
je 0x4ad77d
movups xmm0, xmmword [eax + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
mov dword [esp + 0x28], ecx
cmp dword [ecx + 0x18], 5
je 0x4ad730
jmp 0x4ad78d
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
cmp dword [ecx + 0x18], 1
mov dword [esp + 0x14], 0
jne 0x4ad8b1
movups xmm0, xmmword [ecx + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f6b0
add esp, 4
test al, al
je 0x4ad8b1
mov ecx, dword [esp + 0x28]
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
jne 0x4ad8b1
xor ebx, ebx
cmp dword [ecx + 0x18], ebx
je 0x4ad810
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ebx, eax
mov dword [esp + 0x3c], ebx
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407d60
mov ecx, dword [ebx + 0x20]
add esp, 0xc
mov dword [esp + 0x14], eax
movzx ecx, byte [ecx + 0x10]
cmp eax, ecx
jb 0x4ad8b1
mov ebx, dword [esi + 4]
cmp dword [ebx + 4], 0
je 0x4ad859
test ebx, ebx
je 0x4ad859
mov ebp, 3
jmp 0x4ad85e
mov ebx, dword [esi + 8]
xor ebp, ebp
push esi
call fcn.004096c0
mov ecx, dword [esp + 0x130]
mov dword [ecx], ebp
mov dword [ecx + 4], ebx
movzx eax, byte [esi + 0x2d]
push eax
push 1
push dword [ecx + 0x10]
call fcn.0040b080
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4ad89b
push ebx
push dword [esp + 0x130]
call fcn.0041dcf0
add esp, 8
add ebx, 0x18
push ebx
add esi, 0x1c
push esi
call fcn.00407fa0
add esp, 8
mov byte [edi + 0x18], 1
jmp case.0x4ada51.538
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebp
push edi
call fcn.004aef50
push 0x54
mov ebp, eax
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004f0640
mov ebx, dword [esp + 0x14c]
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
push ebx
push ebp
push edi
call fcn.004af460
add esp, 0x38
test al, al
je 0x4ad9a9
cmp byte [esp + 0x7c], 0
je 0x4ad94f
cmp dword [esi + 8], 0
lea ecx, [esi + 0x1c]
je 0x4ad933
mov eax, dword [esp + 0x80]
push dword [eax]
push eax
push ecx
call fcn.00408010
add esp, 0xc
mov byte [edi + 0x18], 1
lea ebx, [esi + 0x30]
jmp 0x4ad9d3
push dword [esp + 0x80]
push ecx
call fcn.00407fa0
add esp, 8
mov byte [edi + 0x18], 1
lea ebx, [esi + 0x30]
jmp 0x4ad9d3
mov eax, dword [esp + 0x80]
xorps xmm0, xmm0
movups xmmword [esp + 0x6c], xmm0
add eax, 0x48
mov dword [esp + 0x78], eax
movups xmm0, xmmword [esp + 0x6c]
push esi
push ebx
movups xmmword [esi + 0x58], xmm0
call fcn.0041dcb0
movzx ecx, byte [esi + 0x30]
lea ebx, [esi + 0x30]
add esp, 8
mov byte [esp + 0x7c], 1
xor eax, eax
test ecx, ecx
je 0x4ad9a3
add esi, 0x1c
nop dword [eax]
mov dword [esp + eax*4 + 0x80], esi
mov byte [esp + eax + 0xc0], al
inc eax
cmp eax, ecx
jb 0x4ad990
mov byte [edi + 0x18], 1
jmp 0x4ad9d3
movzx ecx, byte [esi + 0x30]
lea ebx, [esi + 0x30]
xor eax, eax
mov byte [esp + 0x7c], 1
test ecx, ecx
je 0x4ad9d3
add esi, 0x1c
nop
mov dword [esp + eax*4 + 0x80], esi
mov byte [esp + eax + 0xc0], al
inc eax
cmp eax, ecx
jb 0x4ad9c0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x134]
cmp eax, dword [esp + 0x3c]
je 0x4ad9fb
push 0
push 1
lea eax, [esp + 0x44]
push eax
push esi
push edi
call fcn.004aef50
add esp, 0x14
mov ebp, eax
jmp 0x4ada02
cmp byte [esp + 0x13], 0
je 0x4ada06
test ebp, ebp
jne 0x4ada17
lea eax, [esp + 0x3c]
push eax
push esi
push edi
call fcn.004ad220
add esp, 0xc
mov ebp, eax
mov cl, byte [ebx]
mov eax, 1
shl eax, cl
dec eax
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
push ebp
call fcn.004af5e0
add esp, 0x10
jmp case.0x4ada51.538
sub eax, 0x219
cmp eax, 0x69
ja case.0x4ada51.538
movzx eax, byte [eax + 0x4adf00]
jmp dword [eax*4 + 0x4adee4]
push 0x20260
push ebp
push edi
call fcn.004ad0a0
add esp, 0xc
jmp case.0x4ada51.538
push 0x20220
push ebp
push edi
call fcn.004ad0a0
add esp, 0xc
jmp case.0x4ada51.538
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x34], 0
cmove ecx, eax
mov dword [esp + 0x30], ecx
cmp dword [ecx + 0x18], 5
jne 0x4adb0d
nop word [eax + eax]
cmp dword [ecx + 0x18], 0
je 0x4adb0d
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x4adb0d
test eax, eax
je 0x4adb0d
push ecx
call fcn.00417690
add esp, 4
test al, al
je 0x4adb09
mov eax, dword [esp + 0x30]
xor ecx, ecx
cmp dword [eax + 0x18], ecx
je 0x4adafd
movups xmm0, xmmword [eax + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
mov dword [esp + 0x30], ecx
cmp dword [ecx + 0x18], 5
je 0x4adab0
jmp 0x4adb0d
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
cmp dword [ecx + 0x18], 1
mov dword [esp + 0x14], 0
jne 0x4adbd5
movups xmm0, xmmword [ecx + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f6b0
add esp, 4
test al, al
je 0x4adbd5
mov ecx, dword [esp + 0x30]
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
jne 0x4adbd5
xor ebx, ebx
cmp dword [ecx + 0x18], ebx
je 0x4adb8c
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ebx, eax
mov dword [esp + 0x44], ebx
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407d60
mov ecx, dword [ebx + 0x20]
mov edx, eax
add esp, 0xc
mov dword [esp + 0x14], edx
movzx ecx, byte [ecx + 0x10]
cmp edx, ecx
jb 0x4adbd5
push esi
call fcn.004096c0
add esp, 4
mov byte [edi + 0x18], 1
jmp case.0x4ada51.538
imul ecx, dword [esi + 0x18], 0x64
movzx eax, byte [ecx + 0x52383e]
test byte [esi + eax*4 + 0x30], 4
je 0x4adbfd
movzx eax, byte [ecx + 0x52382e]
push 1
push dword [esi + eax*4 + 0x30]
lea eax, [esp + 0x38]
jmp 0x4ade1b
push 0
push 1
lea eax, [esp + 0x38]
push eax
push ebp
push edi
call fcn.004aef50
add esp, 0x14
test eax, eax
je 0x4adc8d
imul ecx, dword [esi + 0x18], 0x64
movzx ebx, byte [esi + 0x30]
mov dword [esp + 0x50], ebx
movzx ecx, byte [ecx + 0x52382e]
movzx edx, word [esi + ecx*4 + 0x30]
xor ecx, ecx
mov dword [esp + 0x4c], edx
test ebx, ebx
je 0x4adc74
lea edx, [eax + 4]
lea ebp, [eax + 0x44]
nop dword [eax]
mov ebx, dword [esp + 0x4c]
mov eax, 1
movzx edi, bx
mov ebx, dword [esp + 0x50]
shl eax, cl
test edi, eax
mov edi, dword [esp + 0x128]
je 0x4adc6c
mov eax, dword [edx]
cmp eax, dword [esi + 0x74]
jne 0x4adc86
movzx eax, byte [ecx + ebp]
cmp eax, ecx
jne 0x4adc86
inc ecx
add edx, 4
cmp ecx, ebx
jb 0x4adc40
push esi
call fcn.004096c0
add esp, 4
mov byte [edi + 0x18], 1
jmp case.0x4ada51.538
mov ebp, dword [esp + 0x134]
push 0x53
lea eax, [esp + 0xd5]
push 0
push eax
call fcn.004f0640
movzx ecx, byte [esi + 0x30]
add esp, 0xc
mov edx, dword [esi + 0x74]
xor eax, eax
mov byte [esp + 0xd0], 1
test ecx, ecx
je 0x4adcd3
nop word [eax + eax]
mov dword [esp + eax*4 + 0xd4], edx
mov byte [esp + eax + 0x114], al
inc eax
cmp eax, ecx
jb 0x4adcc0
imul eax, dword [esi + 0x18], 0x64
push 0
movzx eax, byte [eax + 0x52382e]
mov esi, dword [esi + eax*4 + 0x30]
lea eax, [esp + 0x48]
push esi
push eax
push ebp
push edi
call fcn.004aed40
add esp, 0x14
test eax, eax
jne 0x4add07
lea eax, [esp + 0x44]
push eax
push ebp
push edi
call fcn.004ad220
add esp, 0xc
push esi
push dword [esp + 0x18]
lea ecx, [esp + 0xd8]
push ecx
push eax
call fcn.004af5e0
add esp, 0x10
jmp case.0x4ada51.538
push esi
call fcn.00408d10
xor ecx, ecx
push 1
movups xmm0, xmmword [eax]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x68], 0
cmove ecx, eax
mov eax, 1
mov dword [esp + 0x64], ecx
mov ecx, dword [ecx + 0x20]
mov cl, byte [ecx + 0x10]
shl ax, cl
dec ax
movzx eax, ax
push eax
lea eax, [esp + 0x68]
push eax
push ebp
push edi
call fcn.004aed40
add esp, 0x18
jmp case.0x4ada51.538
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
push 1
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x6c], 0
cmove ecx, eax
mov eax, 1
mov dword [esp + 0x68], ecx
mov ecx, dword [ecx + 0x20]
mov cl, byte [ecx + 0x10]
shl eax, cl
dec eax
push eax
lea eax, [esp + 0x6c]
jmp 0x4ade1b
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x58], ecx
cmove ecx, eax
mov dword [esp + 0x54], ecx
cmp dword [ecx + 0x18], 0
je 0x4ade06
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x4ade06
test eax, eax
je 0x4ade06
movups xmm0, xmmword [ecx + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jmp 0x4addc9
mov ecx, dword [ecx + 0x20]
mov eax, 1
push 1
mov cl, byte [ecx + 0x10]
shl eax, cl
dec eax
push eax
lea eax, [esp + 0x5c]
push eax
push ebp
push edi
call fcn.004aed40
add esp, 0x14
mov eax, dword [esp + 0x38]
mov esi, eax
test eax, eax
je 0x4ade46
mov eax, dword [eax]
test eax, eax
je 0x4ade46
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
mov dword [esp + 0x38], ebp
jmp 0x4ad307
mov ebp, dword [esp + 0x134]
xor eax, eax
mov dword [esp + 0x38], eax
test esi, esi
jne 0x4ad310
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x114
ret