Function at 0x140034130
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x870
movaps xmmword [rsp + 0x860], xmm6
mov r14, rdx
mov rax, qword [0x14019ac40]
xor rax, rsp
mov qword [rsp + 0x858], rax
mov qword [rdx + 8], 0
lea r15, [rsp + 0x58]
mov qword [rsp + 0x40], r15
movaps xmm6, xmmword [0x14016f7a0]
movups xmmword [rsp + 0x48], xmm6
mov r8d, 0x400
lea rbx, [rsp + 0x40]
lea rsi, [0x14016f92a]
mov rdi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, 0x400
nop word [rax + rax]
cmp r8, rax
jae 0x1400341be
mov r9d, 2
mov rcx, rbx
mov rdx, r15
mov r8, rax
call fcn.1400291c0
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call rdi
test eax, eax
je 0x140034204
mov eax, eax
mov r8, qword [rsp + 0x50]
cmp r8, rax
jb 0x1400341a0
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x40]
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x30]
mov edx, 0xfde9
mov r9, rax
call fcn.140039f50
cmp dword [rsp + 0x30], 0
sete sil
jmp 0x140034206
xor esi, esi
mov rcx, qword [rsp + 0x40]
cmp rcx, r15
je 0x140034216
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test sil, sil
jne 0x14003435b
mov qword [rsp + 0x40], r15
movups xmmword [rsp + 0x48], xmm6
mov r8d, 0x400
lea rbx, [rsp + 0x40]
lea rsi, str.TEMP
mov eax, 0x400
cmp r8, rax
jae 0x14003425e
mov r9d, 2
mov rcx, rbx
mov rdx, r15
mov r8, rax
call fcn.1400291c0
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call rdi
test eax, eax
je 0x1400342a4
mov eax, eax
mov r8, qword [rsp + 0x50]
cmp r8, rax
jb 0x140034240
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x40]
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x30]
mov edx, 0xfde9
mov r9, rax
call fcn.140039f50
cmp dword [rsp + 0x30], 0
sete sil
jmp 0x1400342a6
xor esi, esi
mov rcx, qword [rsp + 0x40]
cmp rcx, r15
je 0x1400342b6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test sil, sil
jne 0x14003435b
mov qword [rsp + 0x40], r15
movups xmmword [rsp + 0x48], xmm6
mov r8d, 0x400
lea rsi, [rsp + 0x40]
lea rbx, str.USERPROFILE
mov eax, 0x400
cmp r8, rax
jae 0x1400342fe
mov r9d, 2
mov rcx, rsi
mov rdx, r15
mov r8, rax
call fcn.1400291c0
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call rdi
test eax, eax
je 0x140034344
mov eax, eax
mov r8, qword [rsp + 0x50]
cmp r8, rax
jb 0x1400342e0
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x40]
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x30]
mov edx, 0xfde9
mov r9, rax
call fcn.140039f50
cmp dword [rsp + 0x30], 0
sete sil
jmp 0x140034346
xor esi, esi
mov rcx, qword [rsp + 0x40]
cmp rcx, r15
je 0x140034356
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test sil, sil
je 0x14003439c
mov rcx, r14
mov edx, 2
call fcn.140032880
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.1400351a0
mov rcx, qword [rsp + 0x858]
xor rcx, rsp
call fcn.14016a260
movaps xmm6, xmmword [rsp + 0x860]
add rsp, 0x870
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [r14 + 8]
lea r8, [rax + 7]
cmp qword [r14 + 0x10], r8
jae 0x1400343c0
lea rdx, [r14 + 0x18]
mov r9d, 1
mov rcx, r14
call fcn.1400291c0
mov rax, qword [r14 + 8]
mov rcx, qword [r14]
mov dword [rcx + rax + 3], 0x706d6554
mov dword [rcx + rax], 0x545c3a43
add qword [r14 + 8], 7
jmp 0x140034375