Function at 0x14015f810
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x268]
sub rsp, 0x368
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r12, r9
mov rax, r8
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x80], rdx
mov rsi, rcx
mov r8, qword [rbp + 0x2d0]
mov qword [rsp + 0x68], r8
mov r9, qword [rbp + 0x2d8]
mov qword [rsp + 0x70], r9
mov r13, qword [rbp + 0x2e0]
mov dword [rsp + 0x44], 0
lea r14, [0x1402be068]
mov r15d, 0xffffffff
lea rdi, [0x1402be078]
mov byte [rsi + 0x35], 1
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14015f8ec
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
mov r9, r12
mov r8, rax
call fcn.14015f810
test al, al
jne 0x14015fce8
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rbx, rbx
je 0x14015f8e7
mov rcx, rbx
call fcn.14015ff80
mov edx, 0x48
mov rcx, rbx
call fcn.14010a370
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x40], 0
jmp 0x14015f907
lea r14, [0x1402be068]
test rax, rax
jne 0x14015f916
test byte [rsi + 0x30], 4
jne 0x14015f916
xor edi, edi
jmp 0x14015f91b
lea rdi, [rsp + 0x40]
mov rbx, qword [rsi + 0x10]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14015f94c
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140018b20
lea rdx, [rbp]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jmp 0x14015f958
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14015fe18
lea rax, [rbp + 0x2c]
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.14001ba80
nop
mov rax, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x58], rcx
mov qword [rbp - 0x78], rax
lea rcx, [rax - 0x10]
cmp rcx, r14
je 0x14015f99f
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015f99f
call fcn.14010a370
mov ecx, dword [rbp]
mov r14d, ecx
shr r14d, 4
and r14b, 1
mov byte [rsp + 0x48], r14b
test rdi, rdi
je 0x14015f9bf
mov eax, ecx
shr eax, 1
and al, 1
mov byte [rdi], al
test r13, r13
je 0x14015f9cb
and cl, 1
mov byte [r13], cl
test r12, r12
je 0x14015f9e1
mov ecx, dword [rbp + 0x1c]
shl rcx, 0x20
mov eax, dword [rbp + 0x20]
add rcx, rax
mov qword [r12], rcx
mov r8, qword [rsp + 0x68]
movabs r11, 0xfe624e212ac18000
movabs r10, 0x346dc5d63886594b
test r8, r8
je 0x14015fa13
mov rcx, qword [rbp + 0x14]
add rcx, r11
mov rax, r10
mul rcx
shr rdx, 0xb
mov qword [r8], rdx
mov r9, qword [rsp + 0x70]
test r9, r9
je 0x14015fa31
mov rcx, qword [rbp + 4]
add rcx, r11
mov rax, r10
mul rcx
shr rdx, 0xb
mov qword [r9], rdx
inc dword [rsi + 0x28]
mov rbx, qword [rsp + 0x58]
cmp byte [rbx], 0
mov rax, qword [rsp + 0x50]
je 0x14015f900
movzx eax, byte [rbx]
nop word [rax + rax]
inc rbx
movzx edx, al
test al, al
jns 0x14015fab0
mov ecx, 0x7f
mov eax, 0x40
xor r8d, r8d
test al, dl
je 0x14015fa80
nop dword [rax + rax]
cmp eax, 8
jbe 0x14015fa80
shr ecx, 1
inc r8d
shr eax, 1
test eax, edx
jne 0x14015fa70
and edx, ecx
sub r8d, 1
js 0x14015fab0
nop dword [rax + rax]
movzx ecx, byte [rbx]
mov eax, ecx
and al, 0xc0
cmp al, 0x80
jne 0x14015fab0
inc rbx
and ecx, 0x3f
mov eax, edx
shl eax, 6
mov edx, ecx
or edx, eax
sub r8d, 1
jns 0x14015fa90
lea rax, [0x1402bc85c]
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x58]
call fcn.14001ad10
test eax, eax
js 0x14015fad9
movzx eax, byte [rbx]
test al, al
jne 0x14015fa50
mov rax, qword [rsp + 0x50]
jmp 0x14015f900
test r14b, r14b
je 0x14015fbf8
cmp byte [rsi + 0x34], 0
je 0x14015fbf2
test byte [rsi + 0x30], 4
je 0x14015fafd
cmp byte [rsp + 0x40], 0
jne 0x14015fbf2
mov ecx, 0x48
call fcn.14010a334
mov rbx, rax
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x68], rax
mov rcx, qword [rsi + 0x20]
mov qword [rbp - 0x70], rcx
lea rdx, [rcx - 0x10]
lea rdi, [0x1402be068]
cmp rdx, rdi
je 0x14015fb37
mov ecx, 1
lock xadd dword [rdx], ecx
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x48]
call fcn.14014fca0
nop
mov ecx, dword [rsp + 0x44]
or ecx, 1
mov dword [rsp + 0x44], ecx
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14015f720
nop
or dword [rsp + 0x44], 2
lea r9, [rsi + 0x18]
mov ecx, dword [rsi + 0x30]
mov dword [rsp + 0x20], ecx
mov r8b, 1
mov rdx, rax
mov rcx, rbx
call fcn.140160070
nop
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], rax
test rbx, rbx
je 0x14015fba4
mov rcx, rbx
call fcn.14015ff80
mov edx, 0x48
mov rcx, rbx
call fcn.14010a370
nop
and dword [rsp + 0x44], 0xfffffffd
mov rax, qword [rbp - 0x50]
lea rcx, [rax - 0x10]
cmp rcx, rdi
je 0x14015fbc7
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015fbc7
call fcn.14010a370
nop
mov ecx, dword [rsp + 0x44]
test cl, 1
je 0x14015fbf2
and dword [rsp + 0x44], 0xfffffffe
mov rax, qword [rbp - 0x48]
lea rcx, [rax - 0x10]
cmp rcx, rdi
je 0x14015fbf2
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015fbf2
call fcn.14010a370
movzx eax, byte [rsi + 0x30]
jmp 0x14015fbfd
mov eax, dword [rsi + 0x30]
shr eax, 1
and al, 1
je 0x14015fc6b
cmp byte [rsi + 0x34], 0
jne 0x14015fc0d
cmp dword [rsi + 0xc], 1
jle 0x14015fc55
mov rbx, qword [rsi]
movsxd rax, dword [rsi + 0xc]
lea rdi, [rbx + rax*8]
cmp rbx, rdi
je 0x14015fc6b
nop dword [rax]
mov rax, qword [rbx]
mov qword [rbp - 0x10], rax
mov rcx, qword [rsp + 0x58]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov r8b, 1
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.140018c80
test al, al
jne 0x14015fc53
add rbx, 8
cmp rbx, rdi
jne 0x14015fc20
jmp 0x14015fc6b
mov al, 1
test byte [rsi + 0x30], 4
je 0x14015fc63
cmp byte [rsp + 0x40], 0
sete al
test al, al
jne 0x14015fcef
cmp qword [rsi + 0x38], 0
mov rax, qword [rsp + 0x50]
lea r14, [0x1402be068]
je 0x14015f907
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
lea r14, [0x1402be068]
cmp rcx, r14
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x80]
lea rdi, [0x1402be078]
je 0x14015f892
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
mov rax, qword [rsp + 0x50]
lea rdi, [0x1402be078]
jne 0x14015f892
call fcn.14010a370
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x80]
jmp 0x14015f88b
mov al, 1
jmp 0x14015fe3a
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x78], rax
lea rcx, [rax - 0x10]
lea r14, [0x1402be068]
mov edi, 1
cmp rcx, r14
je 0x14015fd13
mov eax, edi
lock xadd dword [rcx], eax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x68], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.14014ff80
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
lea rbx, [rcx - 0x10]
cmp rbx, r14
je 0x14015fd41
mov eax, edi
lock xadd dword [rbx], eax
or dword [rsp + 0x44], 0x10
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff0
cmp rcx, r14
je 0x14015fd65
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015fd65
call fcn.14010a370
nop
lea rax, [0x1402be078]
mov qword [rsp + 0x60], rax
or dword [rsp + 0x44], 0x20
cmp rbx, r14
je 0x14015fd7f
lock xadd dword [rbx], edi
mov rcx, qword [rbp - 0x30]
xchg qword [rsp + 0x60], rcx
add rcx, 0xfffffffffffffff0
cmp rcx, r14
je 0x14015fda1
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015fda1
call fcn.14010a370
mov rax, qword [rsi + 0x40]
mov rcx, qword [rsp + 0x60]
mov qword [rsi + 0x40], rcx
mov qword [rsp + 0x60], rax
and dword [rsp + 0x44], 0xffffffdf
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
cmp rcx, r14
je 0x14015fdd6
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015fdd6
call fcn.14010a370
and dword [rsp + 0x44], 0xffffffef
cmp rbx, r14
je 0x14015fdf3
mov eax, r15d
lock xadd dword [rbx], eax
test eax, eax
jne 0x14015fdf3
mov rcx, rbx
call fcn.14010a370
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14015fe04
movzx eax, byte [rsp + 0x40]
mov byte [rcx], al
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14015fe14
movzx eax, byte [rsp + 0x48]
mov byte [rcx], al
mov bl, 1
jmp 0x14015fe1a
xor bl, bl
mov rax, qword [rsp + 0x58]
lea rcx, [rax - 0x10]
cmp rcx, r14
je 0x14015fe37
lock xadd dword [rcx], r15d
test r15d, r15d
jne 0x14015fe37
call fcn.14010a370
movzx eax, bl
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14010a310
add rsp, 0x368
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret