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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, r9
mov r14d, r8d
mov rsi, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x38], r12
lea r8, [0x1400eb52c]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll__wfopen_s]
cmp qword [rsp + 0x38], r12
jne 0x140077bdb
lea rcx, [rsp + 0x50]
call fcn.140068890
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x140077bd1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x140077bd1
mov rcx, qword [rsi]
sub rcx, 0xc
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 1
jmp 0x14007855e
lea rcx, [rbp - 0x30]
call fcn.140021cac
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.140021fc8
test al, al
jne 0x140077c28
lea rax, vtable.TiXmlDocument.0
mov qword [rbp - 0x30], rax
lea rax, [0x140109f70]
mov rcx, qword [rbp + 0x28]
cmp rcx, rax
je 0x140077c1a
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rbp - 0x30]
call fcn.140020ed4
jmp 0x140077b9b
lea rdx, [0x1400c8f90]
lea rcx, [rbp - 0x30]
call fcn.140021304
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140077c5d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
test rax, rax
je 0x140077c5d
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140077c60
mov rax, r12
test rax, rax
jne 0x140077c72
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_fclose]
jmp 0x140077bfa
lea r8, str.CrashGUID
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1400230bc
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140077caa
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077caa
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140077cad
mov rax, r12
test rax, rax
je 0x140077d57
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.14002309c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077ce5
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077ce5
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140077ce8
mov rax, r12
test rax, rax
je 0x140077d57
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14002309c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077d1c
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077d1c
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140077d1f
mov rax, r12
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140077d57
lea rcx, [rsp + 0x50]
call fcn.14007c8f8
mov rbx, rax
test rax, rax
jne 0x140077d40
mov eax, r12d
jmp 0x140077d49
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 8]
call fcn.140067304
lea r8, [0x1400c8fb0]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.1400230bc
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140077d8f
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077d8f
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140077d92
mov rax, r12
test rax, rax
je 0x140077e01
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x68]
call fcn.14002309c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077dc6
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077dc6
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140077dc9
mov rax, r12
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140077e01
lea rcx, [rsp + 0x50]
call fcn.14007c8f8
mov rbx, rax
test rax, rax
jne 0x140077dea
mov eax, r12d
jmp 0x140077df3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x10]
call fcn.140067304
lea r8, [0x1400c8fb8]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.1400230bc
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140077e36
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077e36
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140077e39
mov rax, r12
test rax, rax
je 0x140077eac
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.14002309c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077e6c
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077e6c
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140077e6f
mov rax, r12
test rax, rax
je 0x140077eac
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140077eac
lea rcx, [rsp + 0x50]
call fcn.14007c8f8
mov rbx, rax
test rax, rax
jne 0x140077e95
mov eax, r12d
jmp 0x140077e9e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x18]
call fcn.140067304
lea r8, [0x1400c8fc8]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.1400230bc
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140077ee4
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077ee4
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140077ee7
mov rax, r12
test rax, rax
je 0x140077f5b
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.14002309c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077f1b
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077f1b
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140077f1e
mov rax, r12
test rax, rax
je 0x140077f5b
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140077f5b
lea rcx, [rsp + 0x50]
call fcn.14007c8f8
mov rbx, rax
test rax, rax
jne 0x140077f44
mov eax, r12d
jmp 0x140077f4d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x20]
call fcn.140067304
lea r8, [0x1400c8fd8]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x30]
call fcn.1400230bc
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140077f90
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140077f90
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140077f93
mov rax, r12
test rax, rax
je 0x140078006
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.14002309c
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140077fc6
mov rdx, qword [rcx]
call qword [rdx + 0x58]
test rax, rax
je 0x140077fc6
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140077fc9
mov rax, r12
test rax, rax
je 0x140078006
mov rdx, qword [rax + 0x38]
add rdx, 0x10
je 0x140078006
lea rcx, [rsp + 0x50]
call fcn.14007c8f8
mov rbx, rax
test rax, rax
jne 0x140077fef
mov eax, r12d
jmp 0x140077ff8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [r13 + 0x38]
call fcn.140067304
or edi, 0xffffffff
test r14d, r14d
je 0x1400784f3
mov rbx, qword [rsi]
lea r14d, [rdi + 2]
cmp dword [rbx - 0xc], r12d
jl 0x14007802b
mov qword [rsp + 0x28], rbx
lock add dword [rbx - 0xc], r14d
jmp 0x14007805a
mov rax, qword [0x140108018]
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x140078041
mov eax, r12d
jmp 0x14007804a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.140067304
nop
mov edx, VarDateFromDisp
mov rcx, qword [rsi]
call qword [sym.imp.MSVCR120.dll_wcsrchr]
test rax, rax
je 0x1400780bf
sub rax, qword [rsi]
sar rax, 1
test eax, eax
js 0x1400780bf
mov r8d, eax
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.14006a764
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140068904
nop
mov rcx, qword [rbp - 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400780bf
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400780bf
mov rcx, qword [rbp - 0x48]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov r8d, r14d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x28]
call fcn.140079030
lea r15, [0x1400c7534]
mov rdx, r15
mov rcx, qword [rax]
call qword [sym.imp.MSVCR120.dll_wcscmp]
test eax, eax
setne bl
mov rcx, qword [rbp - 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x140078112
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x140078112
mov rcx, qword [rbp - 0x40]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
test bl, bl
je 0x14007812e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, r15
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.140068ed8
lea r8, str.FileList
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400230bc
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140078166
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x140078166
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140078169
mov rax, r12
test rax, rax
jne 0x140078207
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_fclose]
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400781a2
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400781a2
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
lea rax, vtable.TiXmlDocument.0
mov qword [rbp - 0x30], rax
lea rax, [0x140109f70]
mov rcx, qword [rbp + 0x28]
cmp rcx, rax
je 0x1400781c2
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rbp - 0x30]
call fcn.140020ed4
nop
lea rcx, [rsp + 0x50]
call fcn.140068890
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400781ff
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400781ff
mov rcx, qword [rsi]
sub rcx, 0xc
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, r14d
jmp 0x14007855e
lea r8, str.FileItem
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.1400230bc
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14007824f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
test rax, rax
je 0x14007824a
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, rax
mov rax, qword [rsp + 0x20]
jmp 0x140078252
mov rax, qword [rsp + 0x20]
mov rcx, r12
test rcx, rcx
je 0x1400784d0
test rax, rax
je 0x14007827b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
test rax, rax
je 0x14007827b
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14007827e
mov rax, r12
lea rdx, str.name
mov rcx, rax
call fcn.1400217c8
mov r12, rax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400782b2
mov rdx, qword [rcx]
call qword [rdx + 0x28]
test rax, rax
je 0x1400782b2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
jmp 0x1400782b4
xor eax, eax
lea rdx, [0x1400c8f50]
mov rcx, rax
call fcn.1400217c8
mov rbx, rax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400782e8
mov rdx, qword [rcx]
call qword [rdx + 0x28]
test rax, rax
je 0x1400782e8
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
jmp 0x1400782ea
xor eax, eax
lea rdx, str.optional
mov rcx, rax
call fcn.1400217c8
mov r15, rax
test r12, r12
je 0x140078492
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.14007c8f8
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14006874c
nop
mov rcx, qword [0x140108018]
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x50], rcx
xor r12d, r12d
mov qword [rbp - 0x58], r12
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140068904
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x38]
call fcn.140074ae0
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140068904
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x140078397
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x140078397
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
test rbx, rbx
je 0x1400783cd
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14007c8f8
mov rbx, rax
test rax, rax
jne 0x1400783b6
mov eax, r12d
jmp 0x1400783bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.140067304
mov dword [rbp - 0x58], r12d
test r15, r15
je 0x1400783f5
lea rdx, [0x1400c8f6c]
mov rcx, r15
call sub.MSVCR120.dll_strcmp
mov r15d, dword [rbp - 0x54]
test eax, eax
cmove r15d, r14d
mov dword [rbp - 0x54], r15d
jmp 0x1400783f9
mov r15d, dword [rbp - 0x54]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007845c
test al, 0x10
jne 0x14007845c
lea rcx, [r13 + 0xe8]
lea rdx, [rsp + 0x40]
call fcn.140073fa0
mov rbx, rax
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140068904
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x68]
call fcn.140068904
lea rcx, [rbx + 0x10]
lea rdx, [rbp - 0x60]
call fcn.140068904
mov dword [rbx + 0x18], r12d
mov dword [rbx + 0x1c], r15d
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x50]
call fcn.140068904
nop
lea rcx, [rbp - 0x70]
call fcn.140073858
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x140078492
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x140078492
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400784b4
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x1400784b4
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400784b7
mov rax, r12
lea rdx, str.FileItem
mov rcx, rax
call fcn.1400213a0
mov qword [rsp + 0x20], rax
jmp 0x140078222
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400784f3
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400784f3
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_fclose]
nop
lea rax, vtable.TiXmlDocument.0
mov qword [rbp - 0x30], rax
lea rax, [0x140109f70]
mov rcx, qword [rbp + 0x28]
cmp rcx, rax
je 0x14007851f
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rbp - 0x30]
call fcn.140020ed4
nop
lea rcx, [rsp + 0x50]
call fcn.140068890
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x14007855c
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14007855c
mov rcx, qword [rsi]
sub rcx, 0xc
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
lea r11, [rsp + 0x180]
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