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

Disassembly:
push rbp
lea rbp, [rsp - 0x1040]
mov eax, 0x1140
call fcn.140038d50
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1150], rbx
mov qword [rsp + 0x1158], rdi
mov rax, qword [0x14007bec0]
xor rax, rsp
mov qword [rbp + 0x1030], rax
test cl, cl
je 0x140008fe2
mov qword [rsp + 0x70], 7
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
lea rcx, [rbp - 8]
call fcn.140008320
mov rdi, rax
lea rax, [rsp + 0x58]
cmp rax, rdi
je 0x140008f7e
cmp qword [rsp + 0x70], 8
jb 0x140008f26
mov rcx, qword [rsp + 0x58]
call fcn.140033ccc
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rdi + 0x18], 8
jae 0x140008f59
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140033fc0
jmp 0x140008f64
mov rax, qword [rdi]
mov qword [rsp + 0x58], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x68], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x70], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
cmp qword [rbp + 0x10], 8
jb 0x140008f8e
mov rcx, qword [rbp - 8]
call fcn.140033ccc
cmp qword [rsp + 0x68], 0
jne 0x140008fac
cmp qword [rsp + 0x70], 8
jb 0x14000978a
mov rcx, qword [rsp + 0x58]
jmp 0x140009785
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov edx, 1
call fcn.140009a00
mov edi, eax
cmp qword [rsp + 0x70], 8
jb 0x140008fdb
mov rcx, qword [rsp + 0x58]
call fcn.140033ccc
mov eax, edi
jmp 0x14000978c
test dl, dl
je 0x140008ff9
call fcn.14000a6e0
test al, al
je 0x140008ff9
mov eax, 1
jmp 0x14000978c
mov qword [rbp - 0x68], 7
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
movzx eax, bx
lea rdi, [rbp + 0x30]
mov ecx, 0x800
rep stosw word [rdi], ax
lea r8d, [rbx + 0x30]
lea rdx, [rbp - 8]
lea rcx, [fcn.140008ea0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, ebx
test rax, rax
cmovne rcx, qword [rbp]
mov r8d, 0x800
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140002b60
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x58]
call fcn.140020b10
nop
cmp qword [rbp - 0x40], 8
jb 0x1400090ac
mov rcx, qword [rbp - 0x58]
call fcn.140033ccc
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
mov r8d, 0xc
lea rdx, [0x1400680e8]
lea rcx, [rbp - 0x58]
call fcn.140002b60
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140020d10
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x14000915b
cmp qword [rsp + 0x48], 8
jb 0x140009103
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp qword [rdi + 0x18], 8
jae 0x140009136
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140033fc0
jmp 0x140009141
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
cmp qword [rbp - 0x18], 8
jb 0x14000916b
mov rcx, qword [rbp - 0x30]
call fcn.140033ccc
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp qword [rbp - 0x40], 8
jb 0x14000918b
mov rcx, qword [rbp - 0x58]
call fcn.140033ccc
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009278
shr eax, 4
not eax
and eax, 1
je 0x140009278
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140009a00
test eax, eax
jne 0x140009202
cmp qword [rsp + 0x48], 8
jb 0x1400091ea
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x14000977a
call fcn.140008c10
test eax, eax
jne 0x140009235
cmp qword [rsp + 0x48], 8
jb 0x14000921d
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x14000977a
call fcn.140008b90
mov edi, eax
cmp qword [rsp + 0x48], 8
jb 0x14000924e
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp qword [rbp - 0x68], 8
jb 0x140009271
mov rcx, qword [rbp - 0x80]
call fcn.140033ccc
mov eax, edi
jmp 0x14000978c
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140020b10
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
mov r8d, 0xc
lea rdx, [0x1400680e8]
lea rcx, [rbp - 0x58]
call fcn.140002b60
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140020d10
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x140009334
cmp qword [rsp + 0x48], 8
jb 0x1400092dc
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp qword [rdi + 0x18], 8
jae 0x14000930f
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140033fc0
jmp 0x14000931a
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
cmp qword [rbp - 0x18], 8
jb 0x140009344
mov rcx, qword [rbp - 0x30]
call fcn.140033ccc
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp qword [rbp - 0x40], 8
jb 0x140009364
mov rcx, qword [rbp - 0x58]
call fcn.140033ccc
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000943f
shr eax, 4
not eax
and eax, 1
je 0x14000943f
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140009a00
test eax, eax
jne 0x1400093db
cmp qword [rsp + 0x48], 8
jb 0x1400093c3
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x14000977a
call fcn.140008c10
test eax, eax
jne 0x14000940e
cmp qword [rsp + 0x48], 8
jb 0x1400093f6
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x14000977a
call fcn.140008b90
mov edi, eax
cmp qword [rsp + 0x48], 8
jb 0x140009427
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x140009261
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
lea rcx, [rsp + 0x58]
call fcn.140020f70
movzx eax, bx
lea rdi, [rbp + 0x30]
mov ecx, 0x800
rep stosw word [rdi], ax
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
add r8, r8
lea rcx, [rbp + 0x30]
call fcn.140033fc0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x30]
call fcn.140035068
test eax, eax
je 0x140009727
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
mov r8d, 0xc
lea rdx, [0x1400680e8]
lea rcx, [rbp - 0x30]
call fcn.140002b60
nop
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140002b60
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 8]
call fcn.140020d10
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x14000958d
cmp qword [rsp + 0x48], 8
jb 0x140009535
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp qword [rdi + 0x18], 8
jae 0x140009568
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140033fc0
jmp 0x140009573
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
cmp qword [rbp + 0x10], 8
jb 0x14000959d
mov rcx, qword [rbp - 8]
call fcn.140033ccc
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rbx
mov word [rbp - 8], bx
cmp qword [rbp - 0x40], 8
jb 0x1400095bd
mov rcx, qword [rbp - 0x58]
call fcn.140033ccc
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
cmp qword [rbp - 0x18], 8
jb 0x1400095dd
mov rcx, qword [rbp - 0x30]
call fcn.140033ccc
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009727
shr eax, 4
not eax
and eax, 1
je 0x140009727
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140009a00
test eax, eax
jne 0x140009679
cmp qword [rsp + 0x70], 8
jb 0x14000963c
mov rcx, qword [rsp + 0x58]
call fcn.140033ccc
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], 8
jb 0x140009661
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x14000977a
call fcn.140008c10
test eax, eax
jne 0x1400096d1
cmp qword [rsp + 0x70], 8
jb 0x140009694
mov rcx, qword [rsp + 0x58]
call fcn.140033ccc
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], 8
jb 0x1400096b9
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x14000977a
call fcn.140008b90
mov edi, eax
cmp qword [rsp + 0x70], 8
jb 0x1400096ea
mov rcx, qword [rsp + 0x58]
call fcn.140033ccc
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], 8
jb 0x14000970f
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
jmp 0x140009261
cmp qword [rsp + 0x70], 8
jb 0x140009739
mov rcx, qword [rsp + 0x58]
call fcn.140033ccc
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140009a00
nop
cmp qword [rsp + 0x48], 8
jb 0x140009767
mov rcx, qword [rsp + 0x30]
call fcn.140033ccc
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp qword [rbp - 0x68], 8
jb 0x14000978a
mov rcx, qword [rbp - 0x80]
call fcn.140033ccc
xor eax, eax
mov rcx, qword [rbp + 0x1030]
xor rcx, rsp
call fcn.140033cf0
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret