Function at 0x14017c020
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 [0x14041d440]
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 r14d, r14d
mov dword [rsp + 0x68], r14d
lea r13, [r14 - 1]
lea rdi, [0x140370a58]
nop word [rax + rax]
mov byte [r12 + 0x35], 1
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x14017c0fc
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r10
mov r8, rax
call fcn.14017c020
test al, al
jne 0x14017c778
mov rbx, qword [r12 + 0x38]
mov qword [r12 + 0x38], 0
test rbx, rbx
je 0x14017c0f7
mov rcx, rbx
call fcn.14000e950
mov edx, 0x60
mov rcx, rbx
call fcn.1400daaa8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x40], 0
test rax, rax
jne 0x14017c117
test byte [r12 + 0x30], 4
jne 0x14017c117
xor esi, esi
jmp 0x14017c11c
lea rsi, [rsp + 0x40]
mov rbx, qword [r12 + 0x10]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14017c14e
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140014d10
lea rdx, [rbp - 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jmp 0x14017c15a
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14017c80a
lea rdx, [rbp - 4]
lea rcx, [rbp - 0x58]
call fcn.140019cf0
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 0x14017c19b
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c19b
call fcn.1400daaa8
mov ecx, dword [rbp - 0x30]
mov r15d, ecx
shr r15d, 4
and r15b, 1
mov dword [rsp + 0x6c], r15d
test rsi, rsi
je 0x14017c1bb
mov eax, ecx
shr eax, 1
and al, 1
mov byte [rsi], al
mov r8, qword [rbp - 0x80]
test r8, r8
je 0x14017c1ca
and cl, 1
mov byte [r8], cl
mov r9, qword [rsp + 0x78]
test r9, r9
je 0x14017c1e4
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 0x14017c215
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 0x14017c232
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 0x14017c106
movzx eax, byte [rdi]
inc rbx
movzx edx, al
test al, al
jns 0x14017c2b0
mov ecx, 0x7f
mov eax, 0x40
xor r8d, r8d
test al, dl
je 0x14017c280
nop dword [rax + rax]
cmp eax, 8
jbe 0x14017c280
shr ecx, 1
inc r8d
shr eax, 1
test edx, eax
jne 0x14017c270
and edx, ecx
sub r8d, 1
js 0x14017c2b0
nop dword [rax + rax]
movzx ecx, byte [rbx]
mov eax, ecx
and al, 0xc0
cmp al, 0x80
jne 0x14017c2b0
inc rbx
and ecx, 0x3f
mov eax, edx
shl eax, 6
mov edx, ecx
or edx, eax
sub r8d, 1
jns 0x14017c290
lea rcx, [0x1402d6eac]
call fcn.1400190c0
test eax, eax
js 0x14017c2d1
movzx eax, byte [rbx]
test al, al
jne 0x14017c250
mov rax, qword [rsp + 0x50]
jmp 0x14017c106
mov rcx, qword [r12 + 0x20]
mov qword [rsp + 0x60], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14017c2ea
lock inc dword [rcx - 0x10]
lea rax, [rsp + 0x60]
mov qword [rbp - 0x48], rax
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0
jne 0x14017c33e
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14017c311
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 0x14017c35d
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c35d
call fcn.1400daaa8
jmp 0x14017c35d
mov rdx, qword [rsp + 0x58]
mov r8, r13
inc r8
cmp byte [rdx + r8], 0
jne 0x14017c346
add r8, rdx
lea rcx, [rsp + 0x60]
call fcn.14016b200
mov rbx, qword [rsp + 0x60]
mov eax, dword [rbx - 0x10]
nop
test eax, 0x30000000
jne 0x14017c371
lock inc dword [rbx - 0x10]
or r14d, 1
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017c39b
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c39b
call fcn.1400daaa8
lea rax, [0x140370a58]
mov qword [rsp + 0x48], rax
lea rdi, [rbx - 0x10]
mov eax, dword [rdi]
nop
test eax, 0x30000000
jne 0x14017c3b8
lock inc dword [rdi]
xchg qword [rsp + 0x48], rbx
lea rcx, [rbx - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017c3df
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c3df
call fcn.1400daaa8
nop
mov eax, dword [rdi]
nop
test eax, 0x30000000
jne 0x14017c3ff
mov eax, r13d
lock xadd dword [rdi], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c3ff
mov rcx, rdi
call fcn.1400daaa8
test r15b, r15b
je 0x14017c615
cmp byte [r12 + 0x34], 0
je 0x14017c60d
test byte [r12 + 0x30], 4
je 0x14017c427
cmp byte [rsp + 0x40], 0
jne 0x14017c60d
cmp dword [r12 + 0x48], 2
je 0x14017c571
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.140014d10
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14017c571
bt eax, 0xa
jae 0x14017c571
cmp dword [r12 + 0x48], 1
jne 0x14017c567
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call fcn.14014e570
nop
mov rbx, qword [rbp - 0x60]
cmp byte [rbx], 0
je 0x14017c4a3
mov rcx, rbx
call fcn.14017a2b0
test al, al
je 0x14017c4a3
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.14017abe0
nop
lea rcx, [rbx - 0x10]
jmp 0x14017c4c5
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14017c4bd
lock inc dword [rax - 0x10]
mov rcx, qword [rbp - 0x60]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
test eax, 0x30000000
nop
jne 0x14017c4e2
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c4e2
call fcn.1400daaa8
mov eax, r14d
mov r14d, 6
or r14d, eax
mov dword [rsp + 0x68], r14d
mov r14, qword [r12 + 0x50]
mov r15, qword [r14]
mov rdi, qword [r15 + 8]
mov rsi, r15
mov rbx, qword [rsp + 0x70]
cmp byte [rdi + 0x19], 0
jne 0x14017c538
nop dword [rax]
cmp qword [rdi + 0x20], rbx
je 0x14017c52c
mov rdx, rbx
mov rcx, qword [rdi + 0x20]
call fcn.140018f90
test eax, eax
jns 0x14017c52c
mov rdi, qword [rdi + 0x10]
jmp 0x14017c532
mov rsi, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x14017c510
cmp byte [rsi + 0x19], 0
jne 0x14017c553
mov rdx, qword [rsi + 0x20]
cmp rbx, rdx
je 0x14017c556
mov rcx, rbx
call fcn.140018f90
test eax, eax
jns 0x14017c556
mov rsi, qword [r14]
mov r14d, dword [rsp + 0x68]
cmp rsi, r15
mov r15d, dword [rsp + 0x6c]
jne 0x14017c56c
jmp 0x14017c576
mov rbx, qword [rsp + 0x70]
xor dil, dil
jmp 0x14017c579
mov rbx, qword [rsp + 0x70]
mov dil, 1
test r14b, 2
je 0x14017c5a4
and r14d, 0xfffffffd
lea rcx, [rbx - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017c5a4
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c5a4
call fcn.1400daaa8
test dil, dil
je 0x14017c60d
mov ecx, 0x60
call fcn.1400daadc
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.14000e520
nop
mov rbx, qword [r12 + 0x38]
mov qword [r12 + 0x38], rax
test rbx, rbx
je 0x14017c60d
mov rcx, rbx
call fcn.14000e950
mov edx, 0x60
mov rcx, rbx
call fcn.1400daaa8
movzx eax, byte [r12 + 0x30]
jmp 0x14017c61c
mov eax, dword [r12 + 0x30]
shr eax, 1
test al, 1
je 0x14017c689
cmp byte [r12 + 0x34], 0
jne 0x14017c630
cmp dword [r12 + 0xc], 1
jle 0x14017c66d
mov rdi, qword [r12]
movsxd rax, dword [r12 + 0xc]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x14017c689
mov rbx, qword [rsp + 0x58]
nop word [rax + rax]
mov r8b, 1
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.140014e80
test al, al
jne 0x14017c66d
add rdi, 8
cmp rdi, rsi
jne 0x14017c650
jmp 0x14017c689
test byte [r12 + 0x30], 4
je 0x14017c77f
cmp byte [rsp + 0x40], 0
sete al
test al, al
jne 0x14017c77f
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp qword [r12 + 0x38], 0
mov eax, dword [rcx]
nop
jne 0x14017c6e3
test eax, 0x30000000
jne 0x14017c6c0
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
je 0x14017c6cf
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
jmp 0x14017c106
call fcn.1400daaa8
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
jmp 0x14017c106
test eax, 0x30000000
jne 0x14017c6fe
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c6fe
call fcn.1400daaa8
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, [0x140370a58]
jne 0x14017c0a0
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
mov rax, qword [rsp + 0x50]
lea rdi, [0x140370a58]
jne 0x14017c0a0
call fcn.1400daaa8
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 0x14017c08e
mov al, 1
jmp 0x14017c830
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14017c793
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 0x14017c7be
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c7be
call fcn.1400daaa8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14017c7cf
movzx eax, byte [rsp + 0x40]
mov byte [rcx], al
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x14017c7db
mov byte [rax], r15b
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017c801
mov eax, r13d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14017c801
call fcn.1400daaa8
mov bl, 1
mov rdi, qword [rsp + 0x58]
jmp 0x14017c80c
xor bl, bl
lea rcx, [rdi - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14017c82d
lock xadd dword [rcx], r13d
dec r13d
cmp r13d, 0xffffffff
jne 0x14017c82d
call fcn.1400daaa8
movzx eax, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400da5a0
add rsp, 0x338
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret