Function at 0x140013120
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x688]
sub rsp, 0x788
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rdi, rdx
mov qword [rsp + 0x38], 2
lea rax, [0x140143d2c]
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x30], rax
lea r13, [0x14016e048]
movaps xmm0, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x30]
mov rbx, r8
movdqa xmmword [rsp + 0x30], xmm0
mov r12, rcx
mov qword [rsp + 0x48], r13
xor esi, esi
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x40], esi
call fcn.14001df30
cmp rax, 0xffffffffffffffff
je 0x14001365a
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 2
jne 0x1400131dc
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x2f
jne 0x1400131cf
cmp byte [rax + 1], 0x3f
jne 0x1400131cf
mov eax, esi
jmp 0x1400131d4
sbb eax, eax
or eax, 1
test eax, eax
je 0x14001365a
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 2
jne 0x140013215
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x2d
jne 0x140013208
cmp byte [rax + 1], 0x3f
jne 0x140013208
mov eax, esi
jmp 0x14001320d
sbb eax, eax
or eax, 1
test eax, eax
je 0x14001365a
movups xmm0, xmmword [rdi]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x780], r14
mov qword [rbp + 0xd0], rax
mov eax, esi
movaps xmmword [rsp + 0x40], xmm0
psrldq xmm0, 8
movq r14, xmm0
mov qword [rsp + 0x778], r15
mov dword [rbp + 0xd8], eax
mov dword [rbp + 0xdc], 0x104
test r14, r14
je 0x1400133de
mov r15, qword [rsp + 0x40]
lea rax, [rbp + 0xe0]
mov r8, r15
mov dword [rsp + 0x28], esi
mov r9d, r14d
mov qword [rsp + 0x20], rax
mov edx, 8
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test eax, eax
je 0x1400132ee
inc eax
movsxd r8, eax
mov eax, dword [rbp + 0xdc]
cmp rax, r8
jae 0x1400132ba
mov r9d, 2
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0xd0]
call fcn.14001d070
mov rax, qword [rbp + 0xd0]
mov r9d, r14d
mov dword [rsp + 0x28], esi
mov r8, r15
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov dword [rbp + 0xd8], esi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400133ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14001c470
cmp dword [rsp + 0x30], 0
jne 0x140013357
xor esi, esi
mov rcx, qword [rbp + 0xd0]
lea rdx, [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400133f9
mov eax, dword [rbx + 8]
mov rdi, qword [rdi]
cmp eax, dword [rbx + 0xc]
jb 0x14001334b
lea rdx, [rbx + 0x10]
xor r8d, r8d
lea r9d, [r13 + 9]
mov rcx, rbx
call fcn.14001d070
mov eax, dword [rbx + 8]
mov rcx, qword [rbx]
mov edx, eax
mov qword [rcx + rdx*8], rdi
inc dword [rbx + 8]
movups xmm0, xmmword [rsp + 0x30]
mov rcx, qword [rbp + 0xd0]
lea rax, [rbp + 0xe0]
cmp rcx, rax
movups xmmword [r12], xmm0
je 0x14001337a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x780]
mov r15, qword [rsp + 0x778]
mov rax, r12
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0x788
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, dword [rbp + 0xd8]
cmp eax, dword [rbp + 0xdc]
jb 0x1400133dc
mov r9d, 2
lea rdx, [rbp + 0xe0]
xor r8d, r8d
lea rcx, [rbp + 0xd0]
call fcn.14001d070
mov eax, dword [rbp + 0xd8]
xor esi, esi
mov ecx, eax
mov rax, qword [rbp + 0xd0]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r13
mov word [rax + rcx*2], si
jmp 0x140013309
movups xmm1, xmmword [rdi]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x48], esi
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], rax
movdqa xmm0, xmm1
mov dword [rbp - 0x44], 0x104
psrldq xmm0, 8
movq rdx, xmm1
movq r8, xmm0
add r8, rdx
call fcn.140008430
mov rax, qword [rbp - 0x50]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov edx, 2
mov eax, dword [rbp - 0x48]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1400142b0
mov r15d, dword [rbp - 0x48]
cmp rax, 0xffffffffffffffff
cmovne r15d, eax
mov dword [rbp - 0x48], r15d
nop dword [rax + rax]
lea rax, [rbp + 0x300]
mov dword [rbp + 0x2f8], esi
mov qword [rbp + 0x2f0], rax
mov r9, 0xffffffffffffffff
lea rax, [rbp + 0x43c]
mov dword [rbp + 0x2fc], 0x104
nop dword [rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x1400134a0
lea rax, [rbp + 0x2f0]
lea r8, [rbp + 0x43c]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.140018b80
cmp dword [rsp + 0x30], 0
jne 0x140013605
lea rax, [rbp + 0x2f0]
mov word [rsp + 0x78], 0x101
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x68]
lea rax, [rsp + 0x68]
mov word [rbp - 0x70], 0x101
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rbp - 0x80]
mov word [rbp - 0x58], 0x101
mov edx, 2
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x50]
mov word [rsp + 0x50], 0x106
call fcn.140015100
mov rax, qword [rsp + 0x60]
mov r8d, 1
mov edi, dword [rbp - 0x48]
mov r14, qword [rbp - 0x50]
mov rcx, qword [rax]
lea rdx, [rdi + 1]
call fcn.14001eb80
mov rsi, rax
test rdi, rdi
je 0x140013557
mov r8d, edi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rsi], 0
mov ecx, dword [rbx + 8]
cmp ecx, dword [rbx + 0xc]
jb 0x14001357b
lea rdx, [rbx + 0x10]
mov r9d, 8
xor r8d, r8d
mov rcx, rbx
call fcn.14001d070
mov ecx, dword [rbx + 8]
mov rax, qword [rbx]
movsxd rdi, r15d
mov qword [rax + rcx*8], rsi
inc dword [rbx + 8]
mov ecx, dword [rbp - 0x48]
cmp rdi, rcx
jb 0x1400135cd
jbe 0x1400135d1
mov eax, dword [rbp - 0x44]
cmp rax, rdi
jae 0x1400135b3
mov r9d, 1
lea rdx, [rbp - 0x40]
mov r8, rdi
lea rcx, [rbp - 0x50]
call fcn.14001d070
mov ecx, dword [rbp - 0x48]
mov rax, qword [rbp - 0x50]
add rcx, rax
lea r8, [rdi + rax]
cmp rcx, r8
je 0x1400135cd
sub r8, rcx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x48], r15d
mov rcx, qword [rbp + 0x2f0]
lea rax, [rbp + 0x300]
cmp rcx, rax
je 0x1400135ea
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rbp + 0x410]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001361e
xor esi, esi
jmp 0x140013470
mov rcx, qword [rbp + 0x2f0]
lea rax, [rbp + 0x300]
cmp rcx, rax
je 0x14001361e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
movups xmm0, xmmword [rsp + 0x30]
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x40]
movups xmmword [r12], xmm0
cmp rcx, rax
je 0x140013644
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0xd0]
lea rax, [rbp + 0xe0]
cmp rcx, rax
jmp 0x140013372
mov eax, dword [rbx + 8]
mov rdi, qword [rdi]
cmp eax, dword [rbx + 0xc]
jb 0x14001367d
lea rdx, [rbx + 0x10]
mov r9d, 8
xor r8d, r8d
mov rcx, rbx
call fcn.14001d070
mov eax, dword [rbx + 8]
movups xmm0, xmmword [rsp + 0x40]
mov ecx, eax
mov rax, qword [rbx]
mov qword [rax + rcx*8], rdi
inc dword [rbx + 8]
movups xmmword [r12], xmm0
jmp 0x14001338a