Function at 0x140030ce0
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 [0x1401f19b4], ebx
je 0x140030fb5
mov dword [0x1401f19b4], 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 0x140030fb5
lea rdx, [0x140129ce0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x140030d62
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x67]
call rsi
mov qword [rbp + 0x6f], r14
lea rdx, [0x140129cc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030d8d
lea r8, [rbp + 0x6f]
lea rdx, [0x1400308f0]
mov ecx, 4
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x140030fb5
mov r8d, 0x104
lea rdi, [0x140270250]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
mov rcx, rdi
call fcn.1400e7ea0
test rax, rax
je 0x140030dcf
mov word [rax], r14w
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r14
mov word [rbp - 0x21], r14w
cmp word [0x140270250], bx
jne 0x140030dee
mov r8, r14
jmp 0x140030dfc
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x140030df2
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.140007720
nop
cmp dword [rbp + 0x67], 0
je 0x140030e7a
lea r8, [0x140129cf0]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call fcn.14002d200
nop
mov ebx, 1
mov dword [rbp + 0x6f], ebx
cmp qword [rax + 0x18], 8
jb 0x140030e36
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030e7a
lea r8, [0x140129d10]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 1]
call fcn.14002d200
mov ebx, 3
cmp qword [rax + 0x18], 8
jb 0x140030e67
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030e7a
mov sil, 1
jmp 0x140030e7d
xor sil, sil
test bl, 2
je 0x140030ea6
and ebx, 0xfffffffd
cmp qword [rbp + 0x17], 8
jb 0x140030e95
mov rcx, qword [rbp - 1]
call fcn.1400e5d34
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r14
mov word [rbp - 1], r14w
test bl, 1
je 0x140030ebe
and ebx, 0xfffffffe
cmp qword [rbp + 0x37], 8
jb 0x140030ebe
mov rcx, qword [rbp + 0x1f]
call fcn.1400e5d34
test sil, sil
je 0x140030ecf
lea r8, [0x140129d10]
jmp 0x140030f89
cmp dword [rbp + 0x67], 0
jne 0x140030f3c
lea r8, [0x140129d40]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call fcn.14002d200
nop
or ebx, 4
mov dword [rbp + 0x6f], ebx
cmp qword [rax + 0x18], 8
jb 0x140030efa
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030f3c
lea r8, [0x140129d58]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 1]
call fcn.14002d200
or ebx, 8
cmp qword [rax + 0x18], 8
jb 0x140030f29
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030f3c
mov sil, 1
jmp 0x140030f3f
xor sil, sil
test bl, 8
je 0x140030f68
and ebx, 0xfffffff7
cmp qword [rbp + 0x17], 8
jb 0x140030f57
mov rcx, qword [rbp - 1]
call fcn.1400e5d34
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r14
mov word [rbp - 1], r14w
test bl, 4
je 0x140030f7d
cmp qword [rbp + 0x37], 8
jb 0x140030f7d
mov rcx, qword [rbp + 0x1f]
call fcn.1400e5d34
test sil, sil
je 0x140030f98
lea r8, [0x140129d58]
mov edx, 0x104
mov rcx, rdi
call fcn.1400e7c0c
jmp 0x140030fa0
mov word [0x140270250], r14w
cmp qword [rbp - 9], 8
jb 0x140030fb0
mov rcx, qword [rbp - 0x21]
call fcn.1400e5d34
mov rax, rdi
jmp 0x140030fbc
lea rax, [0x140270250]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret