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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x380
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x100175150]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rdi, rdx
lea r13, [0x10003b560]
mov qword [rsp + 0x30], r13
lea r14, [0x10003c3f0]
mov qword [rsp + 0x38], r14
lea r15, [0x10003b540]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x469
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x50], 0xff
xor ebx, ebx
mov word [rsp + 0xd0], bx
mov byte [rsp + 0xd2], bl
mov byte [rsp + 0xd3], 1
xor edx, edx
lea r8d, [rbx + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.1000e7c38
nop
mov qword [rsp + 0xe0], rbx
lea rax, [0x1000391a8]
mov qword [rsp + 0xd8], rax
cmp word [rdi], bx
jne 0x1001002d9
lea rax, [0x100008440]
mov qword [rsp + 0x20], rax
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e826c
nop
lea rcx, [rsp + 0xf0]
call fcn.1000e7d24
xor al, al
jmp 0x1001005fa
mov rdx, rdi
lea rcx, [rsp + 0xd8]
call fcn.100060fb0
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
mov rsi, qword [rsp + 0xe0]
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r12d, [rax + 0x5c]
cmp word [rsi + rcx*2 - 4], r12w
jne 0x100100314
mov word [rsi + rcx*2 - 4], bx
mov r8d, 0x104
lea rdx, [rsp + 0x160]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
cmp eax, ebx
jne 0x1001003e9
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x47f
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x50], 0xff
mov word [rsp + 0xd0], bx
mov byte [rsp + 0xd2], bl
mov byte [rsp + 0xd3], 1
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x10003bc20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.1000e8e14
lea rax, [0x100008440]
mov qword [rsp + 0x20], rax
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e826c
nop
cmp rsi, rbx
je 0x1001003e4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x1001005eb
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x160]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x15c], r12w
jne 0x10010040f
mov word [rsp + rcx*2 + 0x15c], bx
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 3
jb 0x1001005ae
mov rdx, rsi
lea rcx, [rsp + 0x160]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x1001005ae
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001004c5
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x49e
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x50], 0xff
mov word [rsp + 0xd0], bx
mov byte [rsp + 0xd2], bl
mov byte [rsp + 0xd3], 1
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x10003c440]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.1000e8e14
jmp 0x1001004cb
bt eax, 0xa
jb 0x100100503
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, rbx
je 0x1001005ae
mov word [rax], bx
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 3
jae 0x100100428
jmp 0x1001005ae
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0x4a2
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x50], 0xff
mov word [rsp + 0xd0], bx
mov byte [rsp + 0xd2], bl
mov byte [rsp + 0xd3], 1
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
mov r9, rsi
lea r8, [0x10003c490]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.1000e8e14
lea rdx, [0x100008430]
mov qword [rsp + 0x20], rdx
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e826c
nop
cmp rsi, rbx
je 0x1001005aa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov bl, 1
jmp 0x1001005eb
lea rax, [0x100008440]
mov qword [rsp + 0x20], rax
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e826c
nop
cmp rsi, rbx
je 0x1001005eb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0xf0]
call fcn.1000e7d24
mov al, bl
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1001303c0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret