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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov r13, r9
mov r14d, r8d
mov rsi, rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x50], r12
lea r8, [0x1400db91c]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
cmp qword [rsp + 0x50], r12
jne 0x140077067
lea rcx, [rsp + 0x68]
call fcn.14006c87c
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x140077a97
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jmp 0x140077a89
lea rcx, [rbp - 0x10]
call fcn.140025968
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.140025c4c
test al, al
jne 0x1400770b1
lea rax, vtable.TiXmlDocument.0
mov qword [rbp - 0x10], rax
lea rax, [0x1400f0ec0]
mov rcx, qword [rbp + 0x48]
cmp rcx, rax
je 0x1400770a6
call fcn.1400b0a54
lea rcx, [rbp - 0x10]
call fcn.140024c0c
jmp 0x140077036
lea rdx, [0x1400b8710]
lea rcx, [rbp - 0x10]
call fcn.140025014
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140077a2b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
test rax, rax
je 0x140077a2b
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077a2b
lea r8, str.CrashGUID
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140026c5c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400771dc
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400771dc
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400771dc
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140026c3c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x1400771dc
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x1400771dc
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
test rax, rax
je 0x1400771dc
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.140026c3c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x1400771a1
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x1400771a1
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x1400771a4
mov rax, r12
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x1400771dc
lea rcx, [rsp + 0x68]
call fcn.14007a5c8
mov rbx, rax
test rax, rax
jne 0x1400771c5
mov eax, r12d
jmp 0x1400771ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 8]
call fcn.14006b5e4
lea r8, [0x1400b8730]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140026c5c
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140077281
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077281
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077281
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140026c3c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077246
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077246
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140077249
mov rax, r12
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140077281
lea rcx, [rsp + 0x68]
call fcn.14007a5c8
mov rbx, rax
test rax, rax
jne 0x14007726a
mov eax, r12d
jmp 0x140077273
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x10]
call fcn.14006b5e4
lea r8, [0x1400b8738]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x48]
call fcn.140026c5c
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140077326
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077326
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077326
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x78]
call fcn.140026c3c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077326
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077326
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
test rax, rax
je 0x140077326
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140077326
lea rcx, [rsp + 0x68]
call fcn.14007a5c8
mov rbx, rax
test rax, rax
jne 0x14007730f
mov eax, r12d
jmp 0x140077318
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x18]
call fcn.14006b5e4
lea r8, [0x1400b8748]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140026c5c
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400773ce
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400773ce
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400773ce
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x70]
call fcn.140026c3c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x1400773ce
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x1400773ce
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
test rax, rax
je 0x1400773ce
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x1400773ce
lea rcx, [rsp + 0x68]
call fcn.14007a5c8
mov rbx, rax
test rax, rax
jne 0x1400773b7
mov eax, r12d
jmp 0x1400773c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x20]
call fcn.14006b5e4
lea r8, [0x1400b8758]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x48]
call fcn.140026c5c
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140077476
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077476
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077476
lea rdx, [rbp + 0x88]
lea rcx, [rbp - 0x68]
call fcn.140026c3c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077476
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077476
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
test rax, rax
je 0x140077476
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140077476
lea rcx, [rsp + 0x68]
call fcn.14007a5c8
mov rbx, rax
test rax, rax
jne 0x14007745f
mov eax, r12d
jmp 0x140077468
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x38]
call fcn.14006b5e4
or edi, 0xffffffff
test r14d, r14d
je 0x140077941
mov rbx, qword [rsi]
cmp dword [rbx - 0xc], r12d
jl 0x14007749b
mov qword [rsp + 0x40], rbx
lea r14d, [rdi + 2]
lock add dword [rbx - 0xc], r14d
jmp 0x1400774cf
mov rax, qword [0x1400ef018]
mov qword [rsp + 0x40], rax
test rbx, rbx
jne 0x1400774b1
mov eax, r12d
jmp 0x1400774ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14006b5e4
mov r14d, 1
mov edx, VarDateFromDisp
mov rcx, qword [rsi]
call sub.VCRUNTIME140.dll_wcsrchr
mov rcx, rax
test rax, rax
je 0x140077552
mov rax, qword [rsi]
sub rcx, rax
sar rcx, 1
test ecx, ecx
js 0x140077552
mov r8d, dword [rax - 8]
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x30], r14d
cmp ecx, r8d
cmovle r8d, ecx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14006cbf0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.14006c8f4
nop
mov rcx, qword [rbp - 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x140077552
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x140077552
call fcn.1400b0a54
nop
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax - 8]
mov r8d, r14d
cmp r9d, r14d
cmovl r8d, r9d
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x20], rax
mov dword [rsp + 0x30], 2
sub r9d, r8d
mov dword [rsp + 0x20], r12d
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.14006cbf0
lea r15, [0x1400b8094]
mov rdx, r15
mov rbx, qword [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
setne r14b
mov dword [rsp + 0x30], r12d
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x1400775ce
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400775ce
call fcn.1400b0a54
test r14b, r14b
je 0x1400775eb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, r15
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14006ce00
lea r8, str.FileList
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x48]
call fcn.140026c5c
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400779b1
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400779b1
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400779b1
lea r8, str.FileItem
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x58]
call fcn.140026c5c
mov rax, qword [rsp + 0x38]
mov esi, 1
test rax, rax
je 0x140077917
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
test rax, rax
je 0x140077917
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077917
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14007769f
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x14007769f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400776a2
mov rax, r12
lea rdx, str.name
mov rcx, rax
call fcn.1400254a4
mov r15, rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400776d6
mov rdx, qword [rcx]
call qword [rdx + 0x28]
test rax, rax
je 0x1400776d6
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
jmp 0x1400776d9
mov rax, r12
lea rdx, [0x1400b86d0]
mov rcx, rax
call fcn.1400254a4
mov rbx, rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14007770d
mov rdx, qword [rcx]
call qword [rdx + 0x28]
test rax, rax
je 0x14007770d
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
jmp 0x140077710
mov rax, r12
lea rdx, str.optional
mov rcx, rax
call fcn.1400254a4
mov r14, rax
test r15, r15
je 0x1400778d9
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.14007a5c8
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14006c728
nop
mov rcx, qword [0x1400ef018]
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x30], r12
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.14006c8f4
nop
mov rax, qword [0x1400ef018]
mov qword [rbp - 0x50], rax
or dword [rsp + 0x30], 4
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rax - 8]
mov rax, qword [rsp + 0x40]
mov r8, rax
mov edx, dword [rax - 8]
lea rcx, [rbp - 0x50]
call fcn.14006ccd0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.14006c8f4
and dword [rsp + 0x30], 0xfffffffb
mov rcx, qword [rbp - 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x1400777d6
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400777d6
call fcn.1400b0a54
test rbx, rbx
je 0x14007780c
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14007a5c8
mov rbx, rax
test rax, rax
jne 0x1400777f5
mov eax, r12d
jmp 0x1400777fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.14006b5e4
mov dword [rbp - 0x30], r12d
test r14, r14
je 0x140077834
lea rdx, [0x1400b86ec]
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov r14d, dword [rbp - 0x2c]
test eax, eax
cmove r14d, esi
mov dword [rbp - 0x2c], r14d
jmp 0x140077838
mov r14d, dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400778a3
test al, 0x10
jne 0x1400778a3
lea rcx, [r13 + 0xe8]
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0x90]
call fcn.140072314
mov rbx, qword [rax]
lea rdx, [rbp - 0x48]
lea rcx, [rbx + 0x28]
call fcn.14006c8f4
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x40]
call fcn.14006c8f4
lea rcx, [rbx + 0x38]
lea rdx, [rbp - 0x38]
call fcn.14006c8f4
mov dword [rbx + 0x40], r12d
mov dword [rbx + 0x44], r14d
lea rcx, [rbx + 0x48]
lea rdx, [rbp - 0x28]
call fcn.14006c8f4
nop
lea rcx, [rbp - 0x48]
call fcn.1400741b8
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x1400778d9
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400778d9
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
call fcn.1400b0a54
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400778fb
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400778fb
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400778fe
mov rax, r12
lea rdx, str.FileItem
mov rcx, rax
call fcn.1400250b0
mov qword [rsp + 0x38], rax
jmp 0x14007764e
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
mov rsi, qword [rbp + 0xd8]
je 0x140077941
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x140077941
call fcn.1400b0a54
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
lea rax, vtable.TiXmlDocument.0
mov qword [rbp - 0x10], rax
lea rax, [0x1400f0ec0]
mov rcx, qword [rbp + 0x48]
cmp rcx, rax
je 0x14007796d
call fcn.1400b0a54
lea rcx, [rbp - 0x10]
call fcn.140024c0c
nop
lea rcx, [rsp + 0x68]
call fcn.14006c87c
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x1400779aa
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400779aa
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0a54
xor eax, eax
jmp 0x140077a9c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x1400779e1
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400779e1
call fcn.1400b0a54
nop
lea rax, vtable.TiXmlDocument.0
mov qword [rbp - 0x10], rax
lea rax, [0x1400f0ec0]
mov rcx, qword [rbp + 0x48]
cmp rcx, rax
je 0x140077a01
call fcn.1400b0a54
lea rcx, [rbp - 0x10]
call fcn.140024c0c
nop
lea rcx, [rsp + 0x68]
call fcn.14006c87c
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x140077a97
jmp 0x140077058
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
lea rax, vtable.TiXmlDocument.0
mov qword [rbp - 0x10], rax
lea rax, [0x1400f0ec0]
mov rcx, qword [rbp + 0x48]
cmp rcx, rax
je 0x140077a57
call fcn.1400b0a54
lea rcx, [rbp - 0x10]
call fcn.140024c0c
nop
lea rcx, [rsp + 0x68]
call fcn.14006c87c
nop
mov rax, qword [rsi]
add rax, 0xfffffffffffffff4
cmp rax, qword [0x1400ef010]
je 0x140077a97
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [rax], ecx
add ecx, edi
test ecx, ecx
jg 0x140077a97
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0a54
mov eax, 1
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret