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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbp, rdx
lea rcx, [0x100081100]
mov rax, qword [0x100081100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rcx, [0x100081100]
mov rax, qword [0x100081100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov qword [rsp + 0x88], rbx
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [0x100082a00]
call fcn.10002f82c
lea rcx, [0x100082a00]
call fcn.10002fbcc
test al, al
je 0x10002c445
mov r8, qword [0x100082a00]
lea rdx, [0x100009f70]
lea ecx, [rbx + 3]
call fcn.10001d66c
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002c41f
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 0x10002c43e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x10002c6de
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002c681
shr eax, 4
mov r14d, 1
and al, r14b
je 0x10002c681
lea rdx, [0x100009a84]
mov rcx, qword [0x100082a00]
call qword [sym.imp.msvcrt.dll__wfopen]
mov r12, rax
test rax, rax
jne 0x10002c4d0
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002c4aa
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 0x10002c4c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x10002c6de
mov rbp, qword [rbp]
or edi, 0xffffffff
test rbp, rbp
je 0x10002c609
xor eax, eax
test rbp, rbp
setne al
test eax, eax
je 0x10002c5fe
mov rsi, qword [rbp + 0x10]
mov rbp, qword [rbp]
test rbx, rbx
je 0x10002c541
mov rcx, rbx
test rsi, rsi
je 0x10002c50a
lock add dword [rsi + 8], r14d
mov rbx, rsi
mov qword [rsp + 0x88], rbx
test rcx, rcx
je 0x10002c556
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x10002c537
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
mov rbx, qword [rsp + 0x88]
jmp 0x10002c556
mov rbx, qword [rsp + 0x88]
jmp 0x10002c556
test rsi, rsi
je 0x10002c54b
lock add dword [rsi + 8], r14d
mov rbx, rsi
mov qword [rsp + 0x88], rbx
mov r8, qword [rsi + 0x48]
cmp dword [r8 - 0x10], 0
jne 0x10002c5d9
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x10002c5e9
xor eax, eax
test rsi, rsi
setne al
test eax, eax
je 0x10002c5f3
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
test rbx, rbx
je 0x10002c587
lock add dword [rbx + 8], r14d
mov qword [rsp + 0x80], rbx
mov r8, qword [rbx + 0x18]
cmp dword [r8 - 0x10], 0
je 0x10002c5ab
lea rdx, [0x100009aa0]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fwprintf]
nop
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x10002c5c1
mov rax, qword [rbx]
mov edx, r14d
mov rcx, rbx
call qword [rax]
and qword [rsp + 0x80], 0
test rsi, rsi
jne 0x10002c56a
mov rbx, qword [rsp + 0x88]
jmp 0x10002c5e9
lea rdx, [0x10000a040]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fwprintf]
test rbp, rbp
je 0x10002c609
jmp 0x10002c4e0
mov ecx, 0x80004005
call fcn.10001f28c
int3
mov ecx, 0x80004005
call fcn.10001f28c
int3
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fclose]
nop
test rbx, rbx
je 0x10002c63c
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x10002c633
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
and qword [rsp + 0x88], 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 0x10002c65c
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 0x10002c67c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
jmp 0x10002c6de
mov r8, qword [0x100082a00]
lea rdx, [0x10000a000]
mov ecx, 3
call fcn.10001d66c
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10002c6bd
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 0x10002c6dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret