Function at 0x18018f610
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r14, r9
mov qword [rbp - 0x60], r9
mov rax, r8
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x70], rdx
mov r15, rcx
mov r9, qword [rbp + 0x2a0]
mov qword [rbp - 0x80], r9
mov r10, qword [rbp + 0x2a8]
mov qword [rbp - 0x78], r10
mov r8, qword [rbp + 0x2b0]
mov qword [rsp + 0x78], r8
mov dword [rsp + 0x44], 0
lea r13, [0x180660020]
mov r12, 0xffffffffffffffff
lea rdi, [0x180660030]
mov byte [r15 + 0x35], 1
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x18018f6ed
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], r9
mov r9, r14
mov r8, rax
call fcn.18018f610
test al, al
jne 0x18018fd6b
mov rbx, qword [r15 + 0x38]
mov qword [r15 + 0x38], 0
test rbx, rbx
je 0x18018f6e8
mov rcx, rbx
call fcn.18000fc70
mov edx, 0x60
mov rcx, rbx
call fcn.18011d9c0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x40], 0
jmp 0x18018f707
lea r13, [0x180660020]
test rax, rax
jne 0x18018f717
test byte [r15 + 0x30], 4
jne 0x18018f717
xor esi, esi
jmp 0x18018f71c
lea rsi, [rsp + 0x40]
mov rbx, qword [r15 + 0x10]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x18018f74d
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.180017f90
lea rdx, [rbp - 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jmp 0x18018f759
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x18018fdfd
lea rdx, [rbp - 4]
lea rcx, [rbp - 0x68]
call fcn.18001d210
mov rax, rdi
mov rdi, qword [rbp - 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rbp - 0x68], rax
lea rcx, [rax - 0x10]
cmp rcx, r13
je 0x18018f79d
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018f798
call fcn.18011d9c0
mov rdi, qword [rsp + 0x58]
mov ecx, dword [rbp - 0x30]
mov r13d, ecx
shr r13d, 4
and r13b, 1
test rsi, rsi
je 0x18018f7b8
mov eax, ecx
shr eax, 1
and al, 1
mov byte [rsi], al
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x18018f7c8
and cl, 1
mov byte [r8], cl
test r14, r14
je 0x18018f7dd
mov ecx, dword [rbp - 0x14]
shl rcx, 0x20
mov eax, dword [rbp - 0x10]
add rcx, rax
mov qword [r14], rcx
mov r9, qword [rbp - 0x80]
movabs rsi, 0xfe624e212ac18000
movabs r11, 0x346dc5d63886594b
test r9, r9
je 0x18018f80e
mov rcx, qword [rbp - 0x1c]
add rcx, rsi
mov rax, r11
mul rcx
shr rdx, 0xb
mov qword [r9], rdx
mov r10, qword [rbp - 0x78]
test r10, r10
je 0x18018f82b
mov rcx, qword [rbp - 0x2c]
add rcx, rsi
mov rax, r11
mul rcx
shr rdx, 0xb
mov qword [r10], rdx
inc dword [r15 + 0x28]
mov rbx, rdi
cmp byte [rdi], 0
mov rax, qword [rsp + 0x48]
je 0x18018f700
movzx eax, byte [rdi]
inc rbx
movzx edx, al
test al, al
jns 0x18018f8a2
mov ecx, 0x7f
mov eax, 0x40
xor r8d, r8d
test al, dl
je 0x18018f870
nop
cmp eax, 8
jbe 0x18018f870
shr ecx, 1
inc r8d
shr eax, 1
test edx, eax
jne 0x18018f860
and edx, ecx
sub r8d, 1
js 0x18018f8a2
nop dword [rax + rax]
movzx eax, byte [rbx]
mov ecx, eax
and cl, 0xc0
cmp cl, 0x80
jne 0x18018f8a2
inc rbx
and eax, 0x3f
mov ecx, edx
shl ecx, 6
mov edx, eax
or edx, ecx
sub r8d, 1
jns 0x18018f880
lea rcx, [0x1803abbb4]
call fcn.18001c630
test eax, eax
js 0x18018f8c3
movzx eax, byte [rbx]
test al, al
jne 0x18018f843
mov rax, qword [rsp + 0x48]
jmp 0x18018f700
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x60], rax
lea rcx, [rax - 0x10]
lea rdx, [0x180660020]
cmp rcx, rdx
je 0x18018f8e9
lock inc dword [rcx]
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x50], rcx
cmp byte [rax], 0
jne 0x18018f92b
lea rax, [rdi - 0x10]
cmp rax, rdx
je 0x18018f908
lock inc dword [rax]
mov rdi, qword [rsp + 0x58]
xchg qword [rsp + 0x60], rdi
lea rcx, [rdi - 0x10]
cmp rcx, rdx
je 0x18018f951
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018f951
call fcn.18011d9c0
jmp 0x18018f94a
mov r8, r12
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x18018f930
add r8, rdi
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.18017cea0
lea rdx, [0x180660020]
mov rax, qword [rsp + 0x60]
mov rbx, rax
lea rcx, [rax - 0x10]
cmp rcx, rdx
je 0x18018f96a
lock inc dword [rcx]
mov rax, qword [rsp + 0x60]
mov esi, dword [rsp + 0x44]
or esi, 1
mov dword [rsp + 0x44], esi
lea rcx, [rax - 0x10]
cmp rcx, rdx
je 0x18018f998
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018f998
call fcn.18011d9c0
lea rdx, [0x180660020]
lea rax, [0x180660030]
mov qword [rsp + 0x50], rax
lea rdi, [rbx - 0x10]
cmp rdi, rdx
je 0x18018f9b0
lock inc dword [rdi]
xchg qword [rsp + 0x50], rbx
lea rcx, [rbx - 0x10]
cmp rcx, rdx
je 0x18018f9d8
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018f9d8
call fcn.18011d9c0
lea rdx, [0x180660020]
cmp rdi, rdx
je 0x18018f9f3
mov eax, r12d
lock xadd dword [rdi], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018f9f3
mov rcx, rdi
call fcn.18011d9c0
test r13b, r13b
je 0x18018fc18
cmp byte [r15 + 0x34], 0
je 0x18018fc11
test byte [r15 + 0x30], 4
je 0x18018fa19
cmp byte [rsp + 0x40], 0
jne 0x18018fc11
cmp dword [r15 + 0x48], 2
je 0x18018fb76
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x48]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018fb76
bt eax, 0xa
jae 0x18018fb76
cmp dword [r15 + 0x48], 1
jne 0x18018fb6c
mov r14, qword [r15 + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.18015f8b0
nop
mov rdi, qword [rsp + 0x70]
cmp byte [rdi], 0
je 0x18018faad
mov rcx, rdi
call fcn.18018d350
test al, al
je 0x18018faad
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call fcn.18018e080
or esi, 4
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff0
lea rdx, [0x180660020]
cmp rcx, rdx
je 0x18018faf3
jmp 0x18018fae0
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbx
lea rax, [rbx - 0x10]
lea rdx, [0x180660020]
cmp rax, rdx
je 0x18018fad4
lock inc dword [rax]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
or esi, 4
lea rcx, [rdi - 0x10]
cmp rcx, rdx
je 0x18018faf8
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018faf3
call fcn.18011d9c0
mov rbx, qword [rsp + 0x68]
or esi, 2
mov dword [rsp + 0x44], esi
mov rsi, qword [r14]
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], 0
jne 0x18018fb38
nop dword [rax]
cmp qword [rdi + 0x20], rbx
je 0x18018fb2c
mov rdx, rbx
mov rcx, qword [rdi + 0x20]
call fcn.18001c500
test eax, eax
jns 0x18018fb2c
mov rdi, qword [rdi + 0x10]
jmp 0x18018fb32
mov rsi, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x18018fb10
cmp byte [rsi + 0x19], 0
jne 0x18018fb53
mov rdx, qword [rsi + 0x20]
cmp rbx, rdx
je 0x18018fb56
mov rcx, rbx
call fcn.18001c500
test eax, eax
jns 0x18018fb56
mov rsi, qword [r14]
mov rax, qword [r15 + 0x50]
mov r14, qword [rbp - 0x60]
cmp rsi, qword [rax]
mov esi, dword [rsp + 0x44]
je 0x18018fb7b
xor dil, dil
jmp 0x18018fb7e
mov rbx, qword [rsp + 0x68]
xor dil, dil
jmp 0x18018fb7e
mov rbx, qword [rsp + 0x68]
mov dil, 1
test sil, 2
je 0x18018fbae
and esi, 0xfffffffd
mov dword [rsp + 0x44], esi
lea rcx, [rbx - 0x10]
lea rax, [0x180660020]
cmp rcx, rax
je 0x18018fbae
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018fbae
call fcn.18011d9c0
test dil, dil
je 0x18018fc11
mov ecx, 0x60
call fcn.18011dae8
mov qword [rbp - 0x40], rax
lea r9, [r15 + 0x18]
mov rcx, qword [r15 + 0x50]
mov qword [rsp + 0x30], rcx
mov ecx, dword [r15 + 0x48]
mov dword [rsp + 0x28], ecx
mov ecx, dword [r15 + 0x30]
mov dword [rsp + 0x20], ecx
mov r8b, 1
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.18000f870
nop
mov rbx, qword [r15 + 0x38]
mov qword [r15 + 0x38], rax
test rbx, rbx
je 0x18018fc11
mov rcx, rbx
call fcn.18000fc70
mov edx, 0x60
mov rcx, rbx
call fcn.18011d9c0
movzx eax, byte [r15 + 0x30]
jmp 0x18018fc1e
mov eax, dword [r15 + 0x30]
shr eax, 1
mov rdi, qword [rsp + 0x58]
test al, 1
je 0x18018fc8c
cmp byte [r15 + 0x34], 0
jne 0x18018fc35
cmp dword [r15 + 0xc], 1
jle 0x18018fc71
mov rbx, qword [r15]
movsxd rax, dword [r15 + 0xc]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x18018fc6b
nop word [rax + rax]
mov r8b, 1
mov rdx, rdi
mov rcx, qword [rbx]
call fcn.180018100
test al, al
jne 0x18018fcce
add rbx, 8
cmp rbx, rsi
jne 0x18018fc50
xor al, al
test al, al
je 0x18018fc8c
test byte [r15 + 0x30], 4
je 0x18018fd72
cmp byte [rsp + 0x40], 0
sete al
test al, al
jne 0x18018fd72
mov rcx, qword [rsp + 0x50]
lea r13, [0x180660020]
add rcx, 0xfffffffffffffff0
cmp qword [r15 + 0x38], 0
jne 0x18018fce6
cmp rcx, r13
mov rax, qword [rsp + 0x48]
je 0x18018f707
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
je 0x18018fcd2
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
jmp 0x18018f707
mov al, 1
jmp 0x18018fc6d
call fcn.18011d9c0
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
jmp 0x18018f707
cmp rcx, r13
je 0x18018fd03
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018fcfe
call fcn.18011d9c0
mov rdi, qword [rsp + 0x58]
lea rcx, [rdi - 0x10]
cmp rcx, r13
mov r8, qword [rsp + 0x78]
mov r9, qword [rbp - 0x80]
mov r10, qword [rbp - 0x78]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x70]
lea rdi, [0x180660030]
je 0x18018f692
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
mov rax, qword [rsp + 0x48]
lea rdi, [0x180660030]
jne 0x18018f692
call fcn.18011d9c0
mov r8, qword [rsp + 0x78]
mov r9, qword [rbp - 0x80]
mov r10, qword [rbp - 0x78]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x70]
jmp 0x18018f68b
mov al, 1
jmp 0x18018fe1e
mov rax, qword [rsp + 0x50]
add rax, 0xfffffffffffffff0
lea rdx, [0x180660020]
cmp rax, rdx
je 0x18018fd8a
lock inc dword [rax]
mov rcx, qword [rsp + 0x50]
xchg qword [r15 + 0x40], rcx
add rcx, 0xfffffffffffffff0
cmp rcx, rdx
je 0x18018fdaf
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018fdaf
call fcn.18011d9c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18018fdc0
movzx eax, byte [rsp + 0x40]
mov byte [rcx], al
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x18018fdcc
mov byte [rax], r13b
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
lea r13, [0x180660020]
cmp rcx, r13
je 0x18018fdf4
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018fdf4
call fcn.18011d9c0
mov bl, 1
mov rdi, qword [rsp + 0x58]
jmp 0x18018fdff
xor bl, bl
lea rcx, [rdi - 0x10]
cmp rcx, r13
je 0x18018fe1b
lock xadd dword [rcx], r12d
dec r12d
cmp r12d, 0xffffffff
jne 0x18018fe1b
call fcn.18011d9c0
movzx eax, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.18011d9a0
add rsp, 0x338
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret