Function at 0x14003e3a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
lea rbx, [rcx + 0x20]
cmp qword [rbx + 0x10], 0
jne 0x14003e6d3
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x14003e402
mov r8d, dword [rcx + 0x18]
xor edx, edx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi + 0x10], rax
xor r15d, r15d
test rax, rax
je 0x14003e487
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140048510
mov rsi, rax
cmp rbx, rax
je 0x14003e445
mov rcx, rbx
call fcn.14001fb60
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003e487
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e482
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e708
call fcn.140148ec0
cmp qword [rbx + 0x10], r15
jne 0x14003e6d3
cmp dword [rdi + 0x18], 4
jne 0x14003e6d3
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x30]
mov edx, 0x100
lea rcx, [rsp + 0x48]
call fcn.14002dc00
nop
mov r8, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, str.windir
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x14003e4f0
mov rdx, rdi
mov rcx, rbx
call fcn.14001f5f0
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14003e54b
lea rbp, [rcx + 1]
mov qword [rbx + 0x10], rbp
mov rsi, rbx
cmp rdx, 8
jb 0x14003e52e
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
mov r8d, 2
lea rdx, [0x1401e5ccc]
call fcn.1401679c0
mov word [rsi + rbp*2], r15w
jmp 0x14003e56a
mov qword [rsp + 0x20], 1
lea r9, [0x1401e5ccc]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14002c6d0
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 8
jb 0x14003e5af
lea rbp, [rcx + 8]
mov qword [rbx + 0x10], rbp
mov rsi, rbx
cmp rdx, 8
jb 0x14003e592
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
mov r8d, SafeArrayUnlock
lea rdx, str.system32
call fcn.1401679c0
mov word [rsi + rbp*2], r15w
jmp 0x14003e5ce
mov qword [rsp + 0x20], 8
lea r9, str.system32
xor r8d, r8d
lea edx, [r8 + 8]
mov rcx, rbx
call fcn.14002c6d0
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14003e613
lea rbp, [rcx + 1]
mov qword [rbx + 0x10], rbp
mov rsi, rbx
cmp rdx, 8
jb 0x14003e5f6
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
mov r8d, 2
lea rdx, [0x1401e5ccc]
call fcn.1401679c0
mov word [rsi + rbp*2], r15w
jmp 0x14003e632
mov qword [rsp + 0x20], 1
lea r9, [0x1401e5ccc]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14002c6d0
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xc
jb 0x14003e677
lea rbp, [rcx + 0xc]
mov qword [rbx + 0x10], rbp
mov rsi, rbx
cmp rdx, 8
jb 0x14003e65a
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
mov r8d, SafeArrayCopy
lea rdx, str.ntoskrnl.exe
call fcn.1401679c0
mov word [rsi + rbp*2], r15w
jmp 0x14003e697
mov qword [rsp + 0x20], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r9, str.ntoskrnl.exe
xor r8d, r8d
lea edx, [r8 + 0xc]
mov rcx, rbx
call fcn.14002c6d0
nop
test rdi, rdi
je 0x14003e6d3
mov rdx, qword [rsp + 0x58]
sub rdx, rdi
sar rdx, 1
add rdx, rdx
mov rax, rdi
cmp rdx, 0x1000
jb 0x14003e6cb
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e702
mov rcx, rdi
call fcn.140148ec0
mov rdx, rbx
mov rcx, r14
call fcn.140028260
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140149290
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14016ae5c
int3
call fcn.14016ae5c
int3