Function at 0x1401b9dc0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
cmp qword [rsp + 0xe8], 0
jne 0x1401b9de3
xor eax, eax
jmp 0x1401ba0e0
mov rcx, qword [rsp + 0xe8]
call fcn.14002f9b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401b9e04
xor eax, eax
jmp 0x1401ba0e0
mov rax, qword [rsp + 0x20]
shl rax, 2
mov qword [rsp + 0x20], rax
mov eax, 2
mul qword [rsp + 0x20]
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140008c1c
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14002fb80
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r11d, 0x3a
mov word [rsp + 0x40], r11w
mov qword [rsp + 0x38], 0
mov ecx, 8
call fcn.140008c1c
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400306e4
movzx edx, word [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.14002fb50
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401b9efe
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140008c14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140008c14
xor eax, eax
jmp 0x1401ba0e0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
call fcn.1401b93a0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x60], 1
jmp 0x1401b9f29
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x28]
add eax, 1
cmp dword [rsp + 0x60], eax
jge 0x1401ba090
cmp qword [rsp + 0x38], 0
je 0x1401b9f5c
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140008c14
mov ecx, 0x2000
call fcn.140008c1c
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1400306e4
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
call fcn.1401b92f0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1401b9fb6
jmp 0x1401ba090
cmp qword [rsp + 0x50], 0
je 0x1401ba08b
cmp qword [rsp + 0x58], 0
je 0x1401ba08b
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401b9fdf
jmp 0x1401b9f1e
mov rdx, qword [rsp + 0x50]
add rdx, 2
mov r8d, 3
mov rcx, qword [rsp + 0x48]
call fcn.140030704
mov rcx, qword [rsp + 0x58]
sub rcx, 2
mov rax, qword [rsp + 0x50]
sub rax, rcx
sar rax, 1
add rax, 4
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x58]
sub rdx, 2
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call fcn.140030704
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1401ba041
jmp 0x1401b9f1e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401ba08b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.140008c14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140008c14
mov rax, qword [rsp + 0x38]
jmp 0x1401ba0e0
jmp 0x1401b9f1e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140008c14
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140008c14
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140008c14
xor eax, eax
add rsp, 0xd8
ret