Function at 0x14017a1a0
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 [0x140425440]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov qword [rsp + 0x78], r9
mov rax, r8
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x68], rdx
mov r12, rcx
mov r10, qword [rbp + 0x2a0]
mov qword [rbp - 0x78], r10
mov r11, qword [rbp + 0x2a8]
mov qword [rbp - 0x70], r11
mov r8, qword [rbp + 0x2b0]
mov qword [rbp - 0x80], r8
xor r15d, r15d
mov dword [rsp + 0x68], r15d
mov r13, 0xffffffffffffffff
lea rdi, [0x140379908]
nop dword [rax + rax]
mov byte [r12 + 0x35], 1
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x14017a27c
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r10
mov r8, rax
call fcn.14017a1a0
test al, al
jne 0x14017a8fc
mov rbx, qword [r12 + 0x38]
mov qword [r12 + 0x38], 0
test rbx, rbx
je 0x14017a277
mov rcx, rbx
call fcn.14000f070
mov edx, 0x60
mov rcx, rbx
call fcn.1400da0f0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x40], 0
test rax, rax
jne 0x14017a297
test byte [r12 + 0x30], 4
jne 0x14017a297
xor esi, esi
jmp 0x14017a29c
lea rsi, [rsp + 0x40]
mov rbx, qword [r12 + 0x10]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14017a2ce
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140015780
lea rdx, [rbp - 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jmp 0x14017a2da
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14017a98e
lea rdx, [rbp - 4]
lea rcx, [rbp - 0x58]
call fcn.14001a140
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x58], rdi
lea rcx, [rdi - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a31b
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a31b
call fcn.1400da0f0
mov ecx, dword [rbp - 0x30]
mov r14d, ecx
shr r14d, 4
and r14b, 1
mov dword [rsp + 0x6c], r14d
test rsi, rsi
je 0x14017a33b
mov eax, ecx
shr eax, 1
and al, 1
mov byte [rsi], al
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x14017a34a
and cl, 1
mov byte [r8], cl
mov r9, qword [rsp + 0x78]
test r9, r9
je 0x14017a364
mov ecx, dword [rbp - 0x14]
shl rcx, 0x20
mov eax, dword [rbp - 0x10]
add rcx, rax
mov qword [r9], rcx
mov r10, qword [rbp - 0x78]
movabs r8, 0xfe624e212ac18000
movabs rsi, 0x346dc5d63886594b
test r10, r10
je 0x14017a395
mov rcx, qword [rbp - 0x1c]
add rcx, r8
mov rax, rsi
mul rcx
shr rdx, 0xb
mov qword [r10], rdx
mov r11, qword [rbp - 0x70]
test r11, r11
je 0x14017a3b2
mov rcx, qword [rbp - 0x2c]
add rcx, r8
mov rax, rsi
mul rcx
shr rdx, 0xb
mov qword [r11], rdx
inc dword [r12 + 0x28]
mov rdi, qword [rsp + 0x58]
mov rbx, rdi
cmp byte [rdi], 0
mov rax, qword [rsp + 0x50]
je 0x14017a286
movzx eax, byte [rdi]
inc rbx
movzx edx, al
test al, al
jns 0x14017a432
mov ecx, 0x7f
mov eax, 0x40
xor r8d, r8d
test al, dl
je 0x14017a400
nop dword [rax + rax]
cmp eax, 8
jbe 0x14017a400
shr ecx, 1
inc r8d
shr eax, 1
test edx, eax
jne 0x14017a3f0
and edx, ecx
sub r8d, 1
js 0x14017a432
nop dword [rax + rax]
movzx eax, byte [rbx]
mov ecx, eax
and cl, 0xc0
cmp cl, 0x80
jne 0x14017a432
inc rbx
and eax, 0x3f
mov ecx, edx
shl ecx, 6
mov edx, eax
or edx, ecx
sub r8d, 1
jns 0x14017a410
lea rcx, [0x140378028]
call fcn.140019580
test eax, eax
js 0x14017a453
movzx eax, byte [rbx]
test al, al
jne 0x14017a3d0
mov rax, qword [rsp + 0x50]
jmp 0x14017a286
mov rcx, qword [r12 + 0x20]
mov qword [rsp + 0x60], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14017a46c
lock inc dword [rcx - 0x10]
lea rax, [rsp + 0x60]
mov qword [rbp - 0x48], rax
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0
jne 0x14017a4c0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14017a493
lock inc dword [rcx - 0x10]
mov rcx, qword [rsp + 0x58]
xchg qword [rsp + 0x60], rcx
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a4e7
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a4e7
call fcn.1400da0f0
jmp 0x14017a4e7
mov rdx, qword [rsp + 0x58]
mov r8, r13
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14017a4d0
add r8, rdx
lea rcx, [rsp + 0x60]
call fcn.1401691c0
mov rbx, qword [rsp + 0x60]
mov eax, dword [rbx - 0x10]
nop
test eax, 0x30000000
jne 0x14017a4fb
lock inc dword [rbx - 0x10]
or r15d, 1
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a525
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a525
call fcn.1400da0f0
lea rax, [0x140379908]
mov qword [rsp + 0x48], rax
lea rdi, [rbx - 0x10]
mov eax, dword [rdi]
nop
test eax, 0x30000000
jne 0x14017a542
lock inc dword [rdi]
xchg qword [rsp + 0x48], rbx
lea rcx, [rbx - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a569
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a569
call fcn.1400da0f0
nop
mov eax, dword [rdi]
nop
test eax, 0x30000000
jne 0x14017a589
mov eax, r13d
lock xadd dword [rdi], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a589
mov rcx, rdi
call fcn.1400da0f0
test r14b, r14b
je 0x14017a79c
cmp byte [r12 + 0x34], 0
je 0x14017a794
test byte [r12 + 0x30], 4
je 0x14017a5b1
cmp byte [rsp + 0x40], 0
jne 0x14017a794
cmp dword [r12 + 0x48], 2
je 0x14017a6f8
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14017a6f8
bt eax, 0xa
jae 0x14017a6f8
cmp dword [r12 + 0x48], 1
jne 0x14017a6ee
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call fcn.14014c510
nop
mov rbx, qword [rbp - 0x60]
cmp byte [rbx], 0
je 0x14017a630
mov rcx, rbx
call fcn.140178380
test al, al
je 0x14017a630
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.140178d10
or r15d, 4
lea rcx, [rbx - 0x10]
jmp 0x14017a656
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14017a64a
lock inc dword [rax - 0x10]
or r15d, 4
mov rcx, qword [rbp - 0x60]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
test eax, 0x30000000
nop
jne 0x14017a673
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a673
call fcn.1400da0f0
or r15d, 2
mov dword [rsp + 0x68], r15d
mov r15, qword [r12 + 0x50]
mov rdi, qword [r15]
mov rsi, qword [rdi + 8]
mov r14, rdi
mov rbx, qword [rsp + 0x70]
cmp byte [rsi + 0x19], 0
jne 0x14017a6be
cmp qword [rsi + 0x20], rbx
je 0x14017a6b2
mov rdx, rbx
mov rcx, qword [rsi + 0x20]
call fcn.140019450
test eax, eax
jns 0x14017a6b2
mov rsi, qword [rsi + 0x10]
jmp 0x14017a6b8
mov r14, rsi
mov rsi, qword [rsi]
cmp byte [rsi + 0x19], 0
je 0x14017a696
cmp byte [r14 + 0x19], 0
jne 0x14017a6da
mov rdx, qword [r14 + 0x20]
cmp rbx, rdx
je 0x14017a6dd
mov rcx, rbx
call fcn.140019450
test eax, eax
jns 0x14017a6dd
mov r14, qword [r15]
mov r15d, dword [rsp + 0x68]
cmp r14, rdi
mov r14d, dword [rsp + 0x6c]
jne 0x14017a6f3
jmp 0x14017a6fd
mov rbx, qword [rsp + 0x70]
xor dil, dil
jmp 0x14017a700
mov rbx, qword [rsp + 0x70]
mov dil, 1
test r15b, 2
je 0x14017a72b
and r15d, 0xfffffffd
lea rcx, [rbx - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a72b
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a72b
call fcn.1400da0f0
test dil, dil
je 0x14017a794
mov ecx, 0x60
call fcn.1400da124
mov qword [rbp - 0x38], rax
lea r9, [r12 + 0x18]
mov rcx, qword [r12 + 0x50]
mov qword [rsp + 0x30], rcx
mov ecx, dword [r12 + 0x48]
mov dword [rsp + 0x28], ecx
mov ecx, dword [r12 + 0x30]
mov dword [rsp + 0x20], ecx
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.14000ec70
nop
mov rbx, qword [r12 + 0x38]
mov qword [r12 + 0x38], rax
test rbx, rbx
je 0x14017a794
mov rcx, rbx
call fcn.14000f070
mov edx, 0x60
mov rcx, rbx
call fcn.1400da0f0
movzx eax, byte [r12 + 0x30]
jmp 0x14017a7a3
mov eax, dword [r12 + 0x30]
shr eax, 1
test al, 1
je 0x14017a80d
cmp byte [r12 + 0x34], 0
jne 0x14017a7b7
cmp dword [r12 + 0xc], 1
jle 0x14017a7f1
mov rdi, qword [r12]
movsxd rax, dword [r12 + 0xc]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x14017a7eb
mov rbx, qword [rsp + 0x58]
nop
mov r8b, 1
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.1400158f0
test al, al
jne 0x14017a84f
add rdi, 8
cmp rdi, rsi
jne 0x14017a7d0
xor al, al
test al, al
je 0x14017a80d
test byte [r12 + 0x30], 4
je 0x14017a903
cmp byte [rsp + 0x40], 0
sete al
test al, al
jne 0x14017a903
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp qword [r12 + 0x38], 0
mov eax, dword [rcx]
nop
jne 0x14017a867
test eax, 0x30000000
jne 0x14017a840
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
je 0x14017a853
nop word [rax + rax]
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
jmp 0x14017a286
mov al, 1
jmp 0x14017a7ed
call fcn.1400da0f0
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
jmp 0x14017a286
test eax, 0x30000000
jne 0x14017a882
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a882
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
mov r9, qword [rsp + 0x78]
mov r8, qword [rbp - 0x80]
mov r10, qword [rbp - 0x78]
mov r11, qword [rbp - 0x70]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x68]
lea rdi, [0x140379908]
jne 0x14017a220
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
mov rax, qword [rsp + 0x50]
lea rdi, [0x140379908]
jne 0x14017a220
call fcn.1400da0f0
mov r9, qword [rsp + 0x78]
mov r8, qword [rbp - 0x80]
mov r10, qword [rbp - 0x78]
mov r11, qword [rbp - 0x70]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x68]
jmp 0x14017a211
mov al, 1
jmp 0x14017a9b4
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14017a917
lock inc dword [rcx - 0x10]
mov rcx, qword [rsp + 0x48]
xchg qword [r12 + 0x40], rcx
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a942
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a942
call fcn.1400da0f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14017a953
movzx eax, byte [rsp + 0x40]
mov byte [rcx], al
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x14017a95f
mov byte [rax], r14b
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a985
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017a985
call fcn.1400da0f0
mov bl, 1
mov rdi, qword [rsp + 0x58]
jmp 0x14017a990
xor bl, bl
lea rcx, [rdi - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017a9b1
lock xadd dword [rcx], r13d
dec r13d
cmp r13d, 0xffffffff
jne 0x14017a9b1
call fcn.1400da0f0
movzx eax, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400d9d70
add rsp, 0x338
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret