Function at 0x1401470e0
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 [0x1405921c0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov qword [rbp - 0x80], r9
mov rax, r8
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x60], rdx
mov r15, rcx
mov r10, qword [rbp + 0x2a0]
mov qword [rbp - 0x70], r10
mov r11, qword [rbp + 0x2a8]
mov qword [rbp - 0x68], r11
mov r8, qword [rbp + 0x2b0]
mov qword [rbp - 0x78], r8
xor r13d, r13d
mov dword [rsp + 0x68], r13d
lea r14, [0x140592ec8]
lea r12, [r13 - 1]
lea rdi, [0x140592ed8]
nop dword [rax + rax]
mov byte [r15 + 0x35], 1
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1401471b8
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r10
mov r8, rax
call fcn.1401470e0
test al, al
jne 0x1401477fb
mov rbx, qword [r15 + 0x38]
mov qword [r15 + 0x38], 0
test rbx, rbx
je 0x1401471b3
mov rcx, rbx
call fcn.14000e000
mov edx, 0x60
mov rcx, rbx
call fcn.1400c9d7c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x40], 0
jmp 0x1401471cb
lea r14, [0x140592ec8]
test rax, rax
jne 0x1401471db
test byte [r15 + 0x30], 4
jne 0x1401471db
xor esi, esi
jmp 0x1401471e0
lea rsi, [rsp + 0x40]
mov rbx, qword [r15 + 0x10]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140147211
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140016140
lea rdx, [rbp - 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jmp 0x14014721d
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14014788d
lea rdx, [rbp - 4]
lea rcx, [rbp - 0x58]
call fcn.140018d60
mov rax, rdi
mov rdi, qword [rbp - 0x58]
mov qword [rsp + 0x58], rdi
mov qword [rbp - 0x58], rax
lea rcx, [rax - 0x10]
cmp rcx, r14
je 0x140147261
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014725c
call fcn.1400c9d7c
mov rdi, qword [rsp + 0x58]
mov ecx, dword [rbp - 0x30]
mov r14d, ecx
shr r14d, 4
and r14b, 1
mov dword [rsp + 0x68], r14d
test rsi, rsi
je 0x140147281
mov eax, ecx
shr eax, 1
and al, 1
mov byte [rsi], al
mov r8, qword [rbp - 0x78]
test r8, r8
je 0x140147290
and cl, 1
mov byte [r8], cl
mov r9, qword [rbp - 0x80]
test r9, r9
je 0x1401472a9
mov ecx, dword [rbp - 0x14]
shl rcx, 0x20
mov eax, dword [rbp - 0x10]
add rcx, rax
mov qword [r9], rcx
mov r10, qword [rbp - 0x70]
movabs r8, 0xfe624e212ac18000
movabs rsi, 0x346dc5d63886594b
test r10, r10
je 0x1401472da
mov rcx, qword [rbp - 0x1c]
add rcx, r8
mov rax, rsi
mul rcx
shr rdx, 0xb
mov qword [r10], rdx
mov r11, qword [rbp - 0x68]
test r11, r11
je 0x1401472f7
mov rcx, qword [rbp - 0x2c]
add rcx, r8
mov rax, rsi
mul rcx
shr rdx, 0xb
mov qword [r11], rdx
inc dword [r15 + 0x28]
mov rbx, rdi
cmp byte [rdi], 0
mov rax, qword [rsp + 0x48]
je 0x1401471c4
movzx eax, byte [rdi]
nop
inc rbx
movzx edx, al
test al, al
jns 0x140147372
mov ecx, 0x7f
mov eax, 0x40
xor r8d, r8d
test al, dl
je 0x140147340
nop dword [rax + rax]
cmp eax, 8
jbe 0x140147340
shr ecx, 1
inc r8d
shr eax, 1
test edx, eax
jne 0x140147330
and edx, ecx
sub r8d, 1
js 0x140147372
nop dword [rax + rax]
movzx eax, byte [rbx]
mov ecx, eax
and cl, 0xc0
cmp cl, 0x80
jne 0x140147372
inc rbx
and eax, 0x3f
mov ecx, edx
shl ecx, 6
mov edx, eax
or edx, ecx
sub r8d, 1
jns 0x140147350
lea rcx, [0x1404f91b0]
call fcn.140018050
test eax, eax
js 0x140147393
movzx eax, byte [rbx]
test al, al
jne 0x140147310
mov rax, qword [rsp + 0x48]
jmp 0x1401471c4
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x60], rax
lea rcx, [rax - 0x10]
lea rsi, [0x140592ec8]
cmp rcx, rsi
je 0x1401473b9
lock inc dword [rcx]
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x48], rcx
cmp byte [rax], 0
jne 0x1401473fb
lea rax, [rdi - 0x10]
cmp rax, rsi
je 0x1401473d8
lock inc dword [rax]
mov rdi, qword [rsp + 0x58]
xchg qword [rsp + 0x60], rdi
lea rcx, [rdi - 0x10]
cmp rcx, rsi
je 0x14014741a
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014741a
call fcn.1400c9d7c
jmp 0x14014741a
mov r8, r12
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x140147400
add r8, rdi
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140135520
mov rax, qword [rsp + 0x60]
mov rbx, rax
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x140147433
lock inc dword [rcx]
mov rax, qword [rsp + 0x60]
or r13d, 1
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x140147453
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140147453
call fcn.1400c9d7c
lea rax, [0x140592ed8]
mov qword [rsp + 0x50], rax
lea rdi, [rbx - 0x10]
cmp rdi, rsi
je 0x14014746b
lock inc dword [rdi]
xchg qword [rsp + 0x50], rbx
lea rcx, [rbx - 0x10]
cmp rcx, rsi
je 0x14014748d
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014748d
call fcn.1400c9d7c
nop
cmp rdi, rsi
je 0x1401474a8
mov eax, r12d
lock xadd dword [rdi], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401474a8
mov rcx, rdi
call fcn.1400c9d7c
test r14b, r14b
je 0x1401476b5
cmp byte [r15 + 0x34], 0
je 0x1401476ae
test byte [r15 + 0x30], 4
je 0x1401474ce
cmp byte [rsp + 0x40], 0
jne 0x1401476ae
cmp dword [r15 + 0x48], 2
je 0x14014761d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14014761d
bt eax, 0xa
jae 0x14014761d
cmp dword [r15 + 0x48], 1
jne 0x140147613
mov r14, qword [r15 + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140118720
nop
mov rdi, qword [rsp + 0x78]
cmp byte [rdi], 0
je 0x140147559
mov rcx, rdi
call fcn.140144c90
test al, al
je 0x140147559
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140145b30
nop
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140147595
jmp 0x140147582
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x70], rbx
lea rax, [rbx - 0x10]
cmp rax, rsi
je 0x140147579
lock inc dword [rax]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
lea rcx, [rdi - 0x10]
cmp rcx, rsi
je 0x14014759a
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140147595
call fcn.1400c9d7c
mov rbx, qword [rsp + 0x70]
mov eax, r13d
mov r13d, 6
or r13d, eax
mov rsi, qword [r14]
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], 0
jne 0x1401475db
cmp qword [rdi + 0x20], rbx
je 0x1401475cf
mov rdx, rbx
mov rcx, qword [rdi + 0x20]
call fcn.140017f20
test eax, eax
jns 0x1401475cf
mov rdi, qword [rdi + 0x10]
jmp 0x1401475d5
mov rsi, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x1401475b3
cmp byte [rsi + 0x19], 0
jne 0x1401475f6
mov rdx, qword [rsi + 0x20]
cmp rbx, rdx
je 0x1401475f9
mov rcx, rbx
call fcn.140017f20
test eax, eax
jns 0x1401475f9
mov rsi, qword [r14]
mov rax, qword [r15 + 0x50]
mov r14d, dword [rsp + 0x68]
cmp rsi, qword [rax]
lea rsi, [0x140592ec8]
je 0x140147622
xor dil, dil
jmp 0x140147625
mov rbx, qword [rsp + 0x70]
xor dil, dil
jmp 0x140147625
mov rbx, qword [rsp + 0x70]
mov dil, 1
test r13b, 2
je 0x14014764b
and r13d, 0xfffffffd
lea rcx, [rbx - 0x10]
cmp rcx, rsi
je 0x14014764b
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014764b
call fcn.1400c9d7c
test dil, dil
je 0x1401476ae
mov ecx, 0x60
call fcn.1400c9d40
mov qword [rbp - 0x38], 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.14000dc00
nop
mov rbx, qword [r15 + 0x38]
mov qword [r15 + 0x38], rax
test rbx, rbx
je 0x1401476ae
mov rcx, rbx
call fcn.14000e000
mov edx, 0x60
mov rcx, rbx
call fcn.1400c9d7c
movzx eax, byte [r15 + 0x30]
jmp 0x1401476bb
mov eax, dword [r15 + 0x30]
shr eax, 1
mov rdi, qword [rsp + 0x58]
test al, 1
je 0x14014771a
cmp byte [r15 + 0x34], 0
jne 0x1401476d2
cmp dword [r15 + 0xc], 1
jle 0x1401476ff
mov rbx, qword [r15]
movsxd rax, dword [r15 + 0xc]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x14014771a
mov r8b, 1
mov rdx, rdi
mov rcx, qword [rbx]
call fcn.1400162b0
test al, al
jne 0x1401476ff
add rbx, 8
cmp rbx, rsi
jne 0x1401476e2
jmp 0x14014771a
test byte [r15 + 0x30], 4
je 0x140147802
cmp byte [rsp + 0x40], 0
sete al
test al, al
jne 0x140147802
mov rcx, qword [rsp + 0x50]
lea r14, [0x140592ec8]
add rcx, 0xfffffffffffffff0
cmp qword [r15 + 0x38], 0
jne 0x140147770
cmp rcx, r14
mov rax, qword [rsp + 0x48]
je 0x1401471cb
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
je 0x14014775c
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
jmp 0x1401471cb
call fcn.1400c9d7c
mov rdi, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
jmp 0x1401471cb
cmp rcx, r14
je 0x14014778d
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140147788
call fcn.1400c9d7c
mov rdi, qword [rsp + 0x58]
lea rcx, [rdi - 0x10]
cmp rcx, r14
mov r9, qword [rbp - 0x80]
mov r8, qword [rbp - 0x78]
mov r10, qword [rbp - 0x70]
mov r11, qword [rbp - 0x68]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x60]
lea rdi, [0x140592ed8]
je 0x140147160
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
mov rax, qword [rsp + 0x48]
lea rdi, [0x140592ed8]
jne 0x140147160
call fcn.1400c9d7c
mov r9, qword [rbp - 0x80]
mov r8, qword [rbp - 0x78]
mov r10, qword [rbp - 0x70]
mov r11, qword [rbp - 0x68]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x60]
jmp 0x140147154
mov al, 1
jmp 0x1401478ae
mov rax, qword [rsp + 0x50]
add rax, 0xfffffffffffffff0
lea rdx, [0x140592ec8]
cmp rax, rdx
je 0x14014781a
lock inc dword [rax]
mov rcx, qword [rsp + 0x50]
xchg qword [r15 + 0x40], rcx
add rcx, 0xfffffffffffffff0
cmp rcx, rdx
je 0x14014783f
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014783f
call fcn.1400c9d7c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140147850
movzx eax, byte [rsp + 0x40]
mov byte [rcx], al
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x14014785c
mov byte [rax], r14b
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
lea r14, [0x140592ec8]
cmp rcx, r14
je 0x140147884
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140147884
call fcn.1400c9d7c
mov bl, 1
mov rdi, qword [rsp + 0x58]
jmp 0x14014788f
xor bl, bl
lea rcx, [rdi - 0x10]
cmp rcx, r14
je 0x1401478ab
lock xadd dword [rcx], r12d
dec r12d
cmp r12d, 0xffffffff
jne 0x1401478ab
call fcn.1400c9d7c
movzx eax, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400c9d20
add rsp, 0x338
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret