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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rbx, r9
mov qword [rsp + 0x48], rbx
mov rdi, r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x50], rcx
test r8, r8
je 0x1401505a4
mov qword [rbp - 0x60], 7
xor esi, esi
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140091560
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140150316
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140150316
call fcn.1401521d0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14015cb70
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
cmp word [rbx], 0
jne 0x140150333
mov r8, rsi
jmp 0x14015034b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140150340
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400916a0
nop
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.140149090
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x1401503a3
cmp qword [rbp - 0x60], 8
jb 0x140150387
mov rcx, qword [rbp - 0x78]
call sub.mfc120u.dll_Ordinal_1486
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.14015ca50
cmp qword [rbp - 0x40], 8
jb 0x1401503b3
mov rcx, qword [rbp - 0x58]
call sub.mfc120u.dll_Ordinal_1486
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
cmp qword [rbp - 0x80], 8
jb 0x1401503d4
mov rcx, qword [rsp + 0x68]
call sub.mfc120u.dll_Ordinal_1486
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x14015058e
mov esi, dword [rbp + 0x280]
cmp word [rbp - 4], 0x2e
jne 0x140150432
lea rax, [rbp - 4]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140150413
cmp rcx, 1
jbe 0x14015052e
cmp word [rbp - 2], 0x2e
je 0x14015052e
mov qword [rbp - 0x80], 7
xor eax, eax
mov qword [rsp + 0x78], rax
mov word [rsp + 0x68], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140091560
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140150498
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140150498
call fcn.1401521d0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14015cb70
cmp word [rbp - 4], 0
jne 0x1401504a4
xor r8d, r8d
jmp 0x1401504bb
lea rax, [rbp - 4]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1401504b0
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x68]
call fcn.14015ccb0
test byte [rbp - 0x30], 0x10
je 0x14015050e
test sil, 4
je 0x14015051d
mov eax, dword [rbp + 0x290]
inc eax
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
mov r9, qword [rsp + 0x48]
mov r8, rdi
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.140150270
mov ebx, eax
test eax, eax
jne 0x140150545
mov rbx, qword [rsp + 0x58]
jmp 0x14015051d
mov rax, qword [rdi]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rbp - 0x80], 8
jb 0x14015052e
mov rcx, qword [rsp + 0x68]
call sub.mfc120u.dll_Ordinal_1486
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
jne 0x140150558
jmp 0x140150404
cmp qword [rbp - 0x80], 8
jb 0x140150590
mov rcx, qword [rsp + 0x68]
call sub.mfc120u.dll_Ordinal_1486
jmp 0x140150590
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rbp + 0x288], 0
je 0x14015057f
mov rax, qword [rdi]
mov r8d, dword [rbp + 0x290]
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [rax + InitCommonControls]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x12
jne 0x140150590
xor esi, esi
mov ebx, esi
cmp qword [rbp - 0x60], 8
jb 0x1401505a0
mov rcx, qword [rbp - 0x78]
call sub.mfc120u.dll_Ordinal_1486
mov eax, ebx
jmp 0x1401505a7
or eax, 0xffffffff
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140289bf0
add rsp, 0x338
pop rdi
pop rsi
pop rbx
pop rbp
ret