Function at 0x10010061c
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 [0x100176150]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rdi, rdx
lea r13, [0x10003b6c0]
mov qword [rsp + 0x30], r13
lea r14, [0x10003c550]
mov qword [rsp + 0x38], r14
lea r15, [0x10003b6a0]
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.1000e8000
nop
mov qword [rsp + 0xe0], rbx
lea rax, [0x10000d460]
mov qword [rsp + 0xd8], rax
cmp word [rdi], bx
jne 0x100100735
lea rax, [0x100008440]
mov qword [rsp + 0x20], rax
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e8634
nop
lea rcx, [rsp + 0xf0]
call fcn.1000e80ec
xor al, al
jmp 0x100100a56
mov rdx, rdi
lea rcx, [rsp + 0xd8]
call fcn.1000610d0
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 0x100100770
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 0x100100845
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, [0x10003bd80]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.1000e91dc
lea rax, [0x100008440]
mov qword [rsp + 0x20], rax
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e8634
nop
cmp rsi, rbx
je 0x100100840
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x100100a47
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 0x10010086b
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 0x100100a0a
mov rdx, rsi
lea rcx, [rsp + 0x160]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100100a0a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100100921
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, [0x10003c5a0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.1000e91dc
jmp 0x100100927
bt eax, 0xa
jb 0x10010095f
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, rbx
je 0x100100a0a
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 0x100100884
jmp 0x100100a0a
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, [0x10003c5f0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.1000e91dc
lea rdx, [0x100008430]
mov qword [rsp + 0x20], rdx
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e8634
nop
cmp rsi, rbx
je 0x100100a06
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov bl, 1
jmp 0x100100a47
lea rax, [0x100008440]
mov qword [rsp + 0x20], rax
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0xf0]
call fcn.1000e8634
nop
cmp rsi, rbx
je 0x100100a47
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0xf0]
call fcn.1000e80ec
mov al, bl
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.100130830
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