Function at 0x14008a548
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1401740c0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x48], r8
mov r13, rdx
mov r12, rcx
mov rax, qword [0x140174018]
mov qword [rsp + 0x38], rax
lea rsi, [rdx + 8]
mov r8, qword [rsi]
lea rdx, str.Looking_for_files_using_search_template:__s
lea rcx, [rsp + 0x38]
call fcn.14006895c
mov rbx, qword [rsp + 0x38]
lea rdi, [rbx - 0xc]
mov r14d, 1
cmp dword [rdi], 0
jl 0x14008a5d0
mov qword [rsp + 0x20], rbx
lock add dword [rdi], r14d
jmp 0x14008a5f4
mov rax, qword [0x140174018]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400670f0
lea r15, [r12 + 0x5e0]
mov r9b, r14b
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.14006b790
lea rdx, [rbp - 0x80]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14008a64f
lea rdx, str.Could_not_find_any_files_matching_the_search_template.
lea rcx, [rsp + 0x40]
call fcn.140067e3c
mov r9b, r14b
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call fcn.14006b790
xor r14d, r14d
jmp 0x14008a7da
mov edx, VarDateFromDisp
mov rcx, qword [rsi]
call fcn.1400b2714
test rax, rax
jne 0x14008a666
or eax, 0xffffffff
jmp 0x14008a66c
sub rax, qword [rsi]
sar rax, 1
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140069d3c
nop
mov rsi, qword [rsp + 0x48]
mov rcx, r15
call fcn.14006b688
test al, al
jne 0x14008a7a3
test byte [rbp - 0x80], 0x10
jne 0x14008a78e
lea r8, [0x1401202e4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.1400680f0
nop
lea rcx, [rbp - 0x54]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [rbp - 0x54]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.1400683e0
mov rax, qword [0x140174018]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
and dword [rsp + 0x68], 0
and dword [rsp + 0x6c], 0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140067f7c
lea rcx, [rbp - 0x54]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [rbp - 0x54]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400670f0
lea rdx, [r13 + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140067f7c
mov eax, dword [r13 + 0x18]
mov dword [rsp + 0x68], eax
mov eax, dword [r13 + 0x1c]
mov dword [rsp + 0x6c], eax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140084358
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.14008a824
nop
lea rcx, [rsp + 0x50]
call fcn.140070240
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14008a78e
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14008a78e
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff4
call fcn.1400b0230
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008a685
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14008a7da
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14008a7da
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
call fcn.1400b0230
nop
cmp rdi, qword [0x140174010]
je 0x14008a7f7
or edx, 0xffffffff
lock xadd dword [rdi], edx
sub edx, 1
jg 0x14008a7f7
mov rcx, rdi
call fcn.1400b0230
mov eax, r14d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400b0730
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret