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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x2e0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, rcx
call fcn.140049400
xor edx, edx
lea rcx, [rsp + 0x42]
lea r8d, [rdx + 0x7e]
mov word [rsp + 0x40], 0
mov r12, rax
call sub.ntdll.dll_memset
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], 0
call sub.ntdll.dll_memset
xor ebp, ebp
test rdi, rdi
mov esi, ebp
setne sil
test esi, esi
jne 0x1401c572e
lea rbx, [0x140c483f0]
xor edx, edx
mov r8d, 0x80
mov rcx, rbx
call sub.ntdll.dll_memset
lea edx, [rbp + 0x5c]
lea rcx, [0x14036c030]
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1401c5703
xor eax, eax
lea rdx, [0x14036c420]
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_438
mov byte [rsp + 0x30], bpl
mov qword [rsp + 0x31], rax
mov word [rsp + 0x39], ax
mov byte [rsp + 0x3b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1401c56c1
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x30]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1401c56f0
mov rbp, rbx
call fcn.140049470
lea r8, [0x14036c058]
lea rdx, str._s_return_code:_0x_08X___s.
mov rdi, qword [rax]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [rdi + 0x10]
mov eax, esi
jmp 0x1401c58b9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
mov rdx, qword [rdi]
mov rsi, qword [r12]
mov rcx, rdi
mov rbx, rax
call qword [rdx + 0x38]
mov rdx, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [rdx + 0x50]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, r12
mov r9d, eax
mov qword [rsp + 0x20], rdi
call qword [rsi + 0x58]
test eax, eax
mov esi, eax
jne 0x1401c584b
lea rbx, [0x140c483f0]
xor edx, edx
mov r8d, 0x80
mov rcx, rbx
call sub.ntdll.dll_memset
lea edx, [rsi + 0x5c]
lea rcx, [0x14036c068]
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1401c5823
xor eax, eax
lea rdx, [0x14036c420]
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_438
mov byte [rsp + 0x30], bpl
mov qword [rsp + 0x31], rax
mov word [rsp + 0x39], ax
mov byte [rsp + 0x3b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1401c57e0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x30]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1401c5810
mov rbp, rbx
call fcn.140049470
lea r8, [0x14036c090]
lea rdx, str._s_return_code:_0x_08X___s.
mov rdi, qword [rax]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [rdi + 0x10]
mov eax, esi
jmp 0x1401c58b9
lea r8, [rsp + 0x40]
lea rdx, [0x14036c120]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bpl
test ebp, ebp
jne 0x1401c58b7
lea rcx, str.d:workmrpmrpmainwizard.._Public.h
mov edx, Ordinal_438
call fcn.1401c4e80
mov rdi, rax
call fcn.140049470
lea r8, [0x14036c188]
mov r10, qword [rax]
lea rdx, str._s_return_code:_0x_08X___s.
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [r10 + 0x10]
mov eax, ebp
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret