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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rdx
lea rcx, [0x100082100]
mov rax, qword [0x100082100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rcx, [0x100082100]
mov rax, qword [0x100082100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov qword [rsp + 0x98], rbx
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [0x1000839d0]
call fcn.1000325f8
lea rcx, [0x1000839d0]
call fcn.100032ac0
test al, al
je 0x10002ef2d
mov r8, qword [0x1000839d0]
lea rdx, [0x10000a660]
lea ecx, [rbx + 3]
call fcn.10001e170
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lea edi, [rbx - 1]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002ef07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002ef26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x10002f1e0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002f181
shr eax, 4
mov r14d, 1
and al, r14b
je 0x10002f181
lea rdx, [0x10000a174]
mov rcx, qword [0x1000839d0]
call qword [sym.imp.msvcrt.dll__wfopen]
mov r12, rax
test rax, rax
jne 0x10002efb8
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lea edi, [rax - 1]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002ef92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002efb1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x10002f1e0
mov rbp, qword [rbp]
mov edi, 0xffffffff
test rbp, rbp
je 0x10002f106
xor eax, eax
test rbp, rbp
setne al
test eax, eax
je 0x10002f0fb
mov rsi, qword [rbp + 0x10]
mov rbp, qword [rbp]
test rbx, rbx
je 0x10002f02b
mov rcx, rbx
test rsi, rsi
je 0x10002eff4
lock add dword [rsi + 8], r14d
mov rbx, rsi
mov qword [rsp + 0x98], rsi
test rcx, rcx
je 0x10002f040
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x10002f021
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
mov rbx, qword [rsp + 0x98]
jmp 0x10002f040
mov rbx, qword [rsp + 0x98]
jmp 0x10002f040
test rsi, rsi
je 0x10002f035
lock add dword [rsi + 8], r14d
mov rbx, rsi
mov qword [rsp + 0x98], rsi
mov rax, qword [rsi + 0x48]
cmp dword [rax - 0x10], 0
jne 0x10002f0d3
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x10002f0e6
xor eax, eax
test rsi, rsi
setne al
test eax, eax
je 0x10002f0f0
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
test rbx, rbx
je 0x10002f07c
lock add dword [rbx + 8], r14d
mov qword [rsp + 0x90], rbx
mov rax, qword [rbx + 0x18]
cmp dword [rax - 0x10], 0
je 0x10002f0a2
mov r8, rax
lea rdx, [0x10000a190]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fwprintf]
nop
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x10002f0b8
mov rax, qword [rbx]
mov edx, r14d
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x90], 0
test rsi, rsi
jne 0x10002f05b
mov rbx, qword [rsp + 0x98]
jmp 0x10002f0e6
mov r8, rax
lea rdx, [0x10000a730]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fwprintf]
test rbp, rbp
je 0x10002f106
jmp 0x10002efca
mov ecx, 0x80004005
call fcn.10001fd10
int3
mov ecx, 0x80004005
call fcn.10001fd10
int3
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fclose]
nop
test rbx, rbx
je 0x10002f13c
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x10002f130
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
mov qword [rsp + 0x98], 0
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002f15c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x10002f17c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
jmp 0x10002f1e0
mov r8, qword [0x1000839d0]
lea rdx, [0x10000a6f0]
mov ecx, 3
call fcn.10001e170
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002f1bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002f1de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x48
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret