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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xf10
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0xf48], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0xf00], rax
mov dword [rsp + 0x3c], r9d
mov rbp, r8
mov qword [rsp + 0x30], r8
mov rsi, rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x68], rcx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x38], edi
call fcn.14004b0d0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x140017e45
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 + 0x48], rbx
test rbp, rbp
jne 0x140017e7d
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140017e76
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140018681
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091a50
mov r8, rsi
lea rdx, str._s.
lea rcx, [rsp + 0xaf0]
call fcn.1400034d0
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0xaf0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
mov qword [rsp + 0x70], rax
or r8, 0xffffffffffffffff
lea edx, [r8 + 2]
cmp rax, r8
je 0x140018181
nop
nop
xor eax, eax
mov rcx, r8
lea rdi, [rsp + 0x4bc]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140017f56
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140017fe2
cmp dword [rdx + 0x10], eax
jge 0x140017f27
cmp dword [rbx - 0xc], eax
jl 0x140018153
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140017fe2
mov eax, r8d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140017f3f
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 + 0x48], rbx
jmp 0x140017fe2
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x4bc]
sub rbp, rbx
sar rbp, 1
mov ecx, edx
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140017f86
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004650
mov rbx, qword [rsp + 0x48]
cmp rbp, rsi
ja 0x140017fa6
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 0x140017fc3
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x4bc]
mov rdx, rsi
mov rcx, rbx
call fcn.1400907e0
test edi, edi
js 0x140018176
cmp edi, dword [rbx - 0xc]
jg 0x140018176
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov rbp, qword [rsp + 0x70]
xor eax, eax
lea rdi, [0x1400decf4]
mov rsi, rbx
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x140017ffd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140018125
xor eax, eax
lea rdi, [0x1400e0534]
mov rsi, rbx
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x140018025
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x14001812c
mov r9, rbx
mov rsi, qword [rsp + 0x40]
mov r8, rsi
lea rdx, [0x1400e0178]
lea rcx, [rsp + 0x6e0]
call fcn.1400034d0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x80], rdx
call fcn.14004b0d0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x14001815e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x6e0]
lea rax, [rsp + 0x6e0]
test rax, 0xffffffffffff0000
jne 0x1400180be
movzx edi, cx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x1400180e9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005b70
jmp 0x1400180e9
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x6e0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x6e0]
lea rcx, [rsp + 0x50]
call fcn.140005dc0
nop
lea rcx, [rsp + 0x50]
call fcn.140005360
test eax, eax
je 0x140018131
xor r9d, r9d
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x6e0]
mov rcx, qword [rsp + 0x68]
call fcn.140017dd0
mov ecx, dword [rsp + 0x38]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x38], ecx
jmp 0x140018131
mov rsi, qword [rsp + 0x40]
jmp 0x140018131
mov rsi, qword [rsp + 0x40]
lea rdx, [rsp + 0x490]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140018169
or r8, 0xffffffffffffffff
lea edx, [r8 + 2]
jmp 0x140017ee0
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80004005
call fcn.140001610
int3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
jmp 0x140018181
mov ecx, 0x80070057
call fcn.140001610
int3
cmp dword [rsp + 0x3c], 0
jne 0x1400184ee
call fcn.14004b0d0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x1400181ab
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x90], rax
call fcn.14004b0d0
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x1400181dc
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea rbx, [fcn.1400011a0]
mov qword [rsp + 0x20], rbx
lea r9, [0x140004ac0]
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0xa0]
call fcn.1400928a0
nop
mov qword [rsp + 0x20], rbx
lea r9, [0x140004ac0]
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0x230]
call fcn.1400928a0
nop
lea rcx, [rsp + 0x90]
call fcn.14000e250
nop
test rsi, rsi
jne 0x140018252
mov ecx, edi
jmp 0x140018265
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.140005dc0
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x90]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400182e5
cmp dword [rdi + 0x10], 0
jl 0x1400182d4
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400182d4
call fcn.1400046b0
mov rsi, rax
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400182c6
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x90], rax
jmp 0x1400182e5
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x90]
call fcn.140005dc0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
call fcn.140013160
test eax, eax
je 0x14001845f
cmp dword [rsp + 0x488], 0
jle 0x140018457
lea rax, [rsp + 0x60]
mov qword [rsp + 0x80], rax
lea rbp, [rsp + 0x3c0]
lea rbx, [rsp + 0xa0]
nop
nop
mov rdi, qword [rbx + 0x190]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001835b
cmp rax, qword [rdi - 0x18]
jne 0x14001835b
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140018397
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x140018451
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.1400907e0
lea rax, [rsi + 0x18]
mov qword [rsp + 0x60], rax
mov rdi, qword [rbx]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400183c7
cmp rax, qword [rdi - 0x18]
jne 0x1400183c7
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x1400183ff
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x14001844b
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.1400907e0
lea rax, [rsi + 0x18]
mov qword [rsp + 0x78], rax
mov r9d, dword [rbp]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
call fcn.140007fa0
mov rax, qword [rsp + 0x58]
add eax, 1
mov qword [rsp + 0x58], rax
add rbx, 8
add rbp, 4
cmp eax, dword [rsp + 0x488]
jl 0x140018330
lea rbx, [fcn.1400011a0]
jmp 0x140018457
call fcn.140003370
nop
call fcn.140003370
int3
mov dword [rsp + 0x38], 1
mov r9, rbx
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0x230]
call fcn.14008f8f0
mov r9, rbx
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0xa0]
call fcn.14008f8f0
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
or rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400184b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400184e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
jmp 0x140018660
mov rbx, qword [rsp + 0x48]
jmp 0x140018660
xor r11d, r11d
mov edi, r11d
mov dword [rsp + 0x3c], r11d
mov r9, qword [rsp + 0x30]
mov ecx, dword [r9 + 0x5a0]
mov rbp, r11
test ecx, ecx
jle 0x140018660
lea r10, [r9 + 0x5a8]
lea rdx, [r9 + 0x1b8]
mov qword [rsp + 0x40], rdx
mov rax, qword [rdx]
cmp dword [rax - 0x10], 5
jge 0x140018539
mov eax, 1
mov dword [r10], eax
jmp 0x14001862d
mov r8d, r11d
mov rsi, r11
test ecx, ecx
jle 0x14001862d
lea rdi, [r9 + 0x4d8]
add r9, 0x1b8
mov rax, qword [rsp + 0x30]
nop
nop
cmp rbp, rsi
je 0x140018602
mov rdx, qword [r9]
mov eax, r11d
test rdx, rdx
setne al
test eax, eax
je 0x140018655
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
sub rdx, rax
nop
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1400185a7
add rax, 2
test cx, cx
jne 0x140018590
mov eax, r11d
jmp 0x1400185ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x1400185ef
mov eax, dword [r10 - 0xd0]
test eax, eax
je 0x1400185d7
cmp dword [rdi], r11d
jne 0x1400185d7
mov eax, 1
mov dword [rdi + 0xd0], eax
mov rax, qword [rsp + 0x30]
jmp 0x140018602
test eax, eax
jne 0x1400185fd
cmp dword [rdi], r11d
je 0x1400185f6
mov eax, 1
mov dword [r10], eax
mov rax, qword [rsp + 0x30]
jmp 0x140018602
mov rax, qword [rsp + 0x30]
jmp 0x140018602
mov rax, qword [rsp + 0x30]
jmp 0x140018602
mov rax, qword [rsp + 0x30]
add r8d, 1
add rsi, 1
add r9, 8
add rdi, 4
cmp r8d, dword [rax + 0x5a0]
jl 0x140018560
mov rdx, qword [rsp + 0x40]
mov edi, dword [rsp + 0x3c]
mov r9, qword [rsp + 0x30]
add edi, 1
mov dword [rsp + 0x3c], edi
add rbp, 1
add rdx, 8
mov qword [rsp + 0x40], rdx
add r10, 4
mov ecx, dword [r9 + 0x5a0]
cmp edi, ecx
jge 0x140018660
jmp 0x140018523
mov ecx, 0x80004005
call fcn.140001610
nop
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001867d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x38]
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