Function at 0x14005d220
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1400e4cb8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor r12d, r12d
mov qword [rsp + 0x58], rdx
xor al, al
mov dword [rsp + 0x50], r12d
cmp qword [rcx + 0x10], 0xffffffffffffffff
lea rdi, [0x140062cf8]
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov r15d, r12d
jne 0x14005d4cd
cmp byte [rcx + 0x20], r12b
jne 0x14005d4cd
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x348], r13
mov byte [rsp + 0x30], 1
call fcn.14005ddb0
mov ecx, dword [0x1400e4b50]
cmp dword [rax], ecx
jne 0x14005d2bb
lea rdx, [0x1400e4b50]
mov rcx, rax
call fcn.14005de60
lea r13d, [r12 + 1]
test eax, eax
jns 0x14005d2be
mov r13d, r12d
cmp byte [r14 + 0x28], r12b
lea ebx, [r13*2]
mov edi, r12d
mov rcx, r14
setne dil
call fcn.14001f0a0
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov r9d, edi
mov qword [rsp + 0x20], r12
lea r8, [rbp - 0x70]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov r13, qword [rsp + 0x348]
mov qword [r14 + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x14005d4bc
mov dword [rsp + 0x40], 8
lea rax, str._UNC_
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x40]
mov r8d, 1
mov rcx, r14
movdqa xmmword [rsp + 0x40], xmm0
call fcn.14001e0c0
test al, al
je 0x14005d4bc
mov r8d, 0x5c
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov rcx, r14
lea r9d, [r8 - 0x5b]
call fcn.14001dfb0
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + 4], 4
jne 0x14005d40e
lea rbx, [rcx + 0x20]
xor r8d, r8d
add rbx, qword [rcx + 0x10]
lea rcx, [rsp + 0x40]
mov edx, dword [rbx + 0xc]
add edx, 2
call fcn.140017b50
mov rax, qword [rsp + 0x40]
lea rcx, [0x14009365c]
mov edx, 2
mov rdi, qword [rax + 0x10]
add rdi, rax
mov r8, rdi
call fcn.1400185e0
mov r8, qword [rbx]
movsxd rcx, dword [rbx + 0xc]
test r8, r8
jne 0x14005d3ca
lea rdx, [0x140062cf8]
add rdx, qword [0x140062d08]
jmp 0x14005d3dc
mov r8, qword [r8]
movsxd rdx, dword [rbx + 8]
mov rax, qword [r8 + 0x10]
lea rdx, [rax + rdx*2]
add rdx, r8
mov r8, rcx
lea rcx, [rdi + 4]
add r8, r8
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [r14 + 0x18]
mov r15d, 1
lea rcx, [rsp + 0x40]
call fcn.140059ab0
mov rcx, qword [rsp + 0x50]
test al, al
je 0x14005d40e
movzx ebx, r15b
jmp 0x14005d410
xor bl, bl
test r15b, 1
je 0x14005d44e
mov rax, qword [rsp + 0x40]
and r15d, 0xfffffffe
mov edx, dword [rax]
test edx, edx
je 0x14005d438
cmp edx, 0xffffffff
je 0x14005d44e
lea ecx, [rdx - 1]
mov dword [rax], ecx
test ecx, ecx
jne 0x14005d449
mov rax, qword [rsp + 0x40]
mov edx, 2
mov rcx, rax
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x50]
test bl, bl
je 0x14005d497
mov rdx, qword [r14 + 0x18]
mov eax, dword [rdx + 8]
cmp dword [rdx + 0xc], eax
jne 0x14005d492
mov eax, dword [rcx]
test eax, eax
je 0x14005d47d
cmp eax, 0xffffffff
je 0x14005d63d
sub eax, 1
mov dword [rcx], eax
jne 0x14005d63d
mov rcx, qword [rsp + 0x50]
mov edx, 0x10
lea r8d, [rdx - 8]
call fcn.140014460
xor al, al
jmp 0x14005d8c5
mov byte [r14 + 0x20], 1
mov eax, dword [rcx]
test eax, eax
je 0x14005d4ae
cmp eax, 0xffffffff
je 0x14005d4bc
sub eax, 1
mov dword [rcx], eax
jne 0x14005d4bc
mov rcx, qword [rsp + 0x50]
mov edx, 0x10
lea r8d, [rdx - 8]
call fcn.140014460
mov rbx, qword [rsp + 0x58]
lea rdi, [0x140062cf8]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [r14 + 0x10]
cmp rcx, 0xffffffffffffffff
jne 0x14005d4e1
cmp byte [r14 + 0x20], r12b
je 0x14005d63d
test al, al
jne 0x14005d507
cmp byte [r14 + 0x20], r12b
je 0x14005d62b
inc dword [r14 + 0x24]
mov rax, qword [r14 + 0x18]
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
cmp dword [r14 + 0x24], ecx
jge 0x14005d63d
cmp byte [r14 + 0x20], r12b
je 0x14005d644
mov rdx, qword [r14 + 0x18]
movsxd rcx, dword [r14 + 0x24]
movsxd rax, dword [rdx + 8]
add rcx, rax
lea rdx, [rdx + rcx*8]
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x40], rcx
add rdx, 0x10
mov r8d, dword [rcx]
lea eax, [r8 + 1]
cmp eax, 1
jbe 0x14005d543
lea eax, [r8 + 1]
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call fcn.1400183c0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140054e10
mov rdx, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rax + 8]
mov rdx, qword [rbx + 8]
mov qword [rbx + 8], rcx
mov qword [rax + 8], rdx
movzx ecx, word [rax + 0x10]
mov word [rbx + 0x10], cx
movzx ecx, word [rax + 0x12]
mov word [rbx + 0x12], cx
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
mov word [rbx + 0x14], ax
mov eax, dword [rcx]
test eax, eax
je 0x14005d5ac
cmp eax, 0xffffffff
je 0x14005d5ba
sub eax, 1
mov dword [rcx], eax
jne 0x14005d5ba
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14005d5d6
cmp eax, 0xffffffff
je 0x14005d5e4
sub eax, 1
mov dword [rcx], eax
jne 0x14005d5e4
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14005d600
cmp eax, 0xffffffff
je 0x14005d60e
sub eax, 1
mov dword [rcx], eax
jne 0x14005d60e
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov dword [rsi + 0x10], 0x10
mov eax, dword [rsi + 4]
or eax, 0x440000
mov dword [rsi + 4], eax
or dword [rsi], 0x560000
jmp 0x14005d8c3
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005d507
xor al, al
jmp 0x14005d8c5
mov r8d, 0xffffffff
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x40]
or r15d, 2
call fcn.140019f60
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rax], rdi
test r15b, 4
je 0x14005d697
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14005d689
cmp eax, 0xffffffff
je 0x14005d697
sub eax, 1
mov dword [rcx], eax
jne 0x14005d697
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14005d6b3
cmp eax, 0xffffffff
je 0x14005d6c1
sub eax, 1
mov dword [rcx], eax
jne 0x14005d6c1
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x40], rcx
mov edx, dword [rcx]
lea eax, [rdx + 1]
cmp eax, 1
jbe 0x14005d6d9
lea eax, [rdx + 1]
mov dword [rcx], eax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400183c0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140054e10
mov rdx, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rax + 8]
mov rdx, qword [rbx + 8]
mov qword [rbx + 8], rcx
mov qword [rax + 8], rdx
movzx ecx, word [rax + 0x10]
mov word [rbx + 0x10], cx
movzx ecx, word [rax + 0x12]
mov word [rbx + 0x12], cx
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
mov word [rbx + 0x14], ax
mov eax, dword [rcx]
test eax, eax
je 0x14005d747
cmp eax, 0xffffffff
je 0x14005d755
sub eax, 1
mov dword [rcx], eax
jne 0x14005d755
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14005d771
cmp eax, 0xffffffff
je 0x14005d77f
sub eax, 1
mov dword [rcx], eax
jne 0x14005d77f
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14005d79b
cmp eax, 0xffffffff
je 0x14005d7a9
sub eax, 1
mov dword [rcx], eax
jne 0x14005d7a9
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
movups xmm1, xmmword [rsp + 0x70]
mov dword [rsp + 0x40], 4
lea rax, str..lnk
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x60], r12
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x68], 0xffffffffffffffff
mov r8d, 1
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.140019950
test al, al
jne 0x14005d899
mov eax, dword [rbp - 0x70]
mov dword [rsi + 0x10], eax
test al, 2
je 0x14005d81d
or dword [rsi + 4], 0x100000
test al, 0x10
mov ecx, 0x40000
mov eax, 0x20000
cmovne eax, ecx
or eax, dword [rsi + 4]
bts eax, 0x16
mov dword [rsi + 4], eax
or dword [rsi], 0x560000
test byte [rsi + 0x10], 0x10
mov rax, qword [rbp - 0x6c]
mov qword [rsi + 0x14], rax
mov rax, qword [rbp - 0x64]
mov qword [rsi + 0x1c], rax
mov rax, qword [rbp - 0x5c]
mov qword [rsi + 0x24], rax
jne 0x14005d86c
mov eax, dword [rbp - 0x54]
mov r12d, dword [rbp - 0x50]
shl rax, 0x20
mov qword [rsi + 8], rax
add r12, rax
mov qword [rsi + 8], r12
or dword [rsi], 0x7210000
mov eax, dword [rsi + 4]
btr eax, 0x10
mov dword [rsi + 4], eax
test dword [rsi + 0x10], 0x400
je 0x14005d899
cmp dword [rbp - 0x4c], 0xa000000c
jne 0x14005d899
bts eax, 0x10
mov dword [rsi + 4], eax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14005d8b5
cmp eax, 0xffffffff
je 0x14005d8c3
sub eax, 1
mov dword [rcx], eax
jne 0x14005d8c3
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov al, 1
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14005f920
add rsp, 0x2f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret