Function at 0x14008bc40
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rcx
mov qword [rsp + 0x58], rcx
xor ebx, ebx
xor r8d, r8d
mov edx, 0x104
lea rcx, [r11 - 0x58]
call fcn.1400576b0
nop
lea rdx, [rsp + 0x240]
cmp qword [rsp + 0x258], 7
cmova rdx, qword [rsp + 0x240]
mov r8d, dword [rsp + 0x250]
lea rcx, str._TMP_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test eax, eax
je 0x14008c33e
mov r8, qword [rsp + 0x250]
cmp rcx, r8
ja 0x14008c33e
dec ecx
cmp rcx, r8
ja 0x14008bcfe
lea rax, [rsp + 0x240]
cmp qword [rsp + 0x258], 7
cmova rax, qword [rsp + 0x240]
mov qword [rsp + 0x250], rcx
mov word [rax + rcx*2], bx
jmp 0x14008bd6c
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0x258]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14008bd51
mov qword [rsp + 0x250], rcx
lea r9, [rsp + 0x240]
cmp rdi, 7
cmova r9, qword [rsp + 0x240]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14008bd46
movzx eax, bx
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], bx
jmp 0x14008bd6c
mov word [rsp + 0x20], bx
mov r9, rdx
movzx r8d, byte [rsp + 0x50]
lea rcx, [rsp + 0x240]
call fcn.140028d50
lea rcx, [rsp + 0x240]
call fcn.14008ba90
test al, al
je 0x14008c2a8
lea rcx, [rsp + 0x240]
cmp qword [rsp + 0x258], 7
cmova rcx, qword [rsp + 0x240]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r9 + 6]
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14008c2f3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x240]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x250]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x250], rbx
mov qword [rsp + 0x258], 7
mov word [rsp + 0x240], bx
lea rcx, [rsp + 0x240]
call fcn.140025e80
mov rax, rsi
jmp 0x14008c255
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140133600
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_create_directory__
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x20
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x88]
call fcn.140054d30
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x88]
call fcn.140135f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_open_directory__for_writing_
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x2a
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0xb0]
call fcn.140054d30
lea rdx, [0x14020e468]
lea rcx, [rsp + 0xb0]
call fcn.140135f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_expand__TMP_environment_variable_
lea rcx, [rsp + 0xd8]
call fcn.140096840
lea rdx, [0x14020e468]
lea rcx, [rsp + 0xd8]
call fcn.140135f84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_create_directory__
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x20
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x100]
call fcn.140054d30
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x100]
call fcn.140135f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_open_directory__for_writing_
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x2a
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x128]
call fcn.140054d30
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x128]
call fcn.140135f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1401dd28c]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 2
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x150]
call fcn.14008d770
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x150]
call fcn.140135f84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_create_directory__
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x20
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x178]
call fcn.140054d30
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x178]
call fcn.140135f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_open_directory__for_writing_
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x2a
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x1a0]
call fcn.140054d30
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x1a0]
call fcn.140135f84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_create_directory__
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x20
lea r9, [rsp + 0x260]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x1c8]
call fcn.140054d30
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x1c8]
call fcn.140135f84
int3