Function at 0x14003e550
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe0], rdx
lea r13, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, r13
je 0x14003e5d0
test byte [rcx + 0x6c], 1
je 0x14003e5d0
cmp byte [rcx + 0x69], 5
jb 0x14003e5d0
mov r9, rdx
cmp qword [rdx + 0x18], 8
jb 0x14003e5bb
mov r9, qword [rdx]
mov edx, 0xa
lea r8, str.rYPf
mov rcx, qword [rcx + 0x60]
call fcn.140033560
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003e5dd
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x14003e7f3
xorps xmm0, xmm0
mov esi, ebp
movdqu xmmword [rsp + 0xe8], xmm0
xor r12d, r12d
mov r15d, r12d
mov qword [rsp + 0xf8], r12
mov ebx, r12d
test eax, eax
je 0x14003e689
add rsi, rsi
cmp rsi, 0x1000
jb 0x14003e64d
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14003e845
lfence
call fcn.14013ffac
test rax, rax
je 0x14003e7ed
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14003e660
test rsi, rsi
je 0x14003e660
lfence
mov rcx, rsi
call fcn.14013ffac
mov rbx, rax
mov qword [rsp + 0xe8], rbx
lea r15, [rsi + rbx]
mov qword [rsp + 0xf8], r15
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140132a80
mov qword [rsp + 0xf0], r15
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003e696
mov rcx, qword [rdi]
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x14003e797
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 7
mov word [r14], r12w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14003e6c1
mov rdx, rbx
mov rcx, r14
call fcn.140007240
mov rcx, qword [0x1402aa8a0]
cmp rcx, r13
je 0x14003e724
test byte [rcx + 0x6c], 1
je 0x14003e724
cmp byte [rcx + 0x69], 5
jb 0x14003e724
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x14003e6fc
mov rax, qword [r14]
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003e709
mov r9, qword [rdi]
mov edx, VariantTimeToDosDateTime
mov qword [rsp + 0x20], rax
lea r8, str.rYPf
mov rcx, qword [rcx + 0x60]
call fcn.14003e490
nop
test rbx, rbx
je 0x14003e761
sub r15, rbx
sar r15, 1
lea rdx, [r15 + r15]
cmp rdx, 0x1000
jb 0x14003e758
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14003e7ed
mov rbx, rcx
mov rcx, rbx
call fcn.14013ff64
nop
mov rcx, rdi
call fcn.140006200
mov rax, r14
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
nop
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.14003d8b0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0xc0]
call fcn.140041f90
nop
mov rcx, rax
call fcn.140006310
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002250
lea rdx, [0x1402a3de8]
lea rcx, [rsp + 0x48]
call fcn.140132d3c
nop
call fcn.1400e0284
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.14003d8b0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x80]
call fcn.140041f90
nop
mov rcx, rax
call fcn.140006310
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002250
lea rdx, [0x1402a3de8]
lea rcx, [rsp + 0x30]
call fcn.140132d3c
nop
call fcn.1400024d0
int3