Function at 0x140122088
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
xor r12d, r12d
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1401220cb
mov qword [rdx], r12
test rdi, rdi
je 0x1401222f6
cmp word [rcx], r12w
je 0x1401222f6
lea rcx, [rsp + 0x40]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x10], r12
call fcn.14000e960
lea r13, vtable.std::_Func_impl_no_alloc_int____cdecl___void____ptr64___void__void____ptr64_.0
mov qword [rbp - 0x60], r12
cmp qword [sym.imp.KERNEL32.dll_CloseHandle], r12
je 0x14012211e
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x68], r13
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov edx, 0x80
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea r8, [rsp + 0x68]
lea rcx, [rbp - 0x50]
call fcn.1401001c8
test al, al
jne 0x140122160
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401221be
xorps xmm0, xmm0
lea rdx, [rsp + 0x68]
xor eax, eax
mov r14b, r12b
movups xmmword [rsp + 0x68], xmm0
mov dword [rbp - 0x68], eax
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1401221b5
test byte [rsp + 0x68], 0x10
jne 0x1401221b5
test rbx, rbx
je 0x1401221b2
mov ecx, dword [rbp - 0x78]
mov eax, dword [rbp - 0x74]
shl rcx, 0x20
or rcx, rax
mov qword [rbx], rcx
mov r14b, 1
mov esi, dword [rsp + 0x50]
jmp 0x140122298
mov esi, dword [rsp + 0x50]
test esi, esi
je 0x1401221d9
mov esi, r12d
cmp qword [rsp + 0x48], r12
je 0x1401221d9
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x48]
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x250
mov r14b, r12b
call fcn.14013b230
mov qword [rbp - 0x60], r12
cmp qword [sym.imp.KERNEL32.dll_FindClose], r12
je 0x140122214
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x68], r13
lea rdx, [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdx, rax
lea r8, [rsp + 0x68]
lea rcx, [rbp]
call fcn.14005870c
mov rcx, qword [rbp]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140122272
test byte [rbp + 0x50], 0x10
je 0x14012225a
lea rdx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140122272
mov rcx, qword [rbp]
jmp 0x140122240
mov r14b, 1
test rbx, rbx
je 0x140122272
mov ecx, dword [rbp + 0x6c]
mov eax, dword [rbp + 0x70]
shl rcx, 0x20
or rcx, rax
mov qword [rbx], rcx
lea rcx, [rbp]
call fcn.1400111e0
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140122298
mov rax, qword [rcx]
lea rdx, [rbp + 8]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x40], r12
test esi, esi
je 0x1401222ac
cmp qword [rsp + 0x48], r12
je 0x1401222ac
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x48]
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x10]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401222db
test rcx, rcx
je 0x1401222f1
mov qword [rsp + 0x60], rdx
lea rdx, [rsp + 0x60]
mov qword [rbp - 0x50], r12
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1401222f1
mov r8, qword [rcx]
lea rax, [rbp - 0x48]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov al, r14b
jmp 0x1401222f8
xor al, al
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret