Function at 0x14003df40
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rax, qword [0x1400e3070]
mov rbx, rdx
mov rdi, rcx
test rax, rax
je 0x14003df86
test byte [rax + 0x70], 1
je 0x14003df86
mov eax, 0x4c7
jmp 0x14003e2a4
mov qword [rsp + 0x5d0], rsi
lea rdx, [rbp + 0x60]
mov r8d, 0x104
mov qword [rsp + 0x5d8], r14
mov rcx, rbx
call fcn.140029cd0
xor r14d, r14d
mov rsi, 0xffffffffffffffff
test dword [rdi + 0x254], 0x2000
je 0x14003e008
lea rax, [rbp + 0x280]
mov dword [rsp + 0x28], 0x104
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0x280]
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
call fcn.140017e30
mov eax, dword [rdi + 0x25c]
cmp eax, 0x10f
ja 0x14003e0ff
je 0x14003e0eb
sub eax, 0x98
je 0x14003e05c
sub eax, 0x17
je 0x14003e048
cmp eax, 0x10
jne 0x14003e10d
lea r8, [rbp + 0x60]
mov rdx, rbx
mov rcx, rdi
call fcn.14003d9f0
jmp 0x14003e294
lea r8, [rbp + 0x60]
mov rdx, rbx
mov rcx, rdi
call fcn.14003d1e0
jmp 0x14003e294
mov ecx, dword [rbx + 0x48]
call fcn.14003f780
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp + 0x60]
mov r8d, SafeArrayGetDim
call fcn.140052630
mov esi, eax
test eax, 0x2ab
je 0x14003e085
or word [rbx + 0x44], 2
mov r8d, 0x104
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140029dc0
mov rcx, qword [rdi + 0x228]
lea r9, [rbp + 0x170]
mov r8, rsi
mov edx, 0x140c
call qword [sym.imp.USER32.dll_SendMessageW]
inc dword [rdi + 0x250]
lea rdx, [rsp + 0x30]
mov eax, dword [rdi + 0x250]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x40], r14
call fcn.140017e30
xor eax, eax
jmp 0x14003e294
lea r8, [rbp + 0x60]
mov rdx, rbx
mov rcx, rdi
call fcn.14003dc90
jmp 0x14003e294
cmp eax, 0x173
je 0x14003e127
cmp eax, 0x1f5
je 0x14003e117
mov eax, 0x32
jmp 0x14003e294
or word [rbx + 0x44], 0x40
xor eax, eax
mov qword [rbx + 0x20], r14
jmp 0x14003e294
mov ecx, dword [rbx + 0x48]
call fcn.14003f780
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp + 0x60]
call fcn.140052da0
test al, al
jne 0x14003e261
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x14003e191
lea rdx, str._listfile_
lea rcx, [rbp + 0x60]
call fcn.1400a0b18
test eax, eax
je 0x14003e261
lea rdx, [0x1400c60d8]
lea rcx, [rbp + 0x60]
call fcn.1400a0b18
test eax, eax
je 0x14003e261
lea rdx, [0x1400c60c8]
lea rcx, [rbp + 0x60]
call fcn.1400a0b18
test eax, eax
je 0x14003e261
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], r14d
mov r9d, esi
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x60]
mov qword [rsp + 0x58], r14
xor edx, edx
mov word [rsp + 0x60], r14w
mov ecx, 0xfde9
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cdqe
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14003e22d
lea rcx, [rax + 1]
cmp rcx, 0x80
jbe 0x14003e208
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.140094b74
mov rcx, rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
jmp 0x14003e20d
mov rcx, qword [rsp + 0x50]
inc rax
lea r8, [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov r9d, esi
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rdi + 0x228]
mov edx, 0x170
call fcn.1400187f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003e292
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x14003e292
call fcn.140062970
jmp 0x14003e292
inc dword [rdi + 0x250]
lea rdx, [rsp + 0x30]
mov eax, dword [rdi + 0x250]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x40], r14
call fcn.140017e30
mov ebx, r14d
mov eax, ebx
mov rsi, qword [rsp + 0x5d0]
mov r14, qword [rsp + 0x5d8]
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.140094850
add rsp, 0x5a0
pop rdi
pop rbx
pop rbp
ret