Function at 0x180019410
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x838]
sub rsp, 0x910
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x28], r12d
lea rdx, [rsp + 0x50]
call fcn.180016c20
nop
mov rax, qword [rsp + 0x50]
lea r15d, [r12 - 1]
cmp dword [rax - 0x10], r12d
je 0x180019b8e
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180019b89
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x3f0]
call fcn.1800bbd80
lea r8, [0x1800f63c0]
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, 0x5c
mov word [rbp + 0x3d8], bx
mov qword [rbp + 0x3e0], r12
mov dword [rbp + 0x3e8], r12d
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x1800195f3
lea r8, [rbp + 0x3f0]
mov edx, 0x104
lea rcx, [rbp - 0x54]
call fcn.1800c2638
test eax, eax
je 0x180019522
cmp eax, 0xc
je 0x180019bfe
cmp eax, 0x16
je 0x180019bf3
cmp eax, 0x22
je 0x180019bf3
cmp eax, 0x50
jne 0x180019be8
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
mov qword [rbp + 0x3e0], rax
cmp rax, 0xffffffffffffffff
je 0x1800195f3
xor r9d, r9d
lea r8, [rbp + 0x1d0]
mov edx, 0x104
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x180019599
mov dword [rbp + 0x3e8], r12d
mov rcx, qword [rbp + 0x3e0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18001958c
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbp + 0x3e0], r12
mov ecx, 0x7b
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1800195f3
mov edx, ebx
lea rcx, [rbp + 0x1d0]
call fcn.1800bc240
mov rbx, rax
mov edx, 0x2f
lea rcx, [rbp + 0x1d0]
call fcn.1800bc240
test rax, rax
jne 0x1800195cc
test rbx, rbx
je 0x1800195e9
lea rax, [rbp + 0x1d0]
lea rcx, [rbp + 0x1d0]
test rbx, rbx
cmovne rcx, rbx
cmp rax, rcx
jb 0x1800195e5
mov word [rax], r12w
jmp 0x1800195e9
mov word [rcx], r12w
mov dword [rbp + 0x3e8], 1
cmp dword [rbp + 0x3e8], 0
je 0x180019b12
mov eax, dword [rbp - 0x80]
shr eax, 4
and eax, 1
je 0x180019630
cmp word [rbp - 0x54], 0x2e
jne 0x180019630
movzx ecx, word [rbp - 0x52]
test cx, cx
je 0x180019b12
cmp cx, 0x2e
jne 0x180019630
cmp word [rbp - 0x50], 0
je 0x180019b12
test eax, eax
je 0x180019b12
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x180019bdd
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x180019680
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.18000b0d0
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 0xc], 0x104
jl 0x180019bd2
mov dword [rbx - 0x10], 0x104
mov word [rbx + 0x208], r12w
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1800197b6
dec eax
movsxd rcx, eax
movzx eax, word [rbp + rcx*2 + 0x1d0]
cmp ax, 0x5c
je 0x1800196cf
cmp ax, 0x2f
je 0x1800196cf
mov dil, 1
jmp 0x1800196d2
xor dil, dil
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movzx ecx, dil
add eax, ecx
cmp eax, 0x104
jge 0x1800197b6
lea r8, [rbp + 0x1d0]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c2638
test eax, eax
je 0x18001972c
cmp eax, 0xc
je 0x180019c1f
cmp eax, 0x16
je 0x180019c14
cmp eax, 0x22
je 0x180019c14
cmp eax, 0x50
jne 0x180019c09
test dil, dil
je 0x18001977d
movzx eax, word [rbp + 0x3d8]
mov word [rsp + 0x38], ax
mov word [rsp + 0x3a], r12w
lea r8, [rsp + 0x38]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c25b8
test eax, eax
je 0x18001977d
cmp eax, 0xc
je 0x180019c40
cmp eax, 0x16
je 0x180019c35
cmp eax, 0x22
je 0x180019c35
cmp eax, 0x50
jne 0x180019c2a
lea r8, [rbp - 0x54]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c25b8
test eax, eax
je 0x1800197b6
cmp eax, 0xc
je 0x180019c61
cmp eax, 0x16
je 0x180019c56
cmp eax, 0x22
je 0x180019c56
cmp eax, 0x50
jne 0x180019c4b
cmp dword [rbx - 8], 1
jle 0x1800197ce
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.18000a2b0
mov rbx, qword [rsp + 0x30]
lea rdx, str.Preferences
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x180019cc4
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or ecx, eax
jge 0x180019826
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.18000b0d0
mov rbx, qword [rsp + 0x20]
cmp dword [rbx - 0xc], 0x104
jl 0x180019cb9
mov dword [rbx - 0x10], 0x104
mov rax, qword [rsp + 0x20]
mov word [rax + 0x208], r12w
lea rcx, [rbp - 0x54]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x18001989a
cmp dword [rbp + 0x3e8], 0
je 0x18001989a
lea r8, [rbp - 0x54]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c2638
test eax, eax
je 0x18001989a
cmp eax, 0xc
je 0x180019c82
cmp eax, 0x16
je 0x180019c77
cmp eax, 0x22
je 0x180019c77
cmp eax, 0x50
jne 0x180019c6c
mov rcx, qword [rsp + 0x20]
add rcx, 0xffffffffffffffe8
call fcn.1800099e0
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov esi, 1
mov rbx, r12
lea rdi, [r14 + 0x18]
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rdx
sar rcx, 3
test rcx, rcx
je 0x180019921
nop word [rax + rax]
lea rcx, [rdx + rbx*8]
test rax, rax
je 0x180019c8d
mov rdx, rax
mov rcx, qword [rcx]
call fcn.1800bf460
test eax, eax
je 0x180019919
inc rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rdx
sar rax, 3
cmp rbx, rax
mov rax, qword [rsp + 0x40]
jb 0x1800198e0
jmp 0x180019921
mov esi, r12d
mov rax, qword [rsp + 0x40]
lea rdx, [rax - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001993b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x30]
test esi, esi
je 0x180019a78
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180019a78
mov rsi, qword [rdi + 8]
cmp qword [rdi + 0x10], rsi
je 0x18001997f
mov rcx, qword [rsp + 0x20]
add rcx, 0xffffffffffffffe8
call fcn.1800099e0
add rax, 0x18
mov qword [rsi], rax
add qword [rdi + 8], 8
jmp 0x18001998f
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.1800074e0
mov ecx, 0xa0
call fcn.18008c568
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180019a15
call fcn.18000a3f0
test rax, rax
je 0x180019c98
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.Preferences
lea rcx, [rsp + 0x48]
call fcn.180016a80
test al, al
jne 0x1800199f3
mov r8d, 0xb
lea rdx, str.Preferences
lea rcx, [rsp + 0x48]
call fcn.18000b310
nop
mov edi, dword [rsp + 0x28]
or edi, 1
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.180008240
mov rsi, rax
jmp 0x180019a1c
mov rsi, r12
mov edi, dword [rsp + 0x28]
mov qword [rsp + 0x58], rsi
test dil, 1
je 0x180019a52
and edi, 0xfffffffe
mov dword [rsp + 0x28], edi
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180019a4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x30]
test rsi, rsi
je 0x180019a78
mov rdx, qword [r14 + 8]
cmp qword [r14 + 0x10], rdx
je 0x180019a6b
mov qword [rdx], rsi
add qword [r14 + 8], 8
jmp 0x180019a78
lea r8, [rsp + 0x58]
mov rcx, r14
call fcn.180014360
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800bf270
test eax, eax
js 0x180019cae
cmp eax, dword [rbx - 0xc]
jg 0x180019cae
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r12w
mov rcx, qword [rsp + 0x20]
movsxd rdx, dword [rcx - 0xc]
call fcn.1800bf270
test eax, eax
js 0x180019ca3
mov rcx, qword [rsp + 0x20]
cmp eax, dword [rcx - 0xc]
jg 0x180019ca3
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsp + 0x20]
mov word [rax + rcx*2], r12w
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180019af3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180019b12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x3e0]
test rcx, rcx
je 0x180019b64
cmp dword [rbp + 0x3e8], 0
je 0x180019b3f
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rbp + 0x3e8], eax
test eax, eax
jne 0x1800195f3
mov dword [rbp + 0x3e8], r12d
mov rcx, qword [rbp + 0x3e0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180019b64
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbp + 0x3e0], r12
mov dword [rbp + 0x3e8], r12d
mov rcx, qword [rbp + 0x3e0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180019b89
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbp + 0x3e0], r12
mov rax, qword [rsp + 0x50]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x180019ba7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.18008c720
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3
mov ecx, 0x80004005
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x8007000e
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x8007000e
call fcn.180009990
int3
mov ecx, 0x80004005
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x8007000e
call fcn.180009990
int3
mov ecx, 0x80004005
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x8007000e
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x8007000e
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
nop
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3