Function at 0x140040be0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x2e8]
sub rsp, 0x3e0
mov rax, qword [0x140113980]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor r14d, r14d
lea rcx, [rbp + 0x30]
call fcn.140037908
nop
call fcn.14003d194
mov rdx, rax
lea r8, [0x1400e50d8]
lea rcx, [rbp - 0x30]
call fcn.140024bdc
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x20], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140040e26
lea esi, [r14 + 7]
test byte [rbp + 0x80], 0x10
jne 0x140040db1
mov qword [rbp + 8], rsi
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
call fcn.14003d194
mov rdx, rax
lea r8, [0x1400e4788]
lea rcx, [rsp + 0x40]
call fcn.140024bdc
nop
cmp word [rbp + 0xac], r14w
jne 0x140040cc4
mov r8, r14
jmp 0x140040cd9
lea rcx, [rbp + 0xac]
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], r14w
jne 0x140040ccf
lea rdx, [rbp + 0xac]
mov rcx, rax
call fcn.14000652c
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140006720
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14003d428
nop
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.140056f34
nop
lea rcx, [rbp - 0x80]
call fcn.14003d3ac
nop
cmp qword [rsp + 0x78], 8
jb 0x140040d51
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
cmp qword [rsp + 0x58], 8
jb 0x140040d6a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x28]
jmp 0x140040d88
lea r8, [rbp - 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.14004cd8c
add rbx, 0x98
cmp rbx, qword [rsp + 0x30]
jne 0x140040d71
lea rcx, [rsp + 0x28]
call fcn.140041a04
nop
cmp qword [rbp + 8], 8
jb 0x140040db1
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
setbe al
test al, al
je 0x140040f42
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140040c73
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.14004c798
cmp ebx, 0x12
jne 0x140040f11
lea rcx, [rsp + 0x20]
call fcn.140041558
nop
cmp qword [rbp - 0x18], 8
jb 0x140040e71
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
jmp 0x140040e71
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
je 0x140040e40
cmp eax, 0x12
jne 0x140040ee0
lea rcx, [rbp + 0x30]
call fcn.14004c798
nop
lea rcx, [rsp + 0x20]
call fcn.140041558
nop
cmp qword [rbp - 0x18], 8
jb 0x140040e6c
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov esi, 7
mov word [rbp - 0x30], r14w
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rsi
mov rcx, qword [rbp + 0x48]
lea rax, vtable.Uev::TemplateIndex.0
test rcx, rcx
mov qword [rbp + 0x30], rax
je 0x140040eaa
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x48], r14
lea rcx, [rbp + 0x38]
call fcn.140039020
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400c4a70
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, str.Could_not_open_template_folder_for_search
lea rcx, [rsp + 0x40]
call fcn.14000621c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.14003ce78
lea rdx, [0x14010a3e0]
lea rcx, [rbp - 0x10]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Could_not_retrieve_all_files_from_template_folder
lea rcx, [rsp + 0x40]
call fcn.14000621c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.14003ce78
lea rdx, [0x14010a3e0]
lea rcx, [rbp - 0x10]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x40]
call fcn.14000621c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140005ab4
lea rdx, [0x1401096d0]
lea rcx, [rbp - 0x10]
call sub.msvcrt.dll__CxxThrowException
int3