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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, r9
mov rsi, r8
mov r12, rdx
mov r13d, ecx
mov rcx, r9
call fcn.10001e65c
mov r15d, 1
mov ebx, r15d
cmp r13d, r15d
jle 0x10001c496
or r14, 0xffffffffffffffff
movsxd rax, ebx
mov rdi, qword [r12 + rax*8]
cmp word [rdi], 0x2f
je 0x10001babe
cmp word [rdi], 0x2d
jne 0x10001c25d
add rdi, 2
mov dword [rsp + 0x28], r14d
lea rax, [0x100008068]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bb7b
cmp dword [rsi], 0
je 0x10001bb26
cmp dword [rsi], 4
jne 0x10001bb02
add ebx, r15d
jmp 0x10001c24c
movsxd r9, dword [rsi]
lea rax, [0x100081798]
mov r9, qword [rax + r9*8]
mov r8, qword [0x1000817a8]
lea rdx, [0x100008070]
mov rcx, rbp
call fcn.10001ef50
add ebx, r15d
cmp ebx, r13d
je 0x10001c294
mov dword [rsi], 2
movsxd rax, ebx
mov rdx, qword [r12 + rax*8]
test rdx, rdx
jne 0x10001bb48
xor ecx, ecx
jmp 0x10001bb59
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
lea rcx, [rsi + 8]
call fcn.10001e7fc
lea rcx, [rsi + 8]
call fcn.10002fbcc
test al, al
je 0x10001c27a
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x1000081a4]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bc34
cmp dword [rsi], 0
je 0x10001bbdf
cmp dword [rsi], 4
jne 0x10001bbbb
add ebx, r15d
jmp 0x10001c24c
movsxd r9, dword [rsi]
lea rax, [0x100081798]
mov r9, qword [rax + r9*8]
mov r8, qword [0x1000817b0]
lea rdx, [0x100008070]
mov rcx, rbp
call fcn.10001ef50
add ebx, r15d
cmp ebx, r13d
je 0x10001c2d8
mov dword [rsi], 3
movsxd rax, ebx
mov rdx, qword [r12 + rax*8]
test rdx, rdx
jne 0x10001bc01
xor ecx, ecx
jmp 0x10001bc12
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
lea rcx, [rsi + 8]
call fcn.10001e7fc
lea rcx, [rsi + 8]
call fcn.10002fbcc
test al, al
je 0x10001c2be
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008218]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bc67
mov dword [rsi + 0x20], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008220]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10001c248
mov dword [rsp + 0x28], r14d
lea rax, [0x100008224]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10001c248
mov dword [rsp + 0x28], r14d
lea rax, [0x100008228]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bcf6
mov dword [rsi + 0x14], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008230]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bd29
mov dword [rsi + 0x1c], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008238]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bd5c
mov dword [rsi + 0x24], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x10000823c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bd8f
mov dword [rsi + 0x28], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008240]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001beba
add ebx, r15d
cmp ebx, r13d
je 0x10001c3c3
movsxd rax, ebx
mov rdx, qword [r12 + rax*8]
test rdx, rdx
jne 0x10001bdd9
xor ecx, ecx
jmp 0x10001bdea
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
lea rcx, [rsi + 0x30]
call fcn.10001e7fc
lea rcx, [0x100081100]
mov rax, qword [0x100081100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [0x100081100]
mov rax, qword [0x100081100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x30]
call fcn.10002f82c
lea rcx, [rsi + 0x30]
call fcn.10002fbcc
test al, al
jne 0x10001c365
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001c302
shr eax, 4
and al, r15b
je 0x10001c302
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x10001be90
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x10001c24c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008384]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001beed
mov dword [rsi + 0x38], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x10000838c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001bf20
mov dword [rsi + 0x3c], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008394]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10001c242
mov dword [rsp + 0x28], r14d
lea rax, [0x100008398]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10001c242
mov dword [rsp + 0x28], r14d
lea rax, [0x1000083a0]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c003
add ebx, r15d
cmp ebx, r13d
je 0x10001c407
movsxd rax, ebx
mov rdx, qword [r12 + rax*8]
test rdx, rdx
jne 0x10001bfc2
xor ecx, ecx
jmp 0x10001bfd3
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
lea rcx, [rsi + 0x48]
call fcn.10001e7fc
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001c3ed
shr eax, 4
and al, r15b
je 0x10001c3ed
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008424]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c04e
add ebx, r15d
cmp ebx, r13d
je 0x10001c42e
movsxd rcx, ebx
mov rcx, qword [r12 + rcx*8]
call fcn.10002f714
mov word [rsi + 0x10], ax
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x10000848c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c081
and dword [rsi + 0x54], 0
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008490]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c0b4
mov dword [rsi + 0x50], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x100008498]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c0e7
mov dword [rsi + 0x58], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x10000849c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c11a
mov dword [rsi + 0x5c], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x1000084a0]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c185
add ebx, r15d
cmp ebx, r13d
je 0x10001c455
movsxd rax, ebx
mov rdx, qword [r12 + rax*8]
test rdx, rdx
jne 0x10001c160
xor eax, eax
jmp 0x10001c174
xor eax, eax
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov rax, rcx
lea rcx, [rsi + 0x60]
mov r8d, eax
call fcn.10001e7fc
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x1000084d8]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c1b8
mov dword [rsi + 0x68], r15d
jmp 0x10001c24c
mov dword [rsp + 0x28], r14d
lea rax, [0x1000084e0]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10001c23a
mov dword [rsp + 0x28], r14d
lea rax, [0x1000084e4]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10001c23a
mov dword [rsp + 0x28], r14d
lea rax, [0x1000084e8]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10001c47c
mov dword [rsi], 4
jmp 0x10001c24c
mov dword [rsi + 0x40], r15d
jmp 0x10001c24c
mov dword [rsi + 0x18], r15d
add ebx, r15d
cmp ebx, r13d
jge 0x10001c496
jmp 0x10001baa7
movsxd r8, ebx
mov r8, qword [r12 + r8*8]
lea rdx, [0x100008500]
mov rcx, rbp
call fcn.10001ef50
xor eax, eax
jmp 0x10001c499
mov r8, qword [rsi + 8]
lea rdx, [0x100008178]
mov rcx, rbp
call fcn.10001ef50
xor eax, eax
jmp 0x10001c499
xor eax, eax
mov rcx, r14
lea rdx, [0x100008110]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
mov rcx, rbp
call fcn.10001e7fc
xor eax, eax
jmp 0x10001c499
mov r8, qword [rsi + 8]
lea rdx, [0x100007a40]
mov rcx, rbp
call fcn.10001ef50
xor eax, eax
jmp 0x10001c499
xor eax, eax
mov rcx, r14
lea rdx, [0x1000081b0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
mov rcx, rbp
call fcn.10001e7fc
xor eax, eax
jmp 0x10001c499
mov r9, qword [rsi + 0x30]
mov r8, qword [rsp + 0x30]
lea rdx, [0x100008340]
mov rcx, rbp
call fcn.10001ef50
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x10001c33d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x10001c35e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x10001c499
mov r8, qword [rsi + 0x30]
lea rdx, [0x1000082a0]
mov rcx, rbp
call fcn.10001ef50
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x10001c39b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x10001c3bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x10001c499
xor eax, eax
mov rcx, r14
lea rdx, [0x100008250]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
mov rcx, rbp
call fcn.10001e7fc
xor eax, eax
jmp 0x10001c499
mov r8, qword [rsi + 0x48]
lea rdx, [0x1000083f8]
mov rcx, rbp
call fcn.10001ef50
xor eax, eax
jmp 0x10001c499
xor eax, eax
mov rcx, r14
lea rdx, [0x1000083b0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
mov rcx, rbp
call fcn.10001e7fc
xor eax, eax
jmp 0x10001c499
xor eax, eax
mov rcx, r14
lea rdx, [0x100008430]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
mov rcx, rbp
call fcn.10001e7fc
xor eax, eax
jmp 0x10001c499
xor eax, eax
mov rcx, r14
lea rdx, [0x1000084b8]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
mov rcx, rbp
call fcn.10001e7fc
xor eax, eax
jmp 0x10001c499
movsxd r8, ebx
mov r8, qword [r12 + r8*8]
lea rdx, [0x100008500]
mov rcx, rbp
call fcn.10001ef50
xor eax, eax
jmp 0x10001c499
mov eax, r15d
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret