Function at 0x140162c50
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa90]
sub rsp, 0xb90
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xbe0], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0xa80], rax
mov r15, rdx
movzx r13d, cx
movsd xmm0, qword [0x14035cbc0]
movsd qword [rbp + 0x430], xmm0
movzx eax, word [0x14035cbc8]
mov word [rbp + 0x438], ax
mov word [rbp + 0x430], cx
mov dword [rbp + 0x1e0], 0
xor edx, edx
mov r8d, 0x24c
lea rcx, [rbp + 0x1e4]
call fcn.1402c5760
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x140162d00
xor al, al
jmp 0x140162f71
xor dil, dil
mov eax, dword [rbp + 0x1e0]
and eax, 0x16
cmp al, 0x16
jne 0x140162f4c
movzx r14d, r13w
lea rax, [rbp + 0x20c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str._c:_s
mov edx, 0x109
lea rcx, [rbp + 0x440]
call fcn.1402c06b8
mov dword [rbp - 0x70], 0
xor edx, edx
mov r8d, 0x24c
lea rcx, [rbp - 0x6c]
call fcn.1402c5760
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140162f4c
lea r12, [0x14034d1a0]
nop dword [rax]
test byte [rbp - 0x70], 0x10
je 0x140162f24
cmp word [rbp - 0x44], 0x2e
je 0x140162f24
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str._c:_s_s
mov edx, 0x20d
lea rcx, [rbp + 0x660]
call fcn.1402c06b8
lea rdx, str.S_1_5_18
lea rcx, [rbp - 0x44]
call fcn.1402bcf6c
test eax, eax
je 0x140162e8d
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x48]
xor edx, edx
lea rcx, [rbp + 0x660]
call qword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
js 0x140162f24
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [0x140306a00]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_SHBindToParent]
mov ebx, eax
test eax, eax
js 0x140162e57
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x78]
mov r8d, 3
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetDataFromIDListW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x140162f24
mov rax, qword [rsp + 0x7c]
cmp rax, qword [0x1403069f0]
jne 0x140162f24
mov rax, qword [rbp - 0x7c]
cmp rax, qword [0x1403069f8]
jne 0x140162f24
lea rax, [rbp + 0x660]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140162ea0
xor eax, eax
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140162ebc
mov qword [rsp + 0x30], r12
jmp 0x140162ee5
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x660]
mov rcx, qword [rsp + 0x30]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
movzx eax, byte [0x14043124a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.1400eac70
nop
cmp dword [rsp + 0x38], 0
jle 0x140162f21
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
mov dil, 1
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140162d80
mov r12, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test dil, dil
jne 0x140162f64
lea rdx, [rbp + 0x1e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140162d03
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, dil
mov rcx, qword [rbp + 0xa80]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0xbe0]
add rsp, 0xb90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret