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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a8
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, qword [rdx]
xor r12d, r12d
mov dword [rsp + 0x24], r12d
mov r15, r9
mov dword [rsp + 0x28], r12d
mov rbx, r8
mov r14, rdx
mov r13, rcx
mov ebp, r12d
mov edi, r12d
test r8, r8
je 0x180134e30
mov rdi, qword [r8]
mov eax, dword [rdx + 8]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180134ed1
bt eax, 0xa
jae 0x180134e66
mov r9, r15
mov r8d, 4
mov rdx, rdi
mov rcx, rsi
call r13
jmp 0x180134f22
test al, 0x10
jne 0x180134e81
mov r9, r15
mov r8d, 3
mov rdx, rdi
mov rcx, rsi
call r13
jmp 0x180134f22
mov r8d, 9
lea rdx, [0x180172ca0]
mov rcx, r14
call sym.tcl86t.dll_hcl_DStringAppend
mov edx, dword [r14 + 8]
mov rcx, r14
dec edx
call sym.tcl86t.dll_hcl_DStringSetLength
mov rsi, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x180134f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
test rsi, rsi
je 0x180134f20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
test r15, r15
je 0x180134f1b
lea rax, [r15 + 0x10]
mov dword [r15 + 8], r12d
mov qword [r15], rax
mov rdi, 0xffffffffffffffff
mov dword [r15 + 0xc], 0xc8
mov byte [rax], bpl
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x180134f05
mov r8, r15
mov edx, edi
mov rcx, rsi
call sym.tcl86t.dll_hcl_UniCharToUtfDString
mov ebp, 1
mov eax, ebp
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180146240
add rsp, 0x2a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ebp, dword [rsp + 0x20]
mov rcx, r14
lea eax, [rbp + 1]
mov edx, eax
mov dword [rsp + 0x2c], eax
call sym.tcl86t.dll_hcl_DStringSetLength
mov edx, ebp
mov rcx, r14
call sym.tcl86t.dll_hcl_DStringSetLength
mov r9, r15
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call r13
mov ebp, eax
test eax, eax
je 0x180134f8a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x180134f20
mov edi, dword [rsp + 0x20]
lea rdx, [0x180172cac]
mov r8d, 3
mov rcx, r14
call sym.tcl86t.dll_hcl_DStringAppend
lea edx, [rdi + 2]
mov rcx, r14
call sym.tcl86t.dll_hcl_DStringSetLength
test rbx, rbx
je 0x180134fe0
mov eax, dword [rbx + 8]
lea rdx, [0x180172cac]
mov r8d, 3
mov dword [rsp + 0x28], eax
mov rcx, rbx
lea edi, [rax + 2]
mov dword [rsp + 0x24], edi
call sym.tcl86t.dll_hcl_DStringAppend
mov edx, edi
mov rcx, rbx
call sym.tcl86t.dll_hcl_DStringSetLength
mov r12, qword [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop dword [rax]
cmp word [rsp + 0x6c], 0x2e
jne 0x180135010
movzx eax, word [rsp + 0x6e]
cmp ax, 0x2e
cmove ax, word [rsp + 0x70]
test ax, ax
je 0x1801350aa
lea rcx, [rsp + 0x6c]
mov rax, rdi
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180135020
lea esi, [rax*2 + 1]
mov rcx, r14
mov r8d, esi
lea rdx, [rsp + 0x6c]
call sym.tcl86t.dll_hcl_DStringAppend
mov edx, dword [r14 + 8]
mov rcx, r14
dec edx
call sym.tcl86t.dll_hcl_DStringSetLength
test rbx, rbx
je 0x180135073
mov r8d, esi
lea rdx, [rsp + 0x6c]
mov rcx, rbx
call sym.tcl86t.dll_hcl_DStringAppend
mov edx, dword [rbx + 8]
mov rcx, rbx
dec edx
call sym.tcl86t.dll_hcl_DStringSetLength
mov r9, r15
mov r8, rbx
mov rdx, r14
mov rcx, r13
call fcn.180134de0
mov ebp, eax
test eax, eax
jne 0x1801350c0
mov edx, dword [rsp + 0x20]
mov rcx, r14
add edx, 2
call sym.tcl86t.dll_hcl_DStringSetLength
test rbx, rbx
je 0x1801350aa
mov edx, dword [rsp + 0x24]
mov rcx, rbx
call sym.tcl86t.dll_hcl_DStringSetLength
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180134ff0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [rsp + 0x2c]
mov rcx, r14
call sym.tcl86t.dll_hcl_DStringSetLength
mov edx, dword [rsp + 0x20]
mov rcx, r14
call sym.tcl86t.dll_hcl_DStringSetLength
mov r12d, 0
test rbx, rbx
je 0x180135105
mov edi, dword [rsp + 0x28]
mov rcx, rbx
lea edx, [rdi + 1]
call sym.tcl86t.dll_hcl_DStringSetLength
mov edx, edi
mov rcx, rbx
call sym.tcl86t.dll_hcl_DStringSetLength
test ebp, ebp
jne 0x180134f20
test rbx, rbx
je 0x180135115
mov r12, qword [rbx]
mov rcx, qword [r14]
mov r9, r15
mov r8d, 2
mov rdx, r12
call r13
mov ebp, eax
jmp 0x180134f20