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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, r9
mov rdi, r8
mov r15, rdx
mov r14, rcx
test byte [0x140150ec0], 2
je 0x1400a63a6
and dword [rsp + 0x28], 0
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
lea rdx, [0x140119858]
call fcn.14008c11c
lea r12, [0x14014dd40]
mov eax, 5
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x1400a63e9
test byte [rcx + 0x1c], 1
je 0x1400a63e9
cmp byte [rcx + 0x19], al
jb 0x1400a63e9
lea edx, [rax + 0x3b]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov r9, r15
lea r8, [0x140126f98]
mov rcx, qword [rcx + 0x10]
call fcn.140021fa4
and qword [rbp - 0x49], 0
and qword [rbp - 0x41], 0
and qword [rbp - 0x59], 0
and dword [rbp - 0x61], 0
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x69], rax
lea r9, [rbp - 0x49]
mov r8, r13
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.MFPlat.DLL_MFCreateAsyncResult]
mov esi, eax
mov r10, qword [0x14014dd40]
mov edi, 5
cmp r10, r12
je 0x1400a647d
test byte [r10 + 0x1c], 2
je 0x1400a647d
movzx r8d, byte [r10 + 0x19]
lea edx, [rdi - 3]
test eax, eax
cmovns edx, edi
cmp r8d, edx
jl 0x1400a647d
lea edx, [rdi + 0x3c]
mov r9d, eax
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
test esi, esi
js 0x1400a6de8
mov rax, qword [r15]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
lea r8, [rbp - 0x41]
lea rdx, [0x14012b6a8]
mov rcx, r15
call rbx
mov esi, eax
mov r10, qword [0x14014dd40]
cmp r10, r12
je 0x1400a64f4
test byte [r10 + 0x1c], 2
je 0x1400a64f4
movzx ecx, byte [r10 + 0x19]
mov eax, 2
test esi, esi
cmovns eax, edi
cmp ecx, eax
jl 0x1400a64f4
mov edx, 0x42
mov rax, qword [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.14000b2e4
mov r10, qword [0x14014dd40]
test esi, esi
js 0x1400a6de8
lea r8, [rbp - 0x59]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
test eax, eax
js 0x1400a6dd8
mov rbx, qword [rbp - 0x59]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.140009050]
lea r9, [rbp - 0x61]
mov r8d, 0x52
lea rdx, str.__xml_version_1.0____r_n_server_xmlns_urn:schemas_microsoft_com:WMPNSSRME_1_0____r_n
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
jns 0x1400a6579
mov r10, qword [0x14014dd40]
cmp r10, r12
je 0x1400a6580
test byte [r10 + 0x1c], 2
je 0x1400a6580
cmp byte [r10 + 0x19], 2
jb 0x1400a6580
mov edx, 0x43
mov r9d, eax
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
mov r12d, dword [rbp - 0x61]
xor edi, edi
test esi, esi
js 0x1400a6de1
cmp qword [r14 + 0x90], rdi
je 0x1400a6809
mov ecx, edi
cmp dword [r14 + 0x98], edi
jbe 0x1400a65ca
mov rdx, qword [r14 + 0x88]
mov eax, ecx
cmp qword [rdx + rax*8], rdi
jne 0x1400a65c2
inc ecx
cmp ecx, dword [r14 + 0x98]
jb 0x1400a65ad
jmp 0x1400a65ca
mov eax, ecx
mov rcx, qword [rdx + rax*8]
jmp 0x1400a65cd
mov rcx, rdi
mov qword [rbp - 0x11], rcx
test rcx, rcx
je 0x1400a6809
lea rdx, [rbp - 0x11]
lea rcx, [r14 + 0x88]
call fcn.14001a27c
mov r13, qword [rax]
cmp dword [r13 + 8], edi
je 0x1400a67eb
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str._library__r_n_UDN_
lea rcx, [rbp - 0x69]
call fcn.1400046e8
lea rbx, [r13 + 0x10]
mov rax, qword [rbx]
cmp dword [rax - 0x10], 2
jle 0x1400a6690
mov r8d, 5
lea rdx, str.uuid:
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov rax, qword [rbx]
mov r9d, dword [rax - 0x10]
add r9d, 0xfffffffe
mov r8d, 1
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.1400047a0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400046e8
nop
mov r15, qword [rbp + 0x17]
or eax, 0xffffffff
lock xadd dword [r15 - 8], eax
sub eax, 1
jg 0x1400a6690
mov rdi, qword [r15 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [r15 - 0x18]
mov rcx, rdi
call rbx
xor edi, edi
mov r8d, reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, str.__UDN__r_n_friendlyName_
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov r8, qword [r13 + 0x20]
mov rax, qword [rbp - 0x69]
mov dword [rsp + 0x20], edi
mov r9d, dword [r8 - 0x10]
mov edx, dword [rax - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400f0e80
mov r8d, 0x50
lea rdx, str.__friendlyName__r_n_manufacturer_Microsoft_Corporation__manufacturer__r_n_modelName_
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov rdx, qword [r13 + 0x28]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov r8d, reloc.OLEAUT32.dll_DispGetParam
lea rdx, str.__modelName__r_n_modelNumber_
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov rdx, qword [r13 + 0x30]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov r8d, 0x1e
lea rdx, str.__modelNumber__r_n_serialNumber_
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov rdx, qword [r13 + 0x18]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov r8d, SafeArrayAccessData
lea rdx, str.__serialNumber__r_n
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 0
lea rdx, [rbp - 0x29]
mov rcx, qword [r13]
call fcn.14001f0ec
test eax, eax
js 0x1400a67cb
mov eax, dword [rbp - 0x21]
test eax, eax
jle 0x1400a67cb
mov ebx, edi
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, str._remoteUrl_
lea rcx, [rbp - 0x69]
call fcn.1400046e8
test rdi, rdi
js 0x1400a67f6
cmp ebx, dword [rbp - 0x21]
jge 0x1400a67f6
mov rax, qword [rbp - 0x29]
mov rdx, qword [rax + rdi]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov r8d, reloc.Cabinet.dll_FCIDestroy
lea rdx, str.__remoteUrl__r_n
lea rcx, [rbp - 0x69]
call fcn.1400046e8
inc ebx
add rdi, 8
cmp ebx, dword [rbp - 0x21]
jl 0x1400a6773
xor edi, edi
mov r8d, SafeArrayGetDim
lea rdx, str.__library__r_n
lea rcx, [rbp - 0x69]
call fcn.1400046e8
nop
lea rcx, [rbp - 0x29]
call fcn.140019c20
cmp qword [rbp - 0x11], rdi
je 0x1400a6801
jmp 0x1400a65da
mov ecx, 0xc000008c
call fcn.1400052e8
nop
mov r15, qword [rbp + 0x6f]
mov r13, qword [rbp + 0x7f]
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 0
lea rcx, [rbp - 0x39]
call fcn.1400a977c
test eax, eax
js 0x1400a688c
mov ebx, edi
cmp dword [rbp - 0x31], edi
jle 0x1400a688c
mov r8d, 0xa
lea rdx, str._onlineID_
lea rcx, [rbp - 0x69]
call fcn.1400046e8
test rdi, rdi
js 0x1400a6881
cmp ebx, dword [rbp - 0x31]
jge 0x1400a6881
mov rax, qword [rbp - 0x39]
mov rdx, qword [rax + rdi]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400046e8
mov r8d, reloc.Cabinet.dll_FCIFlushCabinet
lea rdx, str.__onlineID__r_n
lea rcx, [rbp - 0x69]
call fcn.1400046e8
inc ebx
add rdi, 8
cmp ebx, dword [rbp - 0x31]
jl 0x1400a6829
jmp 0x1400a688c
mov ecx, 0xc000008c
call fcn.1400052e8
nop
lea rcx, [rbp - 0x39]
call fcn.140019c20
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
lea rdi, [rax + 0x18]
mov qword [rbp - 9], rdi
mov r14, qword [rbp - 0x69]
mov eax, dword [r14 - 0x10]
lea ebx, [rax*2 + 1]
add ebx, eax
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400a68eb
mov edx, ebx
lea rcx, [rbp - 9]
call fcn.140036870
mov rdi, qword [rbp - 9]
xor ecx, ecx
test ebx, ebx
js 0x1400a6dcd
cmp ebx, dword [rdi - 0xc]
jg 0x1400a6dcd
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov byte [rax + rdi], cl
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov r9d, dword [r14 - 0x10]
mov r8, qword [rbp - 0x69]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test eax, eax
jne 0x1400a6984
cmp dword [r14 - 0x10], eax
je 0x1400a6984
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400a6984
test byte [rcx + 0x1c], 2
je 0x1400a6984
cmp byte [rcx + 0x19], 2
jb 0x1400a6984
lea edx, [rbx + 0x44]
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
and dword [rbp - 0x61], 0
test esi, esi
js 0x1400a6a2c
cmp ebx, 0xffffffff
jne 0x1400a69a2
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400a6999
test ebx, ebx
js 0x1400a6a21
cmp ebx, dword [rdi - 0xc]
jg 0x1400a6a21
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov byte [rax + rdi], 0
mov esi, dword [rdi - 0x10]
mov rbx, qword [rbp - 0x59]
mov rax, qword [rbx]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [fcn.140009050]
lea r9, [rbp - 0x61]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call r14
mov esi, eax
test eax, eax
jns 0x1400a6a1b
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400a6a2c
test byte [rcx + 0x1c], 2
je 0x1400a6a2c
cmp byte [rcx + 0x19], 2
jb 0x1400a6a2c
mov edx, 0x45
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400a6a2c
add r12d, dword [rbp - 0x61]
jmp 0x1400a6a2c
mov ecx, 0x80070057
call fcn.140005300
nop
lea r14, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x1400a6a59
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, r14
mov rcx, rdi
call rbx
test esi, esi
js 0x1400a6dc4
and dword [rbp - 0x61], 0
mov rbx, qword [rbp - 0x59]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.140009050]
lea r9, [rbp - 0x61]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, str.__server__r_n
mov rcx, rbx
call rdi
mov esi, eax
add r12d, dword [rbp - 0x61]
test eax, eax
js 0x1400a6dc4
mov rdi, qword [rbp - 0x59]
mov rax, qword [rdi]
mov rsi, qword [rax + 0x30]
mov rcx, rsi
call qword [fcn.140009050]
mov edx, r12d
mov rcx, rdi
call rsi
mov esi, eax
test eax, eax
js 0x1400a6dc4
cmp qword [rbp - 0x59], 0
je 0x1400a6cf0
and qword [rbp - 0x19], 0
and qword [rbp - 0x51], 0
lea rcx, [rbp - 0x51]
call qword [sym.imp.MFPlat.DLL_CreatePropertyStore]
mov esi, eax
mov r10, qword [0x14014dd40]
lea r12, [0x14014dd40]
mov r14d, 2
cmp r10, r12
je 0x1400a6b3f
test byte [r10 + 0x1c], r14b
je 0x1400a6b3f
movzx ecx, byte [r10 + 0x19]
mov eax, r14d
test esi, esi
lea edx, [r14 + 3]
cmovns eax, edx
cmp ecx, eax
jl 0x1400a6b3f
lea edx, [r14 + 0x44]
mov rax, qword [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.14000b2e4
mov r10, qword [0x14014dd40]
test esi, esi
js 0x1400a6cab
xor eax, eax
mov qword [rbp + 1], rax
mov qword [rbp + 9], rax
mov dword [rbp + 0x11], eax
mov word [rbp + 0x15], ax
mov eax, 0x1f
mov word [rbp - 1], ax
lea rax, str.text_xml___charset_UTF_8_
mov qword [rbp + 7], rax
mov rbx, qword [rbp - 0x51]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x30]
mov rcx, rdi
call qword [fcn.140009050]
lea r8, [rbp - 1]
lea rdx, [0x14012b498]
mov rcx, rbx
call rdi
mov esi, eax
mov r10, qword [0x14014dd40]
mov ebx, 5
cmp r10, r12
je 0x1400a6be0
test byte [r10 + 0x1c], r14b
je 0x1400a6be0
movzx ecx, byte [r10 + 0x19]
mov eax, r14d
test esi, esi
cmovns eax, ebx
cmp ecx, eax
jl 0x1400a6be0
lea edx, [rbx + 0x42]
mov rax, qword [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.14000ab30
mov r10, qword [0x14014dd40]
test esi, esi
js 0x1400a6cab
lea rdx, [rbp - 0x19]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.MFPlat.DLL_MFCreateMFByteStreamOnStream]
mov esi, eax
mov r10, qword [0x14014dd40]
cmp r10, r12
je 0x1400a6c3a
test byte [r10 + 0x1c], r14b
je 0x1400a6c3a
movzx ecx, byte [r10 + 0x19]
mov eax, r14d
test esi, esi
cmovns eax, ebx
cmp ecx, eax
jl 0x1400a6c3a
mov edx, 0x48
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
test esi, esi
js 0x1400a6cab
mov rbx, qword [rbp - 0x41]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x168]
mov rcx, rdi
call qword [fcn.140009050]
mov r8, qword [rbp - 0x51]
mov rdx, qword [rbp - 0x19]
mov rcx, rbx
call rdi
mov esi, eax
mov r10, qword [0x14014dd40]
cmp r10, r12
je 0x1400a6cab
test byte [r10 + 0x1c], r14b
je 0x1400a6cab
movzx ecx, byte [r10 + 0x19]
mov eax, r14d
test esi, esi
mov edx, 5
cmovns eax, edx
cmp ecx, eax
jl 0x1400a6cab
mov edx, 0x49
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
mov rbx, qword [rbp - 0x51]
test rbx, rbx
je 0x1400a6cd0
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
mov r10, qword [0x14014dd40]
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x1400a6cfe
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
jmp 0x1400a6cf7
lea r12, [0x14014dd40]
mov r10, qword [0x14014dd40]
test esi, esi
js 0x1400a6de8
mov rbx, qword [rbp - 0x49]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x28]
mov rcx, rdi
call qword [fcn.140009050]
mov edx, esi
mov rcx, rbx
call rdi
mov esi, eax
mov r10, qword [0x14014dd40]
mov ebx, 5
cmp r10, r12
je 0x1400a6d69
test byte [r10 + 0x1c], 2
je 0x1400a6d69
movzx ecx, byte [r10 + 0x19]
lea eax, [rbx - 3]
test esi, esi
cmovns eax, ebx
cmp ecx, eax
jl 0x1400a6d69
lea edx, [rbx + 0x45]
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
test esi, esi
js 0x1400a6de8
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.MFPlat.DLL_MFInvokeCallback]
mov esi, eax
mov r10, qword [0x14014dd40]
cmp r10, r12
je 0x1400a6e24
test byte [r10 + 0x1c], 2
je 0x1400a6de8
movzx ecx, byte [r10 + 0x19]
mov eax, 2
test esi, esi
cmovns eax, ebx
cmp ecx, eax
jl 0x1400a6de8
mov edx, 0x4b
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
jmp 0x1400a6ded
mov r10, qword [0x14014dd40]
jmp 0x1400a6de1
mov ecx, 0x80070057
call fcn.140005300
nop
mov r10, qword [0x14014dd40]
jmp 0x1400a6de8
lea r12, [0x14014dd40]
mov ebx, 5
cmp r10, r12
je 0x1400a6e24
test byte [r10 + 0x1c], 1
je 0x1400a6e24
movzx ecx, byte [r10 + 0x19]
mov eax, 2
test esi, esi
cmovns eax, ebx
cmp ecx, eax
jl 0x1400a6e24
mov edx, 0x4c
mov r9d, esi
lea r8, [0x140126f98]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
test byte [0x140150ec0], 2
je 0x1400a6e4a
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r13
mov r9, qword [rbp + 0x77]
mov r8, r15
lea rdx, [0x140119848]
call fcn.14008c11c
nop
mov r14, qword [rbp - 0x69]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400a6e7a
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x1400a6e99
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
nop
mov rbx, qword [rbp - 0x41]
test rbx, rbx
je 0x1400a6eb8
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
nop
mov rbx, qword [rbp - 0x49]
test rbx, rbx
je 0x1400a6ed6
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
mov eax, esi
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret