Function at 0x14009f100
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1f0], rbx
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r12, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14009f4ab
mov rax, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14009f168
mov rax, qword [r12]
mov qword [r12 + 0x10], r14
mov byte [rax], r14b
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call fcn.1401afc90
lea rax, [0x14020a9c0]
mov qword [rbp - 0x80], rax
mov edi, 1
mov dword [rsp + 0x30], edi
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x2c], reloc.SHELL32.dll_ILGetSize
mov qword [rbp - 0x78], r14
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x30]
call fcn.1400a62f0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14009b690
nop
lea r9d, [rdi + 0x3f]
lea r8d, [rdi + 0x20]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400a63c0
lea ebx, [rdi + 1]
lea r13d, [rdi + 5]
test rax, rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
jne 0x14009f22f
add rcx, rax
mov edx, r13d
cmp qword [rcx + 0x48], 0
cmovne edx, ebx
or edx, dword [rcx + 0x10]
jmp 0x14009f240
add rcx, rax
mov edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, r14d
xor r8d, r8d
call fcn.14000d9c0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x70], r13b
jne 0x14009f49f
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400a6820
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x38]
test rcx, rcx
je 0x14009f28b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov dl, 1
lea rcx, [rbp - 0x80]
call fcn.1400a5ea0
mov byte [rsp + 0x60], al
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov rsi, 0xffffffffffffffff
test byte [rbp + rcx - 0x70], 6
jne 0x14009f2e6
mov rcx, qword [rbp + rcx - 0x38]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
mov r9d, edi
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [rax + 0x50]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x38]
test rcx, rcx
je 0x14009f2e4
mov rax, qword [rcx]
call qword [rax + ILClone]
nop
jmp 0x14009f30c
mov qword [rsp + 0x38], rsi
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + rax - 0x38]
test rcx, rcx
je 0x14009f30c
mov rax, qword [rcx]
call qword [rax + ILClone]
nop
mov edi, dword [rsp + 0x38]
add edi, dword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rbx, eax
mov rcx, rbx
call fcn.140160c3c
mov r15, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1401afc90
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400a6820
movsxd r8, edi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1400a6730
test edi, edi
je 0x14009f45c
movdqa xmm0, xmmword [0x1401f5810]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov r8d, 0x20
lea rdx, str.89F91A98B0DF4A1C8E5FA022201E3CCA
lea rcx, [rsp + 0x58]
call fcn.14000d6b0
nop
movdqa xmm0, xmmword [0x1401f5810]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
inc rsi
cmp byte [r15 + rsi], 0
jne 0x14009f395
mov r8, rsi
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.14000d6b0
nop
mov r8, r12
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.140168f20
mov ebx, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14009f401
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009f3fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009f4db
call fcn.1401606e8
movdqa xmm0, xmmword [0x1401f5810]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14009f451
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009f44c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009f4d5
call fcn.1401606e8
test ebx, ebx
mov eax, 1
cmovne r14d, eax
mov rcx, r15
call fcn.1401606e8
lea rcx, [rbp - 0x70]
call fcn.1400a6130
test rax, rax
jne 0x14009f49f
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x80]
add rcx, r9
cmp qword [rcx + 0x48], 0
mov eax, 2
cmovne r13d, eax
or r13d, dword [rcx + 0x10]
xor r8d, r8d
mov edx, r13d
call fcn.14000d9c0
nop
lea rcx, [rbp - 0x80]
call fcn.14009bcf0
mov eax, r14d
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b3260
nop
call fcn.1401b3260
int3