Function at 0x1400d42a0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140375828]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r13, r9
mov rax, r8
mov r12, rdx
mov rsi, rcx
mov r14, qword [rbp + 0x240]
mov r15, qword [rbp + 0x248]
mov qword [rsp + 0x40], 7
xor edi, edi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or rbx, 0xffffffffffffffff
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140026920
nop
mov r8, qword [rsp + 0x38]
test r8, r8
sete al
test al, al
jne 0x1400d4381
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x5c
je 0x1400d4378
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x2f
je 0x1400d4378
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + r8*2 - 2], 0x3a
jne 0x1400d4381
lea rdx, [0x14020a480]
jmp 0x1400d4388
lea rdx, [0x1402ba9d8]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400d4390
lea rcx, [rsp + 0x28]
call fcn.14003f1b0
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d441b
mov qword [r12], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400d43ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1400d43ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400d2cb0
mov dword [rsi], edi
mov qword [rsi + 8], rax
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400d4416
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400271e0
nop
jmp 0x1400d451e
cmp word [rbp - 0x64], 0
jne 0x1400d4427
mov r8, rdi
jmp 0x1400d443b
lea rax, [rbp - 0x64]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400d4430
lea rdx, [rbp - 0x64]
mov rcx, r13
call fcn.140026520
mov eax, dword [rsp + 0x70]
bt eax, 0xa
jae 0x1400d445c
mov dword [r14], edi
mov dword [r15], edi
jmp 0x1400d44f5
test al, 0x10
je 0x1400d4470
mov dword [r14], 3
mov dword [r15], 3
jmp 0x1400d447e
mov dword [r14], 2
mov dword [r15], 2
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp word [rbp - 0x64], 0
jne 0x1400d449d
mov rbx, rdi
jmp 0x1400d44ab
lea rax, [rbp - 0x64]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400d44a1
mov r8, rbx
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x48]
call fcn.140026520
nop
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400d5200
mov dword [r14 + 4], eax
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400d44ed
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400271e0
nop
mov eax, dword [r14 + 4]
mov dword [r15 + 4], eax
mov dword [rsi], edi
call fcn.1400d2cb0
mov qword [rsi + 8], rax
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400d451e
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400271e0
nop
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401dd140
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret