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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
xor ebp, ebp
mov edx, 9
lea rcx, [rsp + 0x40]
call fcn.180160040
mov r12, rax
call fcn.180186830
movabs rdx, 0x5deece66d
mov rcx, qword [rax]
imul rcx, rdx
add rcx, 0xb
movabs rdx, 0xffffffffffff
and rcx, rdx
mov qword [rax], rcx
shr rcx, 0x10
lea r14, [rsp + 0x77]
mov byte [rsp + 0x77], bpl
lea r8, [0x1803a8ef0]
nop word [rax + rax]
dec r14
mov eax, ecx
and eax, 0xf
movzx edx, byte [rax + r8]
mov byte [r14], dl
shr ecx, 4
test ecx, ecx
jne 0x18018a860
test dl, dl
je 0x18018a8b7
lea rsi, [rsp + 0x77]
sub rsi, r14
lea rbx, [rsi + 4]
and rbx, 0xfffffffffffffffc
lea rcx, [rbx + 0x17]
call fcn.18011de94
xchg dword [rax], ebp
mov qword [rax + 8], rbx
lea rbx, [rax + 0x10]
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.18037edb0
mov byte [rbx + rsi], 0
mov qword [rsp + 0x28], rbx
jmp 0x18018a8c3
lea rax, [0x180660030]
mov qword [rsp + 0x28], rax
lea rdx, str.temp_
lea rcx, [rsp + 0x30]
call fcn.18001d070
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1801936e0
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
lea rsi, [rcx - 0x10]
lea rbp, [0x180660020]
cmp rsi, rbp
je 0x18018a8ff
lock inc dword [rsi]
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov ebx, 0xffffffff
cmp rcx, rbp
je 0x18018a924
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x18018a924
call fcn.18011d9c0
nop
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.18018cdd0
nop
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.18018b3e0
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18018a969
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018a969
call fcn.18011d9c0
nop
cmp rsi, rbp
je 0x18018a984
mov eax, ebx
lock xadd dword [rsi], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018a984
mov rcx, rsi
call fcn.18011d9c0
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18018a9a5
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018a9a5
call fcn.18011d9c0
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18018a9c5
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018a9c5
call fcn.18011d9c0
mov rax, qword [rsp + 0x20]
cmp byte [rax], 0
je 0x18018aa1e
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018aa19
mov rdx, rdi
mov rcx, r15
call fcn.18018a7d0
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18018aa21
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x18018aa21
call fcn.18011d9c0
jmp 0x18018aa21
mov rax, qword [rsp + 0x20]
mov qword [r15], rax
mov rax, r15
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18011d9a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret