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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
xor r14d, r14d
mov ebx, r14d
mov dword [rbp + 0x6f], ebx
cmp dword [0x14025e9c4], ebx
je 0x14003e279
mov dword [0x14025e9c4], r14d
mov dword [rbp + 0x67], r14d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14003e279
lea rdx, [0x14016e468]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14003e022
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x67]
call rsi
mov qword [rbp + 0x6f], r14
lea rdx, [0x14016e450]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003e04d
lea r8, [rbp + 0x6f]
lea rdx, [0x14003da10]
mov ecx, 4
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14003e279
mov r8d, 0x104
lea rdi, [0x1402dc290]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14003e093
mov edx, 0x5c
mov rcx, rdi
call fcn.1401229dc
test rax, rax
je 0x14003e093
mov word [rax], r14w
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r14
mov word [rbp - 0x21], r14w
cmp word [0x1402dc290], bx
jne 0x14003e0b2
mov r8, r14
jmp 0x14003e0c0
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x14003e0b6
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.14000d340
nop
cmp dword [rbp + 0x67], 0
je 0x14003e13e
lea r8, [0x14016e478]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call fcn.14003a210
nop
mov ebx, 1
mov dword [rbp + 0x6f], ebx
cmp qword [rax + 0x18], 8
jb 0x14003e0fa
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003e13e
lea r8, [0x14016e498]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 1]
call fcn.14003a210
mov ebx, 3
cmp qword [rax + 0x18], 8
jb 0x14003e12b
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003e13e
mov sil, 1
jmp 0x14003e141
xor sil, sil
test bl, 2
je 0x14003e16a
and ebx, 0xfffffffd
cmp qword [rbp + 0x17], 8
jb 0x14003e159
mov rcx, qword [rbp - 1]
call fcn.14011f898
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r14
mov word [rbp - 1], r14w
test bl, 1
je 0x14003e182
and ebx, 0xfffffffe
cmp qword [rbp + 0x37], 8
jb 0x14003e182
mov rcx, qword [rbp + 0x1f]
call fcn.14011f898
test sil, sil
je 0x14003e193
lea r8, [0x14016e498]
jmp 0x14003e24d
cmp dword [rbp + 0x67], 0
jne 0x14003e200
lea r8, [0x14016e4c8]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call fcn.14003a210
nop
or ebx, 4
mov dword [rbp + 0x6f], ebx
cmp qword [rax + 0x18], 8
jb 0x14003e1be
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003e200
lea r8, [0x14016e4e0]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 1]
call fcn.14003a210
or ebx, 8
cmp qword [rax + 0x18], 8
jb 0x14003e1ed
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003e200
mov sil, 1
jmp 0x14003e203
xor sil, sil
test bl, 8
je 0x14003e22c
and ebx, 0xfffffff7
cmp qword [rbp + 0x17], 8
jb 0x14003e21b
mov rcx, qword [rbp - 1]
call fcn.14011f898
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r14
mov word [rbp - 1], r14w
test bl, 4
je 0x14003e241
cmp qword [rbp + 0x37], 8
jb 0x14003e241
mov rcx, qword [rbp + 0x1f]
call fcn.14011f898
test sil, sil
je 0x14003e25c
lea r8, [0x14016e4e0]
mov edx, 0x104
mov rcx, rdi
call fcn.140122790
jmp 0x14003e264
mov word [0x1402dc290], r14w
cmp qword [rbp - 9], 8
jb 0x14003e274
mov rcx, qword [rbp - 0x21]
call fcn.14011f898
mov rax, rdi
jmp 0x14003e280
lea rax, [0x1402dc290]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret