Function at 0x14009c380
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, 0x230
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x228], rax
mov rsi, rcx
mov qword [rsp + 0x58], rcx
xor ebx, ebx
xor r8d, r8d
mov edx, 0x104
lea rcx, [r11 - 0x50]
call fcn.140035fc0
nop
lea rdx, [rsp + 0x1e8]
cmp qword [rsp + 0x200], 7
cmova rdx, qword [rsp + 0x1e8]
mov r8d, dword [rsp + 0x1f8]
lea rcx, str._TMP_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test eax, eax
je 0x14009ca35
mov r8, qword [rsp + 0x1f8]
cmp rcx, r8
ja 0x14009ca35
dec ecx
cmp rcx, r8
ja 0x14009c43e
lea rax, [rsp + 0x1e8]
cmp qword [rsp + 0x200], 7
cmova rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x1f8], rcx
mov word [rax + rcx*2], bx
jmp 0x14009c4ac
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0x200]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14009c491
mov qword [rsp + 0x1f8], rcx
lea r9, [rsp + 0x1e8]
cmp rdi, 7
cmova r9, qword [rsp + 0x1e8]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14009c486
movzx eax, bx
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], bx
jmp 0x14009c4ac
mov word [rsp + 0x20], bx
mov r9, rdx
movzx r8d, byte [rsp + 0x50]
lea rcx, [rsp + 0x1e8]
call fcn.140028d30
lea rcx, [rsp + 0x1e8]
call fcn.14009c1d0
test al, al
je 0x14009c9a5
lea rcx, [rsp + 0x1e8]
cmp qword [rsp + 0x200], 7
cmova rcx, qword [rsp + 0x1e8]
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 0x14009c9ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x1e8]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x1f8]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x1f8], rbx
mov qword [rsp + 0x200], 7
mov word [rsp + 0x1e8], bx
lea rcx, [rsp + 0x1e8]
call fcn.140025f00
mov rax, rsi
jmp 0x14009c952
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0x230]
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 + 0x1e8]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x68]
call fcn.14015a550
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 + 0x1e8]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x88]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x88]
call fcn.14015a550
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_expand__TMP_environment_variable_
lea rcx, [rsp + 0xa8]
call fcn.140065560
lea rdx, [0x14023da00]
lea rcx, [rsp + 0xa8]
call fcn.14015a550
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 + 0x1e8]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0xc8]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0xc8]
call fcn.14015a550
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 + 0x1e8]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0xe8]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0xe8]
call fcn.14015a550
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140207018]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 2
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x108]
call fcn.14009de70
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x108]
call fcn.14015a550
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 + 0x1e8]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x148]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x148]
call fcn.14015a550
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 + 0x1e8]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x168]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x168]
call fcn.14015a550
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 + 0x208]
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x188]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x188]
call fcn.14015a550
int3