Function at 0x140217260
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov qword [rbp - 0x58], rcx
xor r14d, r14d
mov dword [rbp - 0x60], r14d
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r14b
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], r14b
lea r8d, [r14 + 0xb]
lea rdx, str.USERPROFILE
lea rcx, [rbp - 0x30]
call fcn.14004f6a0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
lea rcx, [rbp - 0x30]
call fcn.14004f4d0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], r14b
lea rcx, [rbp - 0x50]
test ebx, ebx
je 0x140217364
lea r8d, [r14 + 0xb]
lea rdx, str.USERPROFILE
call fcn.14004f6a0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140221010
mov rbx, rax
cmp rdi, rax
je 0x140217355
mov rcx, rdi
call fcn.14004f4d0
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r14b
lea rcx, [rbp - 0x30]
call fcn.14004f4d0
nop
jmp 0x140217520
mov r8d, 9
lea rdx, str.HOMEDRIVE
call fcn.14004f6a0
nop
mov ebx, 3
mov dword [rbp - 0x60], ebx
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1402173ea
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
lea r8d, [rbx + 5]
lea rdx, str.HOMEPATH
lea rcx, [rbp - 0x30]
call fcn.14004f6a0
mov ebx, 7
mov dword [rbp - 0x60], ebx
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1402173ea
mov sil, 1
jmp 0x1402173ed
xor sil, sil
test bl, 4
je 0x140217402
and ebx, 0xfffffffb
mov dword [rbp - 0x60], ebx
lea rcx, [rbp - 0x30]
call fcn.14004f4d0
nop
test bl, 2
je 0x140217416
and ebx, 0xfffffffd
mov dword [rbp - 0x60], ebx
lea rcx, [rbp - 0x50]
call fcn.14004f4d0
lea rcx, [rbp - 0x50]
test sil, sil
je 0x1402174ee
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov r8d, 9
lea rdx, str.HOMEDRIVE
call fcn.14004f6a0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140221010
mov rbx, rax
cmp rdi, rax
je 0x140217480
mov rcx, rdi
call fcn.14004f4d0
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
lea rcx, [rbp - 0x30]
call fcn.14004f4d0
nop
lea rcx, [rbp - 0x50]
call fcn.14004f4d0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov r8d, 8
lea rdx, str.HOMEPATH
lea rcx, [rbp - 0x50]
call fcn.14004f6a0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140221010
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1402174d6
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.14007a550
nop
lea rcx, [rbp - 0x30]
call fcn.14004f4d0
nop
jmp 0x140217520
call fcn.1402170f0
mov rbx, rax
cmp rdi, rax
je 0x140217520
mov rcx, rdi
call fcn.14004f4d0
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
lea rcx, [rbp - 0x50]
call fcn.14004f4d0
mov rcx, qword [rdi + 0x10]
mov rax, rdi
test rcx, rcx
je 0x14021755e
cmp qword [rdi + 0x18], 0x10
jb 0x14021753f
mov rax, qword [rdi]
cmp byte [rax + rcx - 1], 0x5c
je 0x14021755b
mov r8d, 1
lea rdx, [0x1402ad0a8]
mov rcx, rdi
call fcn.14007a550
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14022d970
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret