Function at 0x14005dde0
Capabilities:
Query environment variable

Disassembly:
test rdx, rdx
je 0x14005e2a5
push rbx
push r15
sub rsp, 0x38
mov qword [rsp + 0x50], rbp
mov rbx, rdx
mov qword [rsp + 0x20], r14
mov r15, rcx
mov r14, 0xffffffffffffffff
mov rbp, r14
nop word [rax + rax]
inc rbp
cmp word [rdx + rbp*2], 0
jne 0x14005de10
shl ebp, 2
test ebp, ebp
je 0x14005e294
mov qword [rsp + 0x60], rsi
mov eax, 2
mov qword [rsp + 0x68], rdi
mov edi, ebp
mul rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
cmovo rax, r14
mov qword [rsp + 0x58], rdi
mov rcx, rax
call fcn.1400164e0
mov r12, rax
mov r13d, 0x7ffffffe
cmp rdi, 0x7fffffff
ja 0x14005de9e
mov r8d, r13d
mov edx, edi
sub r8, rdi
mov rcx, rax
sub rbx, rax
lea rax, [r8 + rdx]
test rax, rax
je 0x14005de93
movzx eax, word [rbx + rcx]
test ax, ax
je 0x14005de93
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14005de74
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
xor esi, esi
mov rcx, r12
mov word [rax], si
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rdx, r12
mov rcx, r15
call fcn.14008b5a0
test eax, eax
je 0x14005e278
lea rbx, [r15 + 0x1c0]
test rbx, rbx
je 0x14005df31
test r12, r12
je 0x14005df31
mov rcx, qword [rbx + 0x10]
mov r14d, esi
test rcx, rcx
jle 0x14005df2a
mov edi, esi
test rdi, rdi
js 0x14005e2a6
cmp rdi, rcx
jge 0x14005e2a6
mov rax, qword [rbx + 8]
mov rcx, r12
mov rdx, qword [rax + rdi*8]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14005e278
mov rcx, qword [rbx + 0x10]
inc r14d
movsxd rax, r14d
inc rdi
cmp rax, rcx
jl 0x14005dee7
mov rdi, qword [rsp + 0x58]
mov r14, 0xffffffffffffffff
mov rdx, r12
mov rcx, r15
call fcn.14008c980
test eax, eax
jne 0x14005e280
lea rcx, [r15 + 0x198]
mov r8, r12
mov rdx, qword [rcx + 0x10]
call fcn.1400a6854
mov rdx, qword [rbx + 0x10]
mov r8, r12
mov rcx, rbx
call fcn.1400a6854
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400164e0
mov r15, rax
cmp rdi, 0x7fffffff
ja 0x14005dfc0
sub r13, rdi
mov r8, r12
sub r8, rax
mov rdx, rdi
mov rcx, rax
lea rax, [rdx + r13]
test rax, rax
je 0x14005dfb5
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14005dfb5
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14005df95
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov r8d, ebp
mov word [rax], si
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test rbx, rbx
je 0x14005e02a
test r15, r15
je 0x14005e02a
mov rcx, qword [rbx + 0x10]
mov r14d, esi
test rcx, rcx
jle 0x14005e02a
mov rdi, rsi
nop dword [rax + rax]
test rdi, rdi
js 0x14005e2a6
cmp rdi, rcx
jge 0x14005e2a6
mov rax, qword [rbx + 8]
mov rcx, r15
mov rdx, qword [rax + rdi*8]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14005e039
mov rcx, qword [rbx + 0x10]
inc r14d
movsxd rax, r14d
inc rdi
cmp rax, rcx
jl 0x14005dff0
mov rdx, qword [rbx + 0x10]
mov r8, r15
mov rcx, rbx
call fcn.1400a6854
mov rcx, r15
call fcn.140095d64
mov r13, qword [rsp + 0x58]
mov eax, 2
mul r13
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.1400164e0
mov r8d, ebp
mov rdx, rax
mov rcx, r12
mov r15, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp eax, ebp
jbe 0x14005e0a7
mov rcx, r15
call fcn.140095d64
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400164e0
mov r8d, edi
mov rdx, rax
mov rcx, r12
mov r15, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test rbx, rbx
je 0x14005e0fa
test r15, r15
je 0x14005e0fa
mov rcx, qword [rbx + 0x10]
mov r14d, esi
test rcx, rcx
jle 0x14005e0fa
mov rdi, rsi
test rdi, rdi
js 0x14005e2a6
cmp rdi, rcx
jge 0x14005e2a6
mov rax, qword [rbx + 8]
mov rcx, r15
mov rdx, qword [rax + rdi*8]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14005e109
mov rcx, qword [rbx + 0x10]
inc r14d
movsxd rax, r14d
inc rdi
cmp rax, rcx
jl 0x14005e0c0
mov rdx, qword [rbx + 0x10]
mov r8, r15
mov rcx, rbx
call fcn.1400a6854
mov rcx, r15
call fcn.140095d64
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r13
cmovo rax, rcx
mov rcx, rax
call fcn.1400164e0
mov r8d, ebp
mov rdx, rax
mov rcx, r12
mov r15, rax
call qword [sym.imp.SHLWAPI.dll_PathUnExpandEnvStringsW]
test eax, eax
je 0x14005e1a9
test rbx, rbx
je 0x14005e19a
test r15, r15
je 0x14005e19a
mov rcx, qword [rbx + 0x10]
mov r14d, esi
test rcx, rcx
jle 0x14005e19a
mov rdi, rsi
nop dword [rax + rax]
test rdi, rdi
js 0x14005e2a6
cmp rdi, rcx
jge 0x14005e2a6
mov rax, qword [rbx + 8]
mov rcx, r15
mov rdx, qword [rax + rdi*8]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14005e1a9
mov rcx, qword [rbx + 0x10]
inc r14d
movsxd rax, r14d
inc rdi
cmp rax, rcx
jl 0x14005e160
mov rdx, qword [rbx + 0x10]
mov r8, r15
mov rcx, rbx
call fcn.1400a6854
mov rcx, r15
call fcn.140095d64
mov eax, 2
mov r15, 0xffffffffffffffff
mul r13
cmovo rax, r15
mov rcx, rax
call fcn.1400164e0
mov r8d, ebp
mov rdx, rax
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edi, eax
cmp eax, ebp
jbe 0x14005e212
mov rcx, r14
call fcn.140095d64
mov eax, 2
mul rdi
cmovo rax, r15
mov rcx, rax
call fcn.1400164e0
mov r8d, edi
mov rdx, rax
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test edi, edi
je 0x14005e270
test rbx, rbx
je 0x14005e261
test r14, r14
je 0x14005e261
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jle 0x14005e261
mov rdi, rsi
nop dword [rax]
test rdi, rdi
js 0x14005e2a6
cmp rdi, rcx
jge 0x14005e2a6
mov rax, qword [rbx + 8]
mov rcx, r14
mov rdx, qword [rax + rdi*8]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x14005e270
mov rcx, qword [rbx + 0x10]
inc esi
movsxd rax, esi
inc rdi
cmp rax, rcx
jl 0x14005e230
mov rdx, qword [rbx + 0x10]
mov r8, r14
mov rcx, rbx
call fcn.1400a6854
mov rcx, r14
call fcn.140095d64
mov rcx, r12
call fcn.140095d64
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x38
pop r15
pop rbx
ret
call fcn.1400a2cd8
int3