Function at 0x1400a9950
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov qword [rbp], 0xfffffffffffffffe
mov qword [rsp + 0x418], rbx
mov rax, qword [0x141693be0]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x50], rdx
mov r15, rcx
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x68], r13d
xor al, al
or rsi, 0xffffffffffffffff
lea ebx, [rsi + 2]
cmp qword [rcx + 0x10], rsi
jne 0x1400a9c3b
cmp byte [rcx + 0x20], r12b
jne 0x1400a9c3b
mov byte [rsp + 0x30], bl
mov r14d, r13d
call fcn.14000ed30
cmp eax, 0x90
jl 0x1400a99dc
lea r13d, [rsi + 3]
mov r14d, ebx
xor ebx, ebx
cmp byte [r15 + 0x28], bl
mov eax, 1
cmovne ebx, eax
mov rcx, r15
call fcn.14001b320
mov rcx, rax
mov dword [rsp + 0x28], r13d
xor r13d, r13d
mov qword [rsp + 0x20], r13
mov r9d, ebx
lea r8, [rbp + 0x60]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [r15 + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400a9c31
mov dword [rbp - 0x80], 8
lea rax, [0x1416026b0]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp + 0x50], xmm0
mov ebx, 1
mov r8d, ebx
lea rdx, [rbp + 0x50]
mov rcx, r15
call fcn.140019cc0
test al, al
je 0x1400a9c2c
mov eax, 0x5c
mov word [rsp + 0x78], ax
mov dword [rsp + 0x20], ebx
mov r9d, ebx
movzx r8d, ax
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.140019b90
nop
mov r14, qword [rsp + 0x38]
movsxd rcx, dword [r14 + 8]
mov eax, dword [r14 + 0xc]
sub eax, ecx
cmp eax, 4
jne 0x1400a9ae7
lea rax, [r14 + 0x20]
lea rcx, [rax + rcx*8]
mov dword [rbp - 0x40], 2
lea rax, [0x141552b18]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.140064050
nop
mov r12d, ebx
mov dword [rsp + 0x68], ebx
lea rdx, [r15 + 0x18]
lea rcx, [rsp + 0x70]
call fcn.140068270
mov r14, qword [rsp + 0x38]
test al, al
je 0x1400a9ae7
movzx ebx, r12b
jmp 0x1400a9ae9
xor bl, bl
test r12b, 1
je 0x1400a9b1c
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9b09
cmp eax, 0xffffffff
je 0x1400a9b1c
lock dec dword [rcx]
jne 0x1400a9b17
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov r14, qword [rsp + 0x38]
test bl, bl
je 0x1400a9bb6
mov rcx, qword [r15 + 0x18]
mov eax, dword [rcx + 8]
cmp dword [rcx + 0xc], eax
jne 0x1400a9bb1
mov eax, dword [r14]
test eax, eax
je 0x1400a9b50
cmp eax, 0xffffffff
je 0x1400a9baa
mov eax, esi
lock xadd dword [r14], eax
dec eax
jne 0x1400a9baa
mov r14, qword [rsp + 0x38]
movsxd rax, dword [r14 + 0xc]
add rax, 2
lea rbx, [r14 + rax*8]
movsxd rax, dword [r14 + 8]
lea rdi, [rax + 2]
lea rdi, [r14 + rdi*8]
cmp rdi, rbx
je 0x1400a9ba2
nop dword [rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9b8c
cmp eax, 0xffffffff
je 0x1400a9b9d
mov eax, esi
lock xadd dword [rcx], eax
dec eax
jne 0x1400a9b9d
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140011e00
cmp rbx, rdi
jne 0x1400a9b70
mov rcx, r14
call fcn.14001c480
xor al, al
jmp 0x1400a9fa0
mov byte [r15 + 0x20], 1
mov eax, dword [r14]
test eax, eax
je 0x1400a9bd2
cmp eax, 0xffffffff
je 0x1400a9c31
mov eax, esi
lock xadd dword [r14], eax
dec eax
jne 0x1400a9c31
mov r14, qword [rsp + 0x38]
movsxd rax, dword [r14 + 0xc]
add rax, 2
lea rbx, [r14 + rax*8]
movsxd rax, dword [r14 + 8]
lea r12, [rax + 2]
lea r12, [r14 + r12*8]
cmp r12, rbx
je 0x1400a9c22
nop
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9c0c
cmp eax, 0xffffffff
je 0x1400a9c1d
mov eax, esi
lock xadd dword [rcx], eax
dec eax
jne 0x1400a9c1d
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140011e00
cmp rbx, r12
jne 0x1400a9bf0
mov rcx, r14
call fcn.14001c480
jmp 0x1400a9c31
movzx eax, bl
jmp 0x1400a9c36
movzx eax, byte [rsp + 0x30]
mov r14, qword [rsp + 0x50]
mov rcx, qword [r15 + 0x10]
cmp rcx, 0xffffffffffffffff
jne 0x1400a9c50
cmp byte [r15 + 0x20], 0
je 0x1400a9baa
test al, al
jne 0x1400a9c87
cmp byte [r15 + 0x20], al
je 0x1400a9c75
inc dword [r15 + 0x24]
mov rax, qword [r15 + 0x18]
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
cmp dword [r15 + 0x24], ecx
jl 0x1400a9c87
xor al, al
jmp 0x1400a9fa0
lea rdx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400a9baa
cmp byte [r15 + 0x20], 0
je 0x1400a9d9e
mov rdx, qword [r15 + 0x18]
movsxd rcx, dword [r15 + 0x24]
movsxd rax, dword [rdx + 8]
add rcx, rax
lea rdx, [rdx + rcx*8]
add rdx, 0x10
lea rax, [r15 + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140021740
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.140060e50
mov rbx, rax
mov rdx, rax
mov rcx, r14
call fcn.140012b30
lea rdx, [rbx + 8]
lea rcx, [r14 + 8]
call fcn.140012b30
movzx ecx, word [rbx + 0x10]
mov word [r14 + 0x10], cx
movzx ecx, word [rbx + 0x12]
mov word [r14 + 0x12], cx
movzx eax, word [rbx + 0x14]
mov word [r14 + 0x14], ax
mov rcx, qword [rbp - 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9d20
cmp eax, 0xffffffff
je 0x1400a9d2e
lock dec dword [rcx]
jne 0x1400a9d2e
mov rcx, qword [rbp - 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov rcx, qword [rbp - 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9d46
cmp eax, 0xffffffff
je 0x1400a9d55
lock dec dword [rcx]
jne 0x1400a9d55
mov rcx, qword [rbp - 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9d6f
cmp eax, 0xffffffff
je 0x1400a9d7d
lock dec dword [rcx]
jne 0x1400a9d7d
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov dword [rdi + 0x10], 0x10
mov ecx, 0x40000
or dword [rdi + 4], ecx
or dword [rdi + 4], 0x400000
or dword [rdi], 0x560000
jmp 0x1400a9f9e
mov r8d, esi
lea rdx, [rbp + 0x8c]
lea rcx, [rsp + 0x40]
call fcn.14000e3e0
nop
lea rax, [r15 + 8]
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140021740
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.140060e50
mov rbx, rax
mov rdx, rax
mov rcx, r14
call fcn.140012b30
lea rdx, [rbx + 8]
lea rcx, [r14 + 8]
call fcn.140012b30
movzx ecx, word [rbx + 0x10]
mov word [r14 + 0x10], cx
movzx ecx, word [rbx + 0x12]
mov word [r14 + 0x12], cx
movzx eax, word [rbx + 0x14]
mov word [r14 + 0x14], ax
mov rcx, qword [rbp - 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9e2d
cmp eax, 0xffffffff
je 0x1400a9e3b
lock dec dword [rcx]
jne 0x1400a9e3b
mov rcx, qword [rbp - 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov rcx, qword [rbp - 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9e53
cmp eax, 0xffffffff
je 0x1400a9e62
lock dec dword [rcx]
jne 0x1400a9e62
mov rcx, qword [rbp - 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9e7a
cmp eax, 0xffffffff
je 0x1400a9e88
lock dec dword [rcx]
jne 0x1400a9e88
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], rsi
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rdi + 0x20], xmm0
mov dword [rsp + 0x50], 4
lea rax, [0x141595580]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0x10], xmm0
mov r8d, 1
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400150a0
test al, al
jne 0x1400a9f76
mov eax, dword [rbp + 0x60]
mov dword [rdi + 0x10], eax
test al, 2
je 0x1400a9ef6
or dword [rdi + 4], 0x100000
test al, 0x10
mov eax, 0x20000
mov ecx, 0x40000
cmovne eax, ecx
or dword [rdi + 4], eax
or dword [rdi + 4], 0x400000
or dword [rdi], 0x560000
mov rax, qword [rbp + 0x64]
mov qword [rdi + 0x14], rax
mov rax, qword [rbp + 0x6c]
mov qword [rdi + 0x1c], rax
mov rax, qword [rbp + 0x74]
mov qword [rdi + 0x24], rax
test byte [rdi + 0x10], 0x10
je 0x1400a9f39
mov qword [rdi + 8], r13
jmp 0x1400a9f4d
mov ecx, dword [rbp + 0x7c]
shl rcx, 0x20
mov eax, dword [rbp + 0x80]
add rcx, rax
mov qword [rdi + 8], rcx
or dword [rdi], 0x7210000
and dword [rdi + 4], 0xfffeffff
test dword [rdi + 0x10], 0x400
je 0x1400a9f76
cmp dword [rbp + 0x84], 0xa000000c
jne 0x1400a9f76
or dword [rdi + 4], 0x10000
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400a9f90
cmp eax, 0xffffffff
je 0x1400a9f9e
lock dec dword [rcx]
jne 0x1400a9f9e
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov al, 1
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1400fa620
mov rbx, qword [rsp + 0x418]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret