Function at 0x140029670
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, qword [0x140081338]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], rdx
mov rdi, rcx
lea r15, [rcx + 4]
lea rax, [rcx + 0x2b0]
mov qword [rsp + 0x48], rax
lea r13, [rcx + 0x30]
lea rax, [rcx + 0x260]
mov qword [rsp + 0x40], rax
lea rbx, [rcx + 0x288]
lea rbp, [rsp + 0x70]
lea r14, [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400296e8
mov rcx, rbp
call fcn.140008cc0
cmp byte [rdi], 0
je 0x140029720
mov rcx, qword [rdi + 0x258]
mov rdx, r15
call r12
test eax, eax
je 0x1400297d0
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x140029873
jmp 0x140029990
mov rax, qword [rdi + 0x2c8]
cmp qword [rdi + 0x2c0], rax
je 0x140029a24
test rax, rax
jne 0x140029740
mov rax, qword [rdi + 0x2b8]
shl rax, 5
mov rcx, qword [rdi + 0x2b0]
lea rdx, [rcx + rax]
add rdx, 0xffffffffffffffe0
mov rcx, qword [rsp + 0x40]
call fcn.140008d30
mov rcx, qword [rdi + 0x2c8]
test rcx, rcx
jne 0x140029770
mov rcx, qword [rdi + 0x2b8]
add rcx, 0xffffffffffffffff
mov qword [rdi + 0x2c8], rcx
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
call fcn.140008cc0
mov rcx, qword [rsp + 0x48]
call fcn.140029d30
mov eax, dword [rdi + 0x2a8]
cmp eax, 1
je 0x1400297ed
test eax, eax
jne 0x140029816
cmp qword [rdi + 0x2a0], 7
mov rax, rbx
jbe 0x1400297b8
mov rax, qword [rdi + 0x288]
mov qword [rsp + 0x60], rax
mov rax, qword [rdi + 0x298]
mov qword [rsp + 0x68], rax
jmp 0x140029802
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140029990
lea rax, [0x140067a44]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov rcx, qword [rsp + 0x40]
mov rdx, rbp
lea r8, [rsp + 0x60]
call fcn.14000a000
jmp 0x14002981e
mov rcx, rbp
call fcn.140008b90
cmp qword [rsp + 0x88], 7
mov rcx, rbp
jbe 0x140029831
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
xor r9d, r9d
mov r8, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbp
call fcn.140008cc0
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x140029990
mov qword [rsp + 0x50], r13
mov rcx, r13
call fcn.1400478b0
mov qword [rsp + 0x58], rax
mov rcx, rbp
mov rdx, r14
call fcn.140008c10
mov rcx, rdi
mov rdx, rbp
call fcn.140029e20
test al, al
jne 0x1400296e0
mov rsi, r14
mov r14d, dword [rdi + 4]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov r8, rbp
call fcn.14000aa00
test r14b, 0x10
je 0x140029950
cmp byte [rdi + 0x280], 0
je 0x140029950
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x18], 7
mov rcx, rax
jbe 0x1400298e5
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x140029950
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.140029b20
mov rcx, qword [rdi + 0x2c8]
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
mov rdx, qword [rsp + 0x38]
call fcn.140008bb0
mov rax, qword [rdi + 0x2b8]
mov rcx, qword [rdi + 0x2c8]
add rax, 0xffffffffffffffff
cmp rcx, rax
lea rax, [rcx + 1]
mov ecx, 0
cmove rax, rcx
mov qword [rdi + 0x2c8], rax
nop word cs:[rax + rax]
and r14d, 0x10
shr r14d, 4
mov rcx, rdi
mov edx, r14d
call fcn.140029fd0
test al, al
mov r14, rsi
je 0x140029a15
mov eax, dword [rdi + 0x2a8]
cmp eax, 1
je 0x1400299e7
test eax, eax
jne 0x140029a15
jmp 0x140029a33
mov byte [rdi], 0
cmp dword [rdi + 0x2a8], 0
jne 0x1400296e8
mov rcx, qword [rdi + 0x2a0]
test rcx, rcx
je 0x1400299ce
mov rax, rbx
cmp rcx, 8
jb 0x1400299b8
mov rax, qword [rbx]
mov qword [rdi + 0x298], 1
mov dword [rax], 0x2a
jmp 0x1400296e8
mov edx, 1
mov rcx, rbx
lea r9, [0x140067a44]
call fcn.140001a00
jmp 0x1400296e8
cmp qword [rdi + 0x2a0], 8
mov rdx, rbx
jb 0x1400299f7
mov rdx, qword [rbx]
cmp qword [rsp + 0x88], 7
mov rcx, rbp
jbe 0x140029a0a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140029a33
mov rcx, qword [rsp + 0x38]
call fcn.140008cc0
jmp 0x1400296e0
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140008b90
jmp 0x140029a42
lea rcx, [rsp + 0x70]
call fcn.140008cc0
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140041210
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret