Function at 0x140005b00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rcx
mov qword [rbp - 0x38], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov word [rsp + 0x20], si
mov r9d, 0x104
xor r8d, r8d
mov edx, r9d
lea rcx, [rbp - 0x30]
call fcn.14000a1e0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
mov r8d, 0x104
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov r9, qword [rbp - 0x20]
cmp rcx, r9
ja 0x140005ba7
mov qword [rbp - 0x20], rcx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rax, qword [rbp - 0x30]
mov word [rax + rcx*2], si
jmp 0x140005bfe
mov rdx, rcx
sub rdx, r9
mov rdi, qword [rbp - 0x18]
mov rax, rdi
sub rax, r9
cmp rdx, rax
ja 0x140005bea
mov qword [rbp - 0x20], rcx
lea r8, [rbp - 0x30]
cmp rdi, 7
cmova r8, qword [rbp - 0x30]
lea rdi, [r8 + r9*2]
test rdx, rdx
je 0x140005bdf
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r9 + rdx]
mov word [r8 + rax*2], si
jmp 0x140005bfe
mov word [rsp + 0x20], si
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.14000a1e0
lea rcx, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
cmova rcx, r8
mov rax, qword [rbp - 0x20]
lea r14, [rcx + rax*2]
lea rdi, [rbp - 0x30]
cmova rdi, r8
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rsi
mov ebx, 0xf
mov qword [r15 + 0x18], rbx
cmp rdi, r14
jne 0x140005c44
mov byte [r15], 0
jmp 0x140005d15
sub r14, rdi
sar r14, 1
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140005d81
cmp r14, rbx
jbe 0x140005cda
mov rbx, r14
or rbx, 0xf
cmp rbx, rax
jbe 0x140005c9e
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140012278
test rax, rax
je 0x140005d87
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140005cd3
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
je 0x140005cd3
cmp rcx, 0x1000
jb 0x140005ccb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005d7b
jmp 0x140005c7f
call fcn.140012278
mov rsi, rax
mov qword [r15], rsi
mov qword [r15 + 0x18], rbx
mov r8, r15
cmp rbx, 0xf
jbe 0x140005ce6
mov r8, qword [r15]
mov rcx, r8
mov rdx, r14
test r14, r14
je 0x140005d04
movzx eax, byte [rdi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rdi, [rdi + 2]
sub rdx, 1
jne 0x140005cf1
mov qword [r15 + 0x10], r14
mov byte [r8 + r14], 0
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x140005d4c
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140005d44
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005d75
mov rcx, r8
call fcn.140012270
mov rax, r15
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140012250
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001a984
nop
call fcn.140001250
nop
call fcn.1400012f0
int3
call fcn.14001a984
int3