Function at 0x164e506f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.165001d20
sub rsp, rax
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov r13, qword [rbp + 0xfe0]
mov rcx, qword [rbp + 0xfe8]
mov eax, 0xf
mov word [rsp + 0x70], ax
xor esi, esi
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], 1
mov dword [rbp - 0x7c], 0xffffffff
mov dword [rbp - 0x78], 1
mov qword [r13 + 0xd0], rcx
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rax, qword [rax + 0x18]
call qword [case.0x164e9d7b8.0]
test eax, eax
jns 0x164e50790
mov eax, 0x80004005
jmp 0x164e50a56
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x164e507bd
lea rcx, [rsp + 0x58]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
mov eax, 0x80070057
jmp 0x164e50a56
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov r15d, eax
mov dword [rsp + 0x20], eax
mov r12d, esi
test eax, eax
je 0x164e50a3e
movabs rdi, 0x492492492492492
mov r9d, 0x400
lea r8, [rbp - 0x70]
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
test eax, eax
je 0x164e50a32
lea rcx, [rbp - 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x164e50816
cmp rax, 5
jbe 0x164e50999
lea rcx, [rbp + rax*2 - 0x78]
lea rdx, str..lnk
call fcn.16502794c
test eax, eax
jne 0x164e50999
mov ecx, 0x800
call fcn.1650164a0
mov rbx, rax
test rax, rax
je 0x164e50a2d
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x28]
mov r8, rax
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.164e4ff60
test eax, eax
jne 0x164e50982
lea edx, [rax + 0x25]
mov rcx, rbx
call fcn.165003050
test rax, rax
je 0x164e508d0
mov r8d, 0x400
lea rdx, [rbp + 0x790]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x164e508d0
lea rax, [rbp + 0x790]
lea rcx, [rbp + 0x790]
mov rdx, rbx
sub rdx, rcx
nop dword [rax + rax]
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x164e508c0
mov rdx, rbx
mov rcx, r13
call fcn.164e50f50
lea rdi, [r13 + 0x20]
mov r15, qword [rdi]
movabs rax, 0x492492492492492
cmp qword [rdi + 8], rax
je 0x164e50a80
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
mov ecx, 0x38
call fcn.165001480
mov rsi, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
xor eax, eax
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rax
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], ax
jne 0x164e50930
mov rdx, rbx
lea rcx, [rsi + 0x10]
call fcn.164e485e0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x30], rax
inc qword [rdi + 8]
mov rax, qword [r15 + 8]
mov qword [rsi], r15
mov qword [rsi + 8], rax
mov qword [rsp + 0x40], 0
mov qword [r15 + 8], rsi
mov qword [rax], rsi
mov r15d, dword [rsp + 0x20]
xor esi, esi
mov rcx, rbx
call fcn.165015e80
jmp 0x164e50a2d
mov rcx, qword [rsp + 0x28]
call fcn.165015e80
mov rcx, rbx
call fcn.165015e80
jmp 0x164e50a2d
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.164e50f50
lea rbx, [r13 + 0x20]
mov r14, qword [rbx]
cmp qword [rbx + 8], rdi
je 0x164e50a80
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ecx, 0x38
call fcn.165001480
mov rdi, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
xor eax, eax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x164e509f0
lea rdx, [rbp - 0x70]
lea rcx, [rdi + 0x10]
call fcn.164e485e0
mov qword [rdi + 0x30], 0
inc qword [rbx + 8]
mov rax, qword [r14 + 8]
mov qword [rdi], r14
mov qword [rdi + 8], rax
xor esi, esi
mov qword [rsp + 0x50], rsi
mov qword [r14 + 8], rdi
mov qword [rax], rdi
mov rbx, qword [rsp + 0x30]
inc r12d
cmp r12d, r15d
jb 0x164e507e3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
xor eax, eax
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.165001080
mov rbx, qword [rsp + 0x10f0]
add rsp, 0x10a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_too_long
call fcn.164ffeab4
int3