Function at 0x140002ad0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6b8]
sub rsp, 0x790
mov rax, qword [0x1400060e8]
xor rax, rsp
mov qword [rbp + 0x680], rax
mov rsi, qword [0x1400066d0]
lea rcx, [rbp + 0x170]
mov r14, r8
mov edx, 0x104
mov r8, qword [rsi + 8]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov rdx, qword [rsi + 8]
or rax, 0xffffffffffffffff
xor r13d, r13d
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140002b38
lea r15, [rbp + 0x170]
or rcx, 0xffffffffffffffff
lea r15, [r15 + rax*2]
inc rcx
cmp word [rdx + rcx*2], r13w
jne 0x140002b51
mov eax, 0x104
lea r8, [0x1400048a8]
sub eax, ecx
mov rcx, r15
movsxd r12, eax
mov rdx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002bb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x140002d52
cmp word [rsp + 0x4c], 0x2e
movzx eax, word [rsp + 0x4e]
jne 0x140002be7
test ax, ax
je 0x140002d0c
cmp word [rsp + 0x4c], 0x2e
jne 0x140002be7
cmp ax, 0x2e
jne 0x140002be7
cmp word [rsp + 0x50], r13w
je 0x140002d0c
lea rcx, [rsp + 0x4c]
call qword [sym.imp.msvcrt.dll__wcslwr]
nop dword [rax + rax]
mov rdx, r12
mov rcx, r15
mov r8, rax
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov r8, qword [rsi + 0x18]
test r8, r8
je 0x140002c2e
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x4c]
call fcn.140002fac
test eax, eax
je 0x140002d0c
cmp qword [rsi + 0x18], r13
je 0x140002ccf
lea r9, [rbp + 0x480]
lea r8, [rbp + 0x580]
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x170]
call fcn.140002d8c
test eax, eax
je 0x140002ccf
test byte [rsp + 0x20], 0x10
je 0x140002d0c
lea rcx, [rbp + 0x380]
call fcn.140002ed8
test eax, eax
je 0x140002d0c
mov ecx, 0x28
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
jne 0x140002cb0
mov ecx, 0x3f4
call fcn.14000182c
jmp 0x140002d0c
mov r9, rax
lea r8, [rbp + 0x480]
lea rdx, [rbp + 0x580]
lea rcx, [rbp + 0x380]
call fcn.140002898
jmp 0x140002d0c
lea rcx, [rbp + 0x170]
call fcn.140002ed8
test eax, eax
je 0x140002d0c
mov eax, dword [r14 + 0x18]
cmp dword [r14], eax
jge 0x140002cfb
mov rdx, r14
lea rcx, [rbp + 0x170]
call fcn.1400029b8
mov ebx, eax
jmp 0x140002d08
mov ecx, 0x3f8
call fcn.14000182c
or ebx, 0xffffffff
test ebx, ebx
jne 0x140002d2a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002bb7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test ebx, ebx
jne 0x140002d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x12
cmove ebx, r13d
mov eax, ebx
mov rcx, qword [rbp + 0x680]
xor rcx, rsp
call fcn.140003620
lea r11, [rsp + 0x790]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret