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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd20
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0xd50], rbx
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0xd10], rax
mov rsi, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x30], 0
call fcn.14003c3f0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140017755
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
call fcn.14003c3f0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140017783
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x2e0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2e2]
call fcn.1400a09f0
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x90]
call fcn.1400a09f0
mov r8, rsi
lea rdx, str._s.
lea rcx, [rsp + 0x900]
call fcn.1400030e0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x900]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x58], rax
or rbp, 0xffffffffffffffff
cmp rax, rbp
je 0x140017af2
nop
nop
nop
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0xbc]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140017885
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140017913
cmp dword [rdx + 0x10], eax
jge 0x140017857
cmp dword [rbx - 0xc], eax
jl 0x140017a67
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140017913
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001786e
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 0x140017913
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0xbc]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400178b8
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140004410
mov rbx, qword [rsp + 0x38]
cmp rbp, rsi
ja 0x1400178d8
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.14009f850
jmp 0x1400178f5
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xbc]
mov rdx, rsi
mov rcx, rbx
call fcn.14009f640
test edi, edi
js 0x140017ae7
cmp edi, dword [rbx - 0xc]
jg 0x140017ae7
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
or rbp, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1400ee8ac]
mov rsi, rbx
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x14001792e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140017a3f
xor eax, eax
lea rdi, [0x1400f023c]
mov rsi, rbx
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x140017956
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140017a46
mov r9, rbx
mov rsi, qword [rsp + 0x50]
mov r8, rsi
lea rdx, [0x1400efcb0]
lea rcx, [rsp + 0x4f0]
call fcn.1400030e0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x80], rdx
call fcn.14003c3f0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x140017a79
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x4f0]
lea rax, [rsp + 0x4f0]
test rax, 0xffffffffffff0000
jne 0x1400179ef
movzx edi, cx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140017a19
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400060c0
jmp 0x140017a19
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x4f0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x4f0]
lea rcx, [rsp + 0x40]
call fcn.140006310
nop
lea rcx, [rsp + 0x40]
call fcn.1400058b0
test eax, eax
je 0x140017a4b
lea rdx, [rsp + 0x4f0]
mov rcx, qword [rsp + 0x60]
call fcn.1400176f0
test eax, eax
jne 0x140017a72
jmp 0x140017a4b
mov rsi, qword [rsp + 0x50]
jmp 0x140017a4b
mov rsi, qword [rsp + 0x50]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140017a84
jmp 0x140017810
mov ecx, 0x80070057
call fcn.140001120
int3
mov ebx, 1
jmp 0x140017a88
mov ecx, 0x80004005
call fcn.140001120
int3
mov ebx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x140017ae0
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140017ab8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140017ad6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140017cde
mov rdi, qword [rsp + 0x48]
jmp 0x140017af6
mov ecx, 0x80070057
call fcn.140001120
int3
mov ebx, dword [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x90]
call fcn.1400a09f0
mov r8, rsi
lea rdx, str._s.inf
lea rcx, [rsp + 0x900]
call fcn.1400030e0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x900]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140017c98
nop
nop
nop
lea r9, [rsp + 0xbc]
mov r8, qword [rsp + 0x50]
lea rdx, [0x1400efcb0]
lea rcx, [rsp + 0x48]
call fcn.140006f70
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
cmp rax, 0xffffffffffffffff
je 0x140017c75
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x140017c75
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rsp + 0x2e0]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140017c5d
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call fcn.14009fd30
lea rdx, str.CLASSGUID
lea rcx, [rsp + 0x2e0]
call fcn.14009f5d0
test rax, rax
je 0x140017c5d
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rsp + 0x2e0]
mov edx, 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x140017c5d
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call fcn.14009fd30
lea rdx, str.E2F84CE7_8EFA_411C_AA69_97454CA4CB57
lea rcx, [rsp + 0x2e0]
call fcn.14009f5d0
test rax, rax
jne 0x140017c93
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x140017bb0
test ebx, ebx
jne 0x140017c98
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140017c98
jmp 0x140017b50
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rdi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140017cbe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140017cdc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rcx, qword [rsp + 0xd10]
xor rcx, rsp
call fcn.1400a1970
mov rbx, qword [rsp + 0xd50]
add rsp, 0xd20
pop rdi
pop rsi
pop rbp
ret