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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb0
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x31], r9
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], rdx
mov dword [rbp - 0x6d], 0
mov rax, qword [r8]
mov qword [rbp - 0x69], rax
add rax, 0xfffffffffffffff0
lea r13, [0x180660020]
cmp rax, r13
je 0x18018bba0
lock inc dword [rax]
lea rax, [rbp - 0x69]
mov qword [rbp - 0x41], rax
mov rdx, r9
lea rcx, [rbp - 0x69]
call fcn.1801936e0
mov rdi, qword [rax]
mov qword [rbp - 0x41], rdi
lea rbx, [rdi - 0x10]
lea rax, [rdi - 0x10]
cmp rax, r13
je 0x18018bbcb
lock inc dword [rax]
mov dword [rbp - 0x6d], 8
mov rcx, qword [rbp - 0x69]
add rcx, 0xfffffffffffffff0
mov r15, 0xffffffffffffffff
cmp rcx, r13
je 0x18018bbfa
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, r15d
jne 0x18018bbfa
call fcn.18011d9c0
nop
mov r8, rdi
mov rdx, r12
mov rcx, r14
call fcn.18018cdd0
mov dword [rbp - 0x6d], 9
lea rdi, [0x180660020]
cmp rbx, rdi
je 0x18018bc31
mov eax, r15d
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018bc31
mov rcx, rbx
call fcn.18011d9c0
mov rax, qword [r12]
cmp byte [rax], 0
je 0x18018c1b3
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018c1b3
mov r13d, 1
mov rsi, qword [rsi]
mov qword [rbp - 0x59], rsi
lea rax, [rsi - 0x10]
cmp rax, rdi
je 0x18018bc76
lock inc dword [rax]
mov rax, qword [rbp - 0x59]
cmp byte [rax], 0
je 0x18018bcf1
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
call fcn.18000f610
mov rdi, qword [rbp - 0x49]
mov rbx, r15
inc rbx
cmp byte [rdi + rbx], 0
jne 0x18018bc93
add rbx, rdi
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.18017a780
mov r8, qword [rbp - 0x49]
cmp r8, rdi
ja 0x18018bccb
lea rax, [0x180660030]
mov qword [rbp - 0x69], rax
lea rdi, [0x180660020]
jmp 0x18018bd05
cmp rsi, rdi
jb 0x18018bcd5
cmp r8, rbx
jae 0x18018bcea
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.18017e320
lea rdi, [0x180660020]
jmp 0x18018bd05
lea rdi, [0x180660020]
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x69], rax
add rax, 0xfffffffffffffff0
cmp rax, rdi
je 0x18018bd05
lock inc dword [rax]
mov dword [rbp - 0x6d], SafeArrayCopy
mov edx, 0x29
lea rcx, [rbp - 0x69]
call fcn.18017b6b0
movzx ebx, al
mov rcx, qword [rbp - 0x69]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018bd3d
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018bd3d
call fcn.18011d9c0
test bl, bl
je 0x18018be73
mov byte [rbp - 0x71], 1
mov edx, 0x28
lea rcx, [rbp - 0x59]
call fcn.18017c8f0
mov ebx, eax
mov edx, 0x29
lea rcx, [rbp - 0x59]
call fcn.18017c8f0
mov esi, eax
test ebx, ebx
jle 0x18018bda7
cmp eax, ebx
jle 0x18018bda7
lea r14d, [rbx + 1]
mov r9d, eax
mov r8d, r14d
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
call fcn.18017b000
mov dword [rbp - 0x6d], 0x1b
lea rdx, str.0123456789
mov rcx, rax
call fcn.180179bc0
test al, al
je 0x18018bda7
mov dil, 1
jmp 0x18018bdae
xor dil, dil
lea r14d, [rbx + 1]
test byte [rbp - 0x6d], 2
je 0x18018bddf
and dword [rbp - 0x6d], 0xfffffffd
mov rcx, qword [rbp - 0x49]
add rcx, 0xfffffffffffffff0
lea rax, [0x180660020]
cmp rcx, rax
je 0x18018bddf
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018bddf
call fcn.18011d9c0
test dil, dil
je 0x18018be7c
mov r9d, esi
mov r8d, r14d
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
call fcn.18017b000
mov rcx, qword [rax]
call fcn.18012f090
mov r13d, eax
mov rcx, qword [rbp - 0x49]
add rcx, 0xfffffffffffffff0
lea rdi, [0x180660020]
cmp rcx, rdi
je 0x18018be2d
mov edx, r15d
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x18018be2d
call fcn.18011d9c0
mov r9d, ebx
xor r8d, r8d
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
call fcn.18017b000
mov rdx, rax
mov rax, qword [rbp - 0x59]
mov rcx, qword [rdx]
mov qword [rbp - 0x59], rcx
mov qword [rdx], rax
mov rcx, qword [rbp - 0x49]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018be83
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018be83
call fcn.18011d9c0
jmp 0x18018be83
movzx ecx, byte [rbp + 0x7f]
mov byte [rbp - 0x71], cl
jmp 0x18018be85
lea rdi, [0x180660020]
mov cl, 1
mov r14, qword [rbp - 0x59]
add r14, 0xfffffffffffffff0
lea rax, [rbp - 0x39]
mov qword [rbp - 0x19], rax
nop word [rax + rax]
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x69], rax
cmp r14, rdi
je 0x18018beb1
lock inc dword [r14]
test cl, cl
je 0x18018bf69
inc r13d
mov word [rbp - 0x51], 0x28
lea rcx, [rbp - 0x51]
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x18018bed0
test eax, eax
jle 0x18018bf1e
mov rcx, qword [rbp - 0x59]
mov rbx, r15
inc rbx
cmp byte [rcx + rbx], 0
jne 0x18018bee4
movsxd rdi, eax
lea rdx, [rdi + rbx]
lea rcx, [rbp - 0x69]
call fcn.18017e6c0
movsxd rbx, ebx
add rbx, qword [rbp - 0x69]
mov r8, rdi
lea rdx, [rbp - 0x51]
mov rcx, rbx
call fcn.18037edb0
mov byte [rdi + rbx], 0
lea rdi, [0x180660020]
mov edx, r13d
lea rcx, [rbp + 7]
call fcn.18017dee0
lea r8, [rbp + 7]
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.18017cea0
mov word [rbp - 0x61], 0x29
lea rcx, [rbp - 0x61]
mov rax, r15
inc rax
cmp byte [rcx + rax], 0
jne 0x18018bf47
lea r8, [rbp - 0x61]
add r8, rax
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.18017cea0
jmp 0x18018c08a
mov rax, qword [rbp - 0x59]
cmp byte [rax], 0
jne 0x18018bf76
xor eax, eax
jmp 0x18018bfc7
mov rax, qword [rbp - 0x59]
xor edx, edx
nop dword [rax]
movzx ecx, byte [rax]
inc rax
test cl, cl
jns 0x18018bfb3
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x18018bfb7
nop word [rax + rax]
inc rax
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
je 0x18018bfa0
inc rdx
jmp 0x18018bf80
test ecx, ecx
je 0x18018bfbc
inc rdx
jmp 0x18018bf80
dec edx
lea rcx, [rbp - 0x59]
call fcn.18000f440
movzx ecx, ax
call fcn.180125418
test eax, eax
je 0x18018c02e
mov word [rbp - 0x4d], 0x5f
lea rcx, [rbp - 0x4d]
mov rax, r15
inc rax
cmp byte [rcx + rax], 0
jne 0x18018bfe0
test eax, eax
jle 0x18018c02e
mov rcx, qword [rbp - 0x59]
mov rbx, r15
inc rbx
cmp byte [rcx + rbx], 0
jne 0x18018bff4
movsxd rdi, eax
lea rdx, [rdi + rbx]
lea rcx, [rbp - 0x69]
call fcn.18017e6c0
movsxd rbx, ebx
add rbx, qword [rbp - 0x69]
mov r8, rdi
lea rdx, [rbp - 0x4d]
mov rcx, rbx
call fcn.18037edb0
mov byte [rdi + rbx], 0
lea rdi, [0x180660020]
inc r13d
mov edx, r13d
lea rcx, [rbp + 0x17]
call fcn.18017dee0
mov rsi, rax
lea rdx, [rbp + 0x17]
sub edx, eax
test edx, edx
jle 0x18018c08a
mov rcx, qword [rbp - 0x69]
mov rbx, r15
inc rbx
cmp byte [rcx + rbx], 0
jne 0x18018c051
movsxd rdi, edx
lea rdx, [rdi + rbx]
lea rcx, [rbp - 0x69]
call fcn.18017e6c0
movsxd rbx, ebx
add rbx, qword [rbp - 0x69]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.18037edb0
mov byte [rdi + rbx], 0
lea rdi, [0x180660020]
mov rax, qword [rbp - 0x69]
mov qword [rbp - 0x39], rax
add rax, 0xfffffffffffffff0
cmp rax, rdi
je 0x18018c09e
lock inc dword [rax]
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1801936e0
mov rcx, qword [rax]
mov qword [rbp - 0x49], rcx
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018c0be
lock inc dword [rcx]
or dword [rbp - 0x6d], 4
mov rcx, qword [rbp - 0x39]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018c0e3
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c0e3
call fcn.18011d9c0
nop
mov r8, qword [rbp - 0x49]
lea rdx, [rbp - 0x41]
mov rcx, qword [rbp - 0x29]
call fcn.18018cdd0
mov rdx, rax
mov rax, qword [r12]
mov rcx, qword [rdx]
mov qword [r12], rcx
mov qword [rdx], rax
mov rcx, qword [rbp - 0x41]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018c126
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c126
call fcn.18011d9c0
nop
mov rcx, qword [rbp - 0x49]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018c147
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c147
call fcn.18011d9c0
nop
mov rcx, qword [rbp - 0x69]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018c167
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c167
call fcn.18011d9c0
mov rax, qword [r12]
cmp byte [rax], 0
je 0x18018c193
mov rdx, r12
lea rcx, [rbp - 0x11]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
movzx ecx, byte [rbp - 0x71]
jne 0x18018bea0
mov rcx, qword [rbp - 0x59]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18018c1b3
lock xadd dword [rcx], r15d
dec r15d
cmp r15d, 0xffffffff
jne 0x18018c1b3
call fcn.18011d9c0
mov rax, r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18011d9a0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret