Function at 0x140066818
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r14
lea rbp, [rax - 0x458]
sub rsp, 0x540
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1a]
xor ecx, ecx
call qword [0x1400c48e8]
lea ebx, [r14 + 7]
test eax, eax
js 0x140066bb3
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
or r12, 0xffffffffffffffff
cmp word [rbp + 0x230], r14w
jne 0x1400668a8
mov r8d, r14d
jmp 0x1400668bc
lea rax, [rbp + 0x230]
mov r8, r12
inc r8
cmp word [rax + r8*2], r14w
jne 0x1400668b2
lea rdx, [rbp + 0x230]
lea rcx, [rsp + 0x58]
call fcn.14000a734
nop
lea r8, [0x1400965b0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14000b098
mov rsi, rax
lea rax, [rsp + 0x58]
cmp rax, rsi
je 0x140066921
cmp qword [rsp + 0x70], 8
jb 0x140066903
mov rcx, qword [rsp + 0x58]
call fcn.1400431dc
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140009bd0
nop
cmp qword [rsp + 0x48], 8
jb 0x140066933
mov rcx, qword [rsp + 0x30]
call fcn.1400431dc
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
lea r8, [0x140096334]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.14000b098
nop
cmp qword [rax + 0x18], 8
jb 0x140066963
mov rax, qword [rax]
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp qword [rbp - 0x30], 8
jb 0x140066983
mov rcx, qword [rbp - 0x48]
call fcn.1400431dc
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
xor r8d, r8d
lea rdx, [0x14009634c]
lea rcx, [rsp + 0x78]
call fcn.14000a734
nop
test byte [rbp - 0x20], 0x10
je 0x140066b0a
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp word [rbp + 0xc], r14w
jne 0x1400669eb
mov r8, r14
jmp 0x1400669fc
lea rax, [rbp + 0xc]
mov r8, r12
inc r8
cmp word [rax + r8*2], r14w
jne 0x1400669f2
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x30]
call fcn.14000a734
nop
mov rax, qword [rsp + 0x40]
cmp rax, rbx
jb 0x140066ab4
lea r10, [rax - 6]
lea r11, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r11, qword [rsp + 0x30]
test r10, r10
je 0x140066a48
mov rax, r10
mov rdx, r11
cmp word [rdx], 0x72
je 0x140066a4b
add rdx, 2
dec rax
jne 0x140066a39
mov rdx, r14
test rdx, rdx
je 0x140066ab4
mov r9, rbx
lea rcx, str.release
mov r8, rdx
movzx eax, word [rcx]
cmp word [r8], ax
jne 0x140066a78
add r8, 2
add rcx, 2
dec r9
jne 0x140066a5d
mov eax, r14d
jmp 0x140066a7f
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
je 0x140066a9b
mov rcx, rdx
sub rcx, r11
sar rcx, 1
mov rax, r12
sub rax, rcx
add r10, rax
lea r11, [rdx + 2]
jmp 0x140066a2e
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
jmp 0x140066ab7
mov rdx, r12
cmp rdx, r12
je 0x140066ae8
cmp word [rbp + 0xc], r14w
jne 0x140066ac8
mov r8, r14
jmp 0x140066ad9
lea rax, [rbp + 0xc]
mov r8, r12
inc r8
cmp word [rax + r8*2], r14w
jne 0x140066acf
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x78]
call fcn.14000a734
nop
cmp qword [rsp + 0x48], 8
jb 0x140066afa
mov rcx, qword [rsp + 0x30]
call fcn.1400431dc
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400669bb
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.14000b468
nop
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.140009bd0
mov dword [rsp + 0x50], 1
cmp qword [rbp - 0x50], 8
jb 0x140066b63
mov rcx, qword [rbp - 0x68]
call fcn.1400431dc
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
cmp qword [rbp - 0x70], 8
jb 0x140066b81
mov rcx, qword [rsp + 0x78]
call fcn.1400431dc
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
cmp qword [rsp + 0x70], 8
jb 0x140066ba1
mov rcx, qword [rsp + 0x58]
call fcn.1400431dc
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
jmp 0x140066bda
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
xor r8d, r8d
lea rdx, [0x1400963bc]
mov rcx, rdi
call fcn.14000a734
nop
mov dword [rsp + 0x50], 1
mov rax, rdi
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret