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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x380
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rbx, rdx
lea r15, [0x140005df0]
mov qword [rsp + 0x40], r15
lea r12, [0x1400405b0]
mov qword [rsp + 0x48], r12
lea r13, [0x140005d90]
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x617
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
xor edi, edi
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140052e50
nop
mov qword [rsp + 0x38], rdi
lea rax, [0x140001d20]
mov qword [rsp + 0x30], rax
cmp word [rbx], di
je 0x140112eaf
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140073e50
mov rbx, qword [rsp + 0x38]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rbx + rax*2], di
jne 0x140112cb4
mov r14d, 0x5c
cmp word [rbx + rax*2 - 2], r14w
jne 0x140112cdc
mov rax, rsi
inc rax
cmp word [rbx + rax*2], di
jne 0x140112cce
mov word [rbx + rax*2 - 2], di
mov r8d, 0x104
lea rdx, [rbp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNameW]
test eax, eax
jne 0x140112d58
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x62e
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rax + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x14003fdf0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400510b0
jmp 0x140112eaf
lea rcx, [rbp + 0x60]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], di
jne 0x140112d5f
cmp word [rbp + rax*2 + 0x5e], r14w
jne 0x140112d8d
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x140112d87
mov word [rbp + rax + 0x60], di
jmp 0x140112d8d
call fcn.14005e088
int3
mov rax, rsi
inc rax
cmp word [rbx + rax*2], di
jne 0x140112d90
jmp 0x140112e49
mov rdx, rbx
lea rcx, [rbp + 0x60]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140112eaf
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140112e23
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x655
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140040680]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400510b0
jmp 0x140112e29
bt eax, 0xa
jb 0x140112e55
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140112eaf
mov word [rax], di
mov rax, rsi
inc rax
cmp word [rbx + rax*2], di
jne 0x140112e40
cmp rax, 3
jae 0x140112d9e
jmp 0x140112eaf
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], 0x65c
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov r9, rbx
lea r8, [0x140040650]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400510b0
mov dl, 1
jmp 0x140112eb1
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140074628
mov bl, al
lea rcx, [rsp + 0x30]
call fcn.140070d4c
nop
lea rcx, [rbp - 0x10]
call fcn.140050f50
mov al, bl
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret