Function at 0x14005d3e0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x370], rbx
mov rax, qword [0x1400c3030]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r13, rdx
xor r12b, r12b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor edi, edi
mov esi, edi
mov qword [rsp + 0x30], rdi
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.14002b750
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14005d723
mov r12b, 1
mov rbx, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
nop dword [rax]
test byte [rbp - 0x40], 0x10
jne 0x14005d6f1
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
cmp word [rbp - 0x14], 0
jne 0x14005d4c6
mov r8, rdi
jmp 0x14005d4db
lea rax, [rbp - 0x14]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14005d4d0
lea rdx, [rbp - 0x14]
lea rcx, [rbp - 0x68]
call fcn.14002b600
nop
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
cmp word [rdx], 0
jne 0x14005d513
mov r8, rdi
jmp 0x14005d52b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14005d520
lea rcx, [rsp + 0x78]
call fcn.14002b600
nop
lea rax, [rsp + 0x78]
cmp rax, rbx
jae 0x14005d613
lea rax, [rsp + 0x78]
cmp r14, rax
ja 0x14005d613
lea rdi, [rsp + 0x78]
sub rdi, r14
cmp rbx, rsi
jne 0x14005d5d1
mov rax, rsi
sub rax, rbx
sar rax, 5
cmp rax, 1
jae 0x14005d5d1
sub rbx, r14
sar rbx, 5
movabs rcx, 0x7ffffffffffffff
mov rax, rcx
sub rax, rbx
cmp rax, 1
jb 0x14005d707
lea rdx, [rbx + 1]
sub rsi, r14
sar rsi, 5
mov rax, rsi
shr rax, 1
sub rcx, rax
add rax, rsi
xor r8d, r8d
cmp rcx, rsi
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rsp + 0x20]
call fcn.14002c840
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
and rdi, 0xffffffffffffffe0
add rdi, r14
test rbx, rbx
je 0x14005d608
xor ecx, ecx
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rcx
cmp qword [rbx + 0x18], 8
jb 0x14005d5f7
mov rax, qword [rbx]
jmp 0x14005d5fa
mov rax, rbx
mov word [rax], cx
mov rdx, rdi
mov rcx, rbx
call fcn.14002b890
add rbx, 0x20
xor edi, edi
jmp 0x14005d6be
cmp rbx, rsi
jne 0x14005d68a
mov rax, rsi
sub rax, rbx
sar rax, 5
cmp rax, 1
jae 0x14005d68a
sub rbx, r14
sar rbx, 5
movabs rcx, 0x7ffffffffffffff
mov rax, rcx
sub rax, rbx
cmp rax, 1
jb 0x14005d715
lea rdx, [rbx + 1]
sub rsi, r14
sar rsi, 5
mov rax, rsi
shr rax, 1
sub rcx, rax
add rax, rsi
mov r8, rdi
cmp rcx, rsi
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rsp + 0x20]
call fcn.14002c840
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
test rbx, rbx
je 0x14005d6ba
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x14005d6a7
mov rax, qword [rbx]
jmp 0x14005d6aa
mov rax, rbx
mov word [rax], di
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.14002b890
add rbx, 0x20
mov qword [rsp + 0x28], rbx
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x14005d6db
inc r8
mov rdx, qword [rsp + 0x78]
call fcn.14002bfa0
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x14005d6f1
inc r8
mov rdx, qword [rbp - 0x68]
call fcn.14002bfa0
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14005d723
jmp 0x14005d4a0
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.14005d800
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x14005d752
inc r8
mov rdx, qword [rsp + 0x58]
call fcn.14002bfa0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14005d790
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.14002f3d0
mov r8, qword [rsp + 0x30]
sub r8, rbx
sar r8, 5
mov rdx, rbx
call fcn.14002c760
movzx eax, r12b
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400602a0
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret