Function at 0x140074130
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp + 0xa0], 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 0x140074511
mov qword [r12 + 0x10], r14
mov rax, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14007419c
mov rax, qword [r12]
mov byte [rax], r14b
lea rax, [0x1402f86a0]
mov qword [rsp + 0x40], 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 - 0x10], rax
mov dword [rbp - 0x14], ILFree
mov qword [rsp + 0x48], r14
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.14004e850
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140071270
nop
lea r9d, [rdi + 0x3f]
lea r8d, [rdi + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140077590
lea edx, [rdi + 1]
lea r13d, [rdi + 5]
test rax, rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
jne 0x140074312
mov eax, r13d
cmp qword [rbp + rcx - 0x78], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x50]
and eax, 0x17
mov dword [rsp + rcx + 0x50], eax
mov edx, dword [rsp + rcx + 0x54]
and edx, eax
jne 0x1400745bc
mov edx, 2
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x50], r13b
jne 0x140074504
mov r8d, edx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140077a30
lea rax, [rsp + 0x40]
mov qword [rbp + 0x80], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x78]
test rcx, rcx
je 0x1400742b3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.140034950
mov byte [rbp + 0x88], al
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov rsi, 0xffffffffffffffff
test byte [rsp + rcx + 0x50], 6
jne 0x140074334
mov rcx, qword [rbp + rcx - 0x78]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
mov r9d, edi
xor r8d, r8d
lea rdx, [rbp + 0x58]
call qword [rax + 0x50]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x78]
test rcx, rcx
je 0x140074310
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
nop
jmp 0x140074357
mov eax, 4
cmp qword [rbp + rcx - 0x78], 0
cmovne eax, r14d
mov dword [rsp + rcx + 0x50], eax
test dword [rsp + rcx + 0x54], eax
jne 0x14007458a
jmp 0x14007426a
mov qword [rbp + 0x58], rsi
xor ecx, ecx
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rcx
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + rax - 0x78]
test rcx, rcx
je 0x140074357
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
nop
mov edi, dword [rbp + 0x58]
add edi, dword [rbp + 0x60]
lea eax, [rdi + 1]
movsxd rbx, eax
mov rcx, rbx
call fcn.140172464
mov r15, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140289490
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140077a30
movsxd r8, edi
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.1400778e0
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
test byte [rsp + rdx + 0x50], 6
jne 0x1400744b9
movdqa xmm0, xmmword [0x1402eb9c0]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], 0
mov r8d, 0x20
lea rdx, str.89F91A98B0DF4A1C8E5FA022201E3CCA
lea rcx, [rbp + 0x80]
call fcn.14000c230
nop
movdqa xmm0, xmmword [0x1402eb9c0]
movdqu xmmword [rbp + 0x68], xmm0
mov byte [rbp + 0x58], 0
inc rsi
cmp byte [r15 + rsi], 0
jne 0x1400743f0
mov r8, rsi
mov rdx, r15
lea rcx, [rbp + 0x58]
call fcn.14000c230
nop
mov r8, r12
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x58]
call fcn.140173420
mov ebx, eax
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x14007445a
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074455
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007460d
call fcn.140171af0
movdqa xmm0, xmmword [0x1402eb9c0]
movdqu xmmword [rbp + 0x68], xmm0
mov byte [rbp + 0x58], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x1400744ac
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400744a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074613
call fcn.140171af0
test ebx, ebx
mov edi, 1
cmovne r14d, edi
jmp 0x1400744be
mov edi, 1
mov rcx, r15
call fcn.140171af0
lea rcx, [rsp + 0x50]
call fcn.140077440
test rax, rax
jne 0x140074504
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x78], 0
mov eax, 2
cmovne r13d, eax
or r13d, dword [rsp + rcx + 0x50]
and r13d, 0x17
mov dword [rsp + rcx + 0x50], r13d
mov eax, dword [rsp + rcx + 0x54]
and eax, r13d
jne 0x14007453b
lea rcx, [rsp + 0x40]
call fcn.140071e80
mov eax, r14d
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140172190
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 4
je 0x140074548
lea rbx, str.ios_base::badbit_set
jmp 0x14007455c
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, edi
lea rcx, [rbp + 0x80]
call fcn.1400147b0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.14000e8d0
lea rdx, [0x1403b2678]
lea rcx, [rbp + 0x58]
call fcn.140288938
int3
mov edx, edi
lea rcx, [rbp + 0x80]
call fcn.1400147b0
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rbp + 0x58]
call fcn.14000e8d0
lea rdx, [0x1403b2678]
lea rcx, [rbp + 0x58]
call fcn.140288938
int3
test dl, 4
je 0x1400745ca
lea rbx, str.ios_base::badbit_set
jmp 0x1400745df
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, edi
lea rcx, [rbp + 0x80]
call fcn.1400147b0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.14000e8d0
lea rdx, [0x1403b2678]
lea rcx, [rbp + 0x58]
call fcn.140288938
nop
call fcn.14028c66c
nop
call fcn.14028c66c
int3