Function at 0x140002970
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r15d, r15d
lea rcx, str.TEMP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r15b
jne 0x1400029c3
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140004eb0
nop
mov r8d, 0xc
lea rdx, str.edg3162.tmp
lea rcx, [rsp + 0x30]
call fcn.1400047b0
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r8, qword [rsp + 0x30]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, ebx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.140005dc4
mov rdi, rax
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r8, qword [rsp + 0x30]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x40]
lea rbp, [rcx + rcx]
mov ecx, 0x208
call fcn.140005dc4
mov r14, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], r14
mov r8d, 0x104
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x208
call fcn.140005dc4
mov rdi, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140002af0
add rbx, rbx
lea r8, [rbp + 4]
add r8, rbx
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, qword [0x1400df128]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov qword [rsp + 0x20], r15
mov r9, rbp
mov r8, r14
mov rdx, rax
mov rcx, qword [0x1400df128]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002b7b
mov qword [0x1400df100], rsi
add rsi, 2
add rsi, rbp
mov qword [rsp + 0x20], r15
mov r9, rbx
mov r8, rdi
mov rdx, rsi
mov rcx, qword [0x1400df128]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002b7b
mov qword [0x1400df0f0], rsi
mov bl, 1
jmp 0x140002b7d
xor bl, bl
mov rcx, rdi
call fcn.140005b40
nop
mov rcx, r14
call fcn.140005b40
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002bcf
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005b40
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005b20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret