Function at 0x140012c00
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xf10
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0xf48], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0xf00], rax
mov dword [rsp + 0x40], r9d
mov rdi, r8
mov qword [rsp + 0x28], r8
mov rbp, rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x20], esi
call fcn.14004b0d0
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140012c72
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
test rdi, rdi
jne 0x140012caa
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012ca3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400130ee
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x80]
call fcn.140091a50
mov r8, rbp
lea rdx, str._s.
lea rcx, [rsp + 0xaf0]
call fcn.1400034d0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xaf0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x50], rax
or rbp, 0xffffffffffffffff
lea r8d, [rbp + 2]
cmp rax, rbp
je 0x140012fb9
nop
nop
nop
nop
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0xac]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140012d85
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140012e11
cmp dword [rdx + 0x10], eax
jge 0x140012d57
cmp dword [rbx - 0xc], eax
jl 0x140012f8b
mov dword [rbx - 0x10], esi
mov word [rbx], ax
jmp 0x140012e11
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012d6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
jmp 0x140012e11
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0xac]
sub rbp, rbx
sar rbp, 1
mov ecx, r8d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140012db6
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004650
mov rbx, qword [rsp + 0x38]
cmp rbp, rsi
ja 0x140012dd6
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1400908b0
jmp 0x140012df3
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xac]
mov rdx, rsi
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x140012fae
cmp edi, dword [rbx - 0xc]
jg 0x140012fae
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
or rbp, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1400decf4]
mov rsi, rbx
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x140012e2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140012f52
xor eax, eax
lea rdi, [0x1400e0534]
mov rsi, rbx
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x140012e54
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140012f5b
mov r9, rbx
mov r8, qword [rsp + 0x58]
lea rdx, [0x1400e0178]
lea rcx, [rsp + 0x2d0]
call fcn.1400034d0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x68], rdx
call fcn.14004b0d0
mov rcx, rax
xor esi, esi
mov eax, esi
test rcx, rcx
setne al
test eax, eax
je 0x140012f96
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x2d0]
lea rax, [rsp + 0x2d0]
test rax, 0xffffffffffff0000
jne 0x140012ee9
movzx edi, cx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140012f13
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005b70
jmp 0x140012f13
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x2d0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x30]
call fcn.140005dc0
nop
lea rcx, [rsp + 0x30]
call fcn.140005360
test eax, eax
je 0x140012f64
xor r9d, r9d
mov rdi, qword [rsp + 0x28]
mov r8, rdi
lea rdx, [rsp + 0x2d0]
mov rcx, qword [rsp + 0x48]
call fcn.140012c00
mov ecx, dword [rsp + 0x20]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x20], ecx
jmp 0x140012f69
xor esi, esi
mov rdi, qword [rsp + 0x28]
jmp 0x140012f69
xor esi, esi
mov rdi, qword [rsp + 0x28]
jmp 0x140012f69
mov rdi, qword [rsp + 0x28]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140012fa1
mov r8d, 1
jmp 0x140012d10
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80004005
call fcn.140001610
int3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140012fb9
mov ecx, 0x80070057
call fcn.140001610
int3
cmp dword [rsp + 0x40], 0
jne 0x1400130cd
movsxd rcx, dword [rdi + 0x5a4]
mov rdx, rcx
imul rdx, rdx, 0x4b8
add rdx, rdi
mov rbp, rsi
cmp dword [rdx + 0xb20], 0
jle 0x1400130cd
or rbx, 0xffffffffffffffff
nop
imul rcx, rcx, 0x12e
add rcx, rbp
cmp dword [rdi + rcx*4 + 0x990], 0
jne 0x14001309c
lea r9, [rsp + 0x6e0]
mov r8, qword [rdx + rbp*8 + 0x670]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call fcn.14000eb60
test eax, eax
je 0x14001309c
movsxd rcx, dword [rdi + 0x5a4]
imul rcx, rcx, 0x97
movsxd rax, esi
add rcx, rax
lea rsi, [rdi + rcx*8 + 0x800]
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0x6e0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x6e0]
mov rcx, rsi
call fcn.140005dc0
mov rdi, qword [rsp + 0x28]
movsxd rdx, dword [rdi + 0x5a4]
imul rdx, rdx, 0x12e
add rdx, rbp
mov r8d, 1
mov dword [rdi + rdx*4 + 0x990], r8d
mov dword [rsp + 0x20], r8d
mov rsi, qword [rsp + 0x60]
add esi, 1
mov qword [rsp + 0x60], rsi
add rbp, 1
movsxd rcx, dword [rdi + 0x5a4]
mov rdx, rcx
imul rdx, rdx, 0x4b8
add rdx, rdi
cmp esi, dword [rdx + 0xb20]
jl 0x140012ff0
mov rbx, qword [rsp + 0x38]
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400130ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xf00]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0xf48]
add rsp, 0xf10
pop rdi
pop rsi
pop rbp
ret