Function at 0x14002c258
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov eax, 0x5e
mov edi, r9d
mov esi, r8d
mov rbx, rdx
cmp ax, word [rdx]
jne 0x14002c28c
add rbx, 2
mov qword [r11 + 0x10], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rsp + 0x80]
movsxd rdx, eax
add rdx, 0x400
call fcn.14005fa8c
mov rbp, qword [rsp + 0x80]
xor r8d, r8d
lea r9d, [r8 + 0x24]
mov ax, r8w
mov cx, r8w
mov qword [rsp + 0x78], rbp
mov word [rsp + 0x40], r8w
lea edx, [r8 + 0x23]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], ecx
cmp esi, r9d
jne 0x14002c2e8
mov eax, r9d
mov dword [rsp + 0x44], eax
jmp 0x14002c2f2
cmp esi, edx
jne 0x14002c2f2
mov ecx, edx
mov dword [rsp + 0x48], edx
cmp r9w, word [rbx]
jne 0x14002c306
cmp ax, r8w
jne 0x14002c306
mov word [rsp + 0x44], r9w
jmp 0x14002c316
cmp dx, word [rbx]
jne 0x14002c322
cmp cx, r8w
jne 0x14002c322
mov word [rsp + 0x48], dx
add rbx, 2
mov qword [rsp + 0xc8], rbx
mov eax, 0x20
cmp ax, word [rbx]
jne 0x14002c338
add rbx, 2
mov qword [rsp + 0xc8], rbx
mov ecx, 0x2a
lea eax, [rcx + 3]
cmp cx, word [rbx]
je 0x14002c34a
cmp ax, word [rbx]
jne 0x14002c35e
movzx edx, word [rbx]
add rbx, 2
mov word [rsp + 0x40], dx
mov qword [rsp + 0xc8], rbx
cmp sil, r8b
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r8
setne byte [rsp + 0x30]
call fcn.14005fa18
xor r10d, r10d
cmp word [rbx], r10w
jne 0x14002c4a5
cmp edi, r10d
je 0x14002c4a0
cmp edi, 0x23
je 0x14002c4a0
mov rax, qword [rsp + 0x78]
lea ecx, [r10 + 0x2a]
add rbp, 2
mov qword [rsp + 0x68], rbp
lea rdi, [0x14010f568]
mov word [rax], cx
lea ebx, [rcx - 0x22]
mov r8, qword [rdi]
lea rdx, [0x140111eb8]
mov rcx, rbp
add r8, 2
call fcn.1400164f8
mov r8d, dword [rdi - 8]
mov r9d, 1
movsxd rcx, eax
lea rbp, [rbp + rcx*2]
xor ecx, ecx
mov rdx, rbp
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathW]
xor r10d, r10d
cmp eax, r10d
je 0x14002c483
cmp dword [rdi - 8], 0x1a
jne 0x14002c41a
lea rdx, [0x140110120]
mov rcx, rbp
call fcn.1400f3eac
mov rcx, rbp
call fcn.14001d2e8
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea rdx, [0x140111e90]
lea rcx, [rsp + 0x50]
call fcn.14006ad18
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.14005fb54
mov rdx, qword [rsp + 0x50]
lea rcx, [0x14012d0c0]
mov r8b, 1
call fcn.140083114
mov rdx, qword [rdi]
lea rcx, [0x14012d0c0]
mov r8, rbp
call fcn.14005ee18
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
xor r11d, r11d
xor r9d, r9d
mov r8d, esi
mov qword [rsp + 0x20], r11
call fcn.14002c258
xor r10d, r10d
mov rbp, qword [rsp + 0x68]
add rdi, 0x10
sub rbx, 1
jne 0x14002c3b3
mov rbx, qword [rsp + 0xc8]
jmp 0x14002c4a5
mov byte [rsp + 0x30], 0x10
mov rdi, qword [rsp + 0xe0]
mov sil, r10b
mov bpl, r10b
mov r8b, r10b
mov byte [rsp + 0xd0], r10b
cmp rdi, r10
je 0x14002c63b
mov rax, rdi
cmp word [rdi], r10w
je 0x14002c63b
mov ecx, 9
lea ebx, [rcx + 0x1b]
lea edi, [rcx + 0x25]
lea edx, [rcx + 0x17]
lea r11d, [rcx + 0x75]
lea r9d, [rcx + 0x5c]
cmp cx, word [rax]
ja 0x14002c4f9
cmp word [rax], 0xd
jbe 0x14002c5de
cmp dx, word [rax]
je 0x14002c5de
cmp di, word [rax]
je 0x14002c5d0
cmp bx, word [rax]
je 0x14002c5d0
mov ecx, 0x25
cmp cx, word [rax]
je 0x14002c5cb
mov ecx, 0x2a
cmp cx, word [rax]
jne 0x14002c535
or sil, 4
jmp 0x14002c5cb
cmp r11w, word [rax]
jne 0x14002c586
cmp r11w, word [rax + 2]
jne 0x14002c54c
or sil, 2
add rax, 2
jmp 0x14002c5cb
cmp r11w, word [rax]
jne 0x14002c586
cmp di, word [rax + 2]
jne 0x14002c55e
or sil, 8
jmp 0x14002c546
cmp r11w, word [rax]
jne 0x14002c586
mov r10d, ecx
cmp r10w, word [rax + 2]
mov r10d, 0
jne 0x14002c57a
or sil, 9
jmp 0x14002c546
cmp r11w, word [rax]
jne 0x14002c586
or sil, 1
jmp 0x14002c5cb
mov ecx, 0x2d
cmp cx, word [rax]
jne 0x14002c6a1
cmp r9w, word [rax + 2]
jne 0x14002c6a1
mov ecx, 0x6e
cmp cx, word [rax + 4]
jne 0x14002c6a1
lea r9d, [rcx + 8]
cmp r9w, word [rax + 6]
jne 0x14002c6a1
or bpl, 0x40
add rax, 6
mov r9d, 0x65
mov ecx, 9
add rax, 2
cmp word [rax], r10w
jne 0x14002c4ea
mov rdi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xc8]
movzx edx, word [rdi]
cmp r8b, r10b
je 0x14002c63b
mov sil, r10b
mov eax, 0x20
cmp cx, dx
ja 0x14002c609
cmp dx, 0xd
jbe 0x14002c61b
cmp ax, dx
je 0x14002c61b
add rdi, 2
mov dx, word [rdi]
cmp dx, r10w
jne 0x14002c5fe
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0xe0], rdi
call fcn.14001651c
mov rdi, qword [rsp + 0xe0]
mov rbx, rdi
mov edx, 0x3d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
xor r11d, r11d
mov qword [rsp + 0x38], rax
cmp rax, r11
je 0x14002c660
mov word [rax], r11w
add qword [rsp + 0x38], 2
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], r11
cmp byte [rax + 0xda], r11b
jne 0x14002c724
test byte [rax + 0xd], 0xf
jne 0x14002c724
lea r8, [rsp + 0x58]
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
mov byte [rsp + 0x20], 1
call fcn.140075e18
jmp 0x14002c73c
mov r9d, 0x2d
cmp r9w, word [rax]
jne 0x14002c5c5
lea ecx, [r9 + 0x45]
cmp cx, word [rax + 2]
jne 0x14002c6df
lea ecx, [r9 + 0x34]
cmp cx, word [rax + 4]
jne 0x14002c6df
lea r9d, [rcx + 0x16]
cmp r9w, word [rax + 6]
jne 0x14002c6d9
or r8b, 0x40
jmp 0x14002c5c1
mov r9d, 0x2d
cmp r9w, word [rax]
jne 0x14002c5c5
mov r9d, 0x65
cmp r9w, word [rax + 2]
jne 0x14002c5cb
mov r9d, 0x78
cmp r9w, word [rax + 4]
lea ecx, [r9 - 0x6f]
lea r9d, [rcx + 0x5c]
jne 0x14002c5d0
mov byte [rsp + 0xd0], 1
add rax, 4
jmp 0x14002c5d0
lea r8, [rsp + 0x58]
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
mov byte [rsp + 0x20], 1
call fcn.1400742a0
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rcx
cmp sil, cl
je 0x14002c78f
cmp rax, rcx
je 0x14002c7d3
lea rcx, [rsp + 0x70]
mov rdx, rax
or bpl, sil
call fcn.14006ad18
mov rcx, qword [rsp + 0xc0]
mov r8b, bpl
mov rdx, rax
call fcn.14007d5ac
mov qword [rsp + 0x38], rax
xor esi, esi
cmp rax, rsi
je 0x14002c7d5
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
mov r8, rdi
call fcn.14007c96c
mov rax, qword [rsp + 0x38]
cmp rax, rsi
je 0x14002c7d5
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rdi, eax
mov rax, qword [rsp + 0x38]
add rdi, rdi
jmp 0x14002c7d8
xor esi, esi
mov rdi, rsi
cmp word [rbx], si
je 0x14002c8a2
cmp word [rsp + 0x44], si
je 0x14002c81e
mov r8, rbx
lea rdx, [0x140111e10]
mov rcx, 0xffffffff80000002
cmp rax, rsi
jne 0x14002c805
call fcn.140058c54
jmp 0x14002c819
mov r9d, 1
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.140058be0
mov rax, qword [rsp + 0x38]
cmp word [rbx], si
je 0x14002c8a2
cmp word [rsp + 0x48], si
je 0x14002c860
mov r8, rbx
lea rdx, [0x14010fbc8]
mov rcx, 0xffffffff80000001
cmp rax, rsi
jne 0x14002c847
call fcn.140058c54
jmp 0x14002c85b
mov r9d, 1
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.140058be0
mov rax, qword [rsp + 0x38]
cmp word [rbx], si
je 0x14002c8a2
cmp byte [rsp + 0xd0], sil
je 0x14002c884
mov rcx, qword [rsp + 0xc0]
mov rdx, rax
call fcn.140064304
mov qword [rsp + 0x38], rax
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
cmp eax, esi
je 0x14002c898
mov eax, esi
jmp 0x14002c89e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x14002c8a7
mov rbx, qword [rsp + 0x60]
mov cl, byte [rsp + 0x30]
cmp cl, sil
je 0x14002c915
mov ax, word [rsp + 0x40]
mov edx, 0x2a
cmp dx, ax
je 0x14002c915
mov edx, 0x2d
cmp dx, ax
je 0x14002c8ed
mov al, byte [0x14012cca2]
cmp al, dl
je 0x14002c8ed
cmp cl, 0x10
je 0x14002c8e6
cmp al, sil
je 0x14002c8e6
mov byte [0x14012cca3], 1
jmp 0x14002c915
call fcn.1400190d4
jmp 0x14002c915
lea rax, [0x14012c9d0]
mov r8d, 0x10000
lea rcx, [0x14002c0a8]
xor edx, edx
mov r9d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.14005783c
lea rcx, [rsp + 0x88]
call fcn.140057768
lea rcx, [rsp + 0x70]
call fcn.140057768
lea rcx, [rsp + 0x58]
call fcn.140057768
lea rcx, [rsp + 0x50]
call fcn.140057768
lea rcx, [rsp + 0x80]
call fcn.140057768
mov rax, rbx
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret