Function at 0x140008fb0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rbp + 0x170], rax
movzx r13d, r8b
mov r15, rdx
mov r12, rcx
lea rdx, [rcx + 0x10]
mov rax, rdx
cmp qword [rdx + 0x18], 7
jbe 0x140008ffb
mov rax, qword [rdx]
xor esi, esi
mov qword [rdx + 0x10], rsi
mov word [rax], si
add rcx, 0x30
cmp rcx, rdx
je 0x140009020
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 7
jbe 0x14000901b
mov rdx, qword [rdx]
call fcn.140008e30
mov rax, qword [r12]
mov dl, 1
mov rcx, r12
call qword [rax + 0x18]
test r15, r15
je 0x140009585
cmp word [r15], si
je 0x140009585
mov word [rsp + 0x60], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.1400306a0
mov edx, 0x25
mov rcx, r15
call fcn.1400142f0
test rax, rax
je 0x140009081
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r15, [rsp + 0x60]
movzx ecx, word [r15]
cmp cx, 0x22
jne 0x140009121
add r15, 2
movzx ecx, word [r15]
test cx, cx
je 0x140009102
movzx ebx, byte [rsp + 0x30]
add r15, 2
cmp cx, 0x22
je 0x1400093cc
mov rdx, qword [r12 + 0x40]
mov r8, qword [r12 + 0x48]
cmp rdx, r8
jae 0x1400090e2
lea rax, [rdx + 1]
mov qword [r12 + 0x40], rax
lea rax, [r12 + 0x30]
cmp r8, 7
jbe 0x1400090d7
mov rax, qword [r12 + 0x30]
mov word [rax + rdx*2], cx
mov word [rax + rdx*2 + 2], si
jmp 0x1400090f9
movzx r9d, cx
movzx r8d, bl
mov edx, 1
lea rcx, [r12 + 0x30]
call fcn.140001d70
movzx ecx, word [r15]
test cx, cx
jne 0x1400090a1
lea rcx, [r12 + 0x30]
cmp qword [r12 + 0x48], 7
jbe 0x140009114
mov rcx, qword [r12 + 0x30]
mov qword [r12 + 0x40], rsi
mov word [rcx], si
jmp 0x140009585
cmp cx, 0x20
jne 0x14000913e
nop word [rax + rax]
add r15, 2
movzx ecx, word [r15]
cmp cx, 0x20
je 0x140009130
movzx ebx, byte [rsp + 0x30]
movzx edi, byte [rsp + 0x30]
movzx esi, byte [rsp + 0x30]
test cx, cx
je 0x1400091b6
xor edi, edi
cmp cx, 0x20
je 0x1400091b1
add r15, 2
mov rdx, qword [r12 + 0x40]
mov r8, qword [r12 + 0x48]
cmp rdx, r8
jae 0x140009191
lea rax, [rdx + 1]
mov qword [r12 + 0x40], rax
lea rax, [r12 + 0x30]
cmp r8, 7
jbe 0x140009186
mov rax, qword [r12 + 0x30]
mov word [rax + rdx*2], cx
mov word [rax + rdx*2 + 2], di
jmp 0x1400091a8
movzx r9d, cx
movzx r8d, bl
mov edx, 1
lea rcx, [r12 + 0x30]
call fcn.140001d70
movzx ecx, word [r15]
test cx, cx
jne 0x140009154
movzx edi, byte [rsp + 0x30]
cmp qword [r12 + 0x40], 1
jbe 0x140009203
lea rax, [r12 + 0x30]
mov rdx, qword [r12 + 0x48]
cmp rdx, 7
jbe 0x1400091d3
mov rax, qword [r12 + 0x30]
cmp word [rax + 2], 0x3a
je 0x140009203
lea rcx, [r12 + 0x30]
cmp rdx, 7
jbe 0x1400091ea
mov rcx, qword [r12 + 0x30]
lea r8, [r12 + 0x30]
lea rdx, str..exe
call fcn.140008ba0
test al, al
jne 0x140009439
cmp word [r15], 0
je 0x1400093bf
lea rcx, [r12 + 0x30]
cmp qword [r12 + 0x48], 7
jbe 0x140009220
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009233
test al, 0x10
je 0x1400093cc
lea rdx, [r12 + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140001f20
nop
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140009288
lea rax, [rcx + 4]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 7
cmova rax, qword [rsp + 0x38]
movabs rdx, 0x6500780065002e
mov qword [rax + rcx*2], rdx
xor edx, edx
mov word [rax + rcx*2 + 8], dx
jmp 0x1400092ab
mov qword [rsp + 0x20], 4
lea r9, str..exe
movzx r8d, sil
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.140007380
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400092cf
test al, 0x10
je 0x1400094db
mov rcx, qword [r12 + 0x40]
cmp rcx, 4
jbe 0x140009308
lea rax, [r12 + 0x30]
cmp qword [r12 + 0x48], 7
jbe 0x1400092ec
mov rax, qword [r12 + 0x30]
add rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea rdx, str..exe
call fcn.140019840
test eax, eax
je 0x1400094db
cmp word [r15], 0x20
jne 0x14000937d
mov edx, 0x20
xor ebx, ebx
nop word [rax + rax]
add r15, 2
mov rcx, qword [r12 + 0x40]
mov r8, qword [r12 + 0x48]
cmp rcx, r8
jae 0x140009357
lea rax, [rcx + 1]
mov qword [r12 + 0x40], rax
lea rax, [r12 + 0x30]
cmp r8, 7
jbe 0x14000934c
mov rax, qword [r12 + 0x30]
mov word [rax + rcx*2], dx
mov word [rax + rcx*2 + 2], bx
jmp 0x14000936e
movzx r9d, dx
movzx r8d, dil
mov edx, 1
lea rcx, [r12 + 0x30]
call fcn.140001d70
movzx edx, word [r15]
cmp dx, 0x20
je 0x140009320
movzx ebx, byte [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x1400093bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400093ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400095af
call fcn.1400123c8
movzx ecx, word [r15]
test cx, cx
jne 0x140009152
test r13b, r13b
je 0x140009439
lea rdx, [r12 + 0x30]
cmp qword [rdx + 0x18], 7
jbe 0x1400093e0
mov rdx, qword [rdx]
lea rcx, [rsp + 0x38]
call fcn.1400095c0
lea rcx, [r12 + 0x30]
mov rdx, rax
call fcn.140003000
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140009439
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009434
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400095b5
call fcn.1400123c8
cmp word [r15], 0x20
jne 0x14000944b
add r15, 2
cmp word [r15], 0x20
je 0x140009440
lea rdx, [0x140032a08]
test r15, r15
cmovne rdx, r15
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140009460
lea rcx, [r12 + 0x10]
call fcn.140008e30
mov rdx, qword [r12 + 0x20]
test rdx, rdx
je 0x140009585
lea rbx, [r12 + 0x10]
nop dword [rax + rax]
mov rax, rbx
mov rcx, qword [rbx + 0x18]
cmp rcx, 7
jbe 0x1400094a0
mov rax, qword [rbx]
cmp word [rax + rdx*2 - 2], 0x20
jne 0x140009585
mov rdi, qword [rbx + 0x10]
cmp rcx, 7
jbe 0x140009526
mov rax, qword [rbx]
sub rax, rax
sub rax, 2
lea r9, [rax + rdx*2]
sar r9, 1
mov rax, rdi
sub rax, r9
mov edx, 1
cmp rax, rdx
cmovb rdx, rax
jmp 0x140009552
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x1400093cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000951c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400095af
call fcn.1400123c8
jmp 0x1400093cc
mov rax, rbx
sub rax, rbx
sub rax, 2
lea r9, [rax + rdx*2]
sar r9, 1
mov rax, rdi
sub rax, r9
mov edx, 1
cmp rax, rdx
cmovb rdx, rax
mov rax, rbx
cmp rcx, 7
jbe 0x140009555
mov rax, qword [rbx]
lea rcx, [rax + r9*2]
sub rdi, rdx
lea rdx, [rcx + rdx*2]
mov r8, rdi
sub r8, r9
lea r8, [r8*2 + 2]
call fcn.140030000
mov qword [rbx + 0x10], rdi
mov rdx, qword [r12 + 0x20]
test rdx, rdx
jne 0x140009490
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140012860
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001955c
int3
call fcn.14001955c
int3