Function at 0x14008d2b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x390]
sub rsp, 0x490
cmp word [rdx], 0
movzx ebx, r9b
mov rax, rdx
jne 0x14008d2eb
xor al, al
add rsp, 0x490
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x4b0], rsi
cmp r8d, 1
je 0x14008d304
mov byte [rsp + 0x20], 0
cmp r8d, 2
jne 0x14008d309
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
xor esi, esi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14008d343
cmp word [rsp + rcx*2 + 0x6e], 0x5c
jne 0x14008d343
mov word [rsp + rcx*2 + 0x6e], si
mov rcx, qword [rbp + 0x3b8]
lea r9, [rsp + 0x28]
lea r8, [rbp + 0x180]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x180]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14008d38c
cmp word [rbp + rcx*2 + 0x17e], 0x5c
jne 0x14008d38c
mov word [rbp + rcx*2 + 0x17e], si
test bl, bl
je 0x14008d44f
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d571
test al, 0x10
je 0x14008d571
movzx ebx, word [rsp + 0x70]
test ebx, 0xffffff80
jne 0x14008d3d0
mov edx, 1
mov ecx, ebx
call fcn.1400d6928
test eax, eax
je 0x14008d3d0
or ebx, 0x20
movzx edi, word [rbp + 0x180]
test edi, 0xffffff80
jne 0x14008d3f2
mov edx, 1
mov ecx, edi
call fcn.1400d6928
test eax, eax
je 0x14008d3f2
or edi, 0x20
cmp bx, di
jne 0x14008d3ff
cmp word [rsp + 0x72], 0x3a
je 0x14008d448
cmp word [rsp + 0x70], si
je 0x14008d571
movzx r8d, byte [rsp + 0x20]
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
xor r9d, r9d
call fcn.14008d2b0
test al, al
je 0x14008d571
cmp word [rsp + 0x70], si
je 0x14008d571
lea rcx, [rsp + 0x70]
mov dl, 1
call fcn.14008d580
jmp 0x14008d540
movzx ebx, byte [rbp + 0x3c8]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d553
test al, 0x10
je 0x14008d571
cmp byte [rsp + 0x20], sil
je 0x14008d571
test bl, bl
jne 0x14008d4a0
xor eax, eax
lea rdi, [rsp + 0x70]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [0x1400fe600]
mov qword [rdi - 2], rax
movzx eax, word [0x1400fe608]
mov word [rdi + 6], ax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
not rcx
lea rdi, [rbp + 0x180]
mov word [rsp + rcx*2 + 0x70], si
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rsi
repne scasw ax, word [rdi]
lea rax, [rsp + 0x70]
neg bl
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x180]
not rcx
mov qword [rsp + 0x48], rax
sbb eax, eax
mov word [rbp + rcx*2 + 0x180], si
add eax, 2
cmp dword [rbp + 0x3c0], 2
mov dword [rsp + 0x38], eax
mov eax, 0x614
mov word [rsp + 0x50], ax
jne 0x14008d530
mov eax, 0x615
mov word [rsp + 0x50], ax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov rsi, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rbx
pop rbp
ret
test bl, bl
jne 0x14008d4a0
lea rcx, [rbp + 0x180]
xor edx, edx
call fcn.140071a20
test al, al
jne 0x14008d47c
xor al, al
jmp 0x14008d540