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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x348]
sub rsp, 0x430
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rsi, r9
mov rdi, r8
xor eax, eax
mov ebx, eax
mov dword [rbp + 0x358], eax
cmp edx, 2
jne 0x1400aa44d
mov dword [rbp + 0x10], eax
mov qword [rbp + 8], rax
mov qword [rbp], rax
lea rdx, [rbp]
mov rcx, r8
call fcn.1400b6350
mov rdi, qword [rbp + 8]
test eax, eax
je 0x1400aa426
mov rdx, rdi
test rsi, rsi
cmovne rdx, rsi
test rdx, rdx
je 0x1400aa426
cmp word [rdx], 0
je 0x1400aa426
mov rcx, qword [rbp + 0x350]
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400aa3f0
mov dword [0x1401712a8], 0x10000
jmp 0x1400aa426
cmp dword [rcx], 2
je 0x1400aa401
mov dword [0x1401712a8], 0x80000
jmp 0x1400aa426
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8, qword [rbp + 0x360]
mov rcx, qword [rcx + 8]
call fcn.1400f2c70
mov dword [0x1401712a8], eax
test eax, eax
je 0x1400aa42b
mov ebx, 3
test rdi, rdi
je 0x1400aa446
mov r8, qword [rbp]
xor edx, edx
mov rcx, rdi
call fcn.14010ec60
mov rcx, rdi
call fcn.140108f48
mov eax, ebx
jmp 0x1400aaad3
cmp edx, 3
jne 0x1400aaad3
lea rbx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], al
lea rdx, [0x1401295d4]
test r9, r9
cmovne rdx, r9
lea rcx, [rsp + 0x40]
call fcn.140071dd0
nop
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x68], 0
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140071dd0
nop
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
xor edx, edx
mov rax, qword [rbp + 0x360]
cmp word [rax + rcx*2 - 4], 0x5c
sete dl
mov dword [rsp + 0x30], edx
test edx, edx
je 0x1400aa4dc
lea rdx, [0x1401380ac]
lea rcx, [rsp + 0x58]
call fcn.1400b6d10
mov rax, qword [rsp + 0x60]
lea rbx, [0x1401295d4]
mov rcx, rbx
test rax, rax
je 0x1400aa4fa
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
lea rdx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1400aaa62
nop word [rax + rax]
lea rsi, [rbp + 0x10c]
lea rdi, [0x14013249c]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1400aaa39
lea rsi, [rbp + 0x10c]
lea rdi, [0x14014faec]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1400aaa39
lea rsi, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
lea rdx, [0x14012fb84]
test byte [rbp + 0xe0], 0x10
je 0x1400aa7c7
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 0
mov byte [rbp - 0x38], 0
lea rcx, [rbp - 0x48]
call fcn.140071dd0
nop
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xc8]
call fcn.1400b6de0
nop
lea r8, [rbp + 0x10c]
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.1400b6ed0
mov rdi, rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x10c]
cmp dword [rsp + 0x30], 0
lea rax, [0x1401295d4]
cmove rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140071dd0
nop
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], 0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp + 0x360]
lea rcx, [rbp - 0x78]
call fcn.140071dd0
nop
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x98]
call fcn.1400b6de0
nop
lea r8, [0x14012fb84]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.1400b6ed0
nop
mov rcx, qword [rdi + 8]
mov r9, rbx
test rcx, rcx
je 0x1400aa64a
mov rcx, qword [rcx]
test rcx, rcx
cmovne r9, rcx
mov rax, qword [rax + 8]
mov r8, rbx
test rax, rax
je 0x1400aa660
mov rax, qword [rax]
test rax, rax
cmovne r8, rax
mov edx, 3
mov rcx, qword [rbp + 0x350]
call fcn.1400aa360
mov dword [rbp + 0x358], eax
mov qword [rbp + 0x18], rsi
mov rdi, qword [rbp + 0x20]
test rdi, rdi
je 0x1400aa6a5
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa6a5
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa69c
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp + 0x98], rsi
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
je 0x1400aa6d9
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa6d9
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa6d0
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp - 0x78], rsi
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400aa70b
mov eax, dword [rcx + 0x20]
dec eax
mov dword [rcx + 0x20], eax
jne 0x1400aa70b
mov rdi, qword [rbp - 0x70]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa702
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp - 0x18], rsi
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400aa73d
mov eax, dword [rcx + 0x20]
dec eax
mov dword [rcx + 0x20], eax
jne 0x1400aa73d
mov rdi, qword [rbp - 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa734
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp + 0x68], rsi
mov rdi, qword [rbp + 0x70]
test rdi, rdi
je 0x1400aa76b
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa76b
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa762
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp + 0xc8], rsi
mov rdi, qword [rbp + 0xd0]
test rdi, rdi
je 0x1400aa79f
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa79f
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa796
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp - 0x48], rsi
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400aaa2b
mov eax, dword [rcx + 0x20]
dec eax
mov dword [rcx + 0x20], eax
jne 0x1400aaa2b
mov rdi, qword [rbp - 0x40]
jmp 0x1400aaa15
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 0
mov byte [rbp - 0x20], 0
lea rcx, [rbp - 0x30]
call fcn.140071dd0
nop
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xb0]
call fcn.1400b6de0
nop
lea r8, [rbp + 0x10c]
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.1400b6ed0
mov rdi, rax
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 0
mov byte [rbp - 0x50], 0
lea rdx, [0x14012fb84]
cmp dword [rsp + 0x30], 0
lea rax, [0x1401295d4]
cmovne rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140071dd0
nop
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp + 0x360]
lea rcx, [rsp + 0x70]
call fcn.140071dd0
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.1400b6de0
nop
lea r8, [rbp + 0x10c]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400b6ed0
nop
mov rcx, qword [rdi + 8]
mov r9, rbx
test rcx, rcx
je 0x1400aa8a2
mov rcx, qword [rcx]
test rcx, rcx
cmovne r9, rcx
mov rax, qword [rax + 8]
mov r8, rbx
test rax, rax
je 0x1400aa8b8
mov rax, qword [rax]
test rax, rax
cmovne r8, rax
mov edx, 2
mov rcx, qword [rbp + 0x350]
call fcn.1400aa360
mov dword [rbp + 0x358], eax
mov qword [rbp + 0x30], rsi
mov rdi, qword [rbp + 0x38]
test rdi, rdi
je 0x1400aa8fd
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa8fd
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa8f4
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp + 0x50], rsi
mov rdi, qword [rbp + 0x58]
test rdi, rdi
je 0x1400aa92b
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa92b
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa922
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rsp + 0x70], rsi
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400aa960
mov eax, dword [rcx + 0x20]
dec eax
mov dword [rcx + 0x20], eax
jne 0x1400aa960
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa957
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp - 0x60], rsi
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400aa992
mov eax, dword [rcx + 0x20]
dec eax
mov dword [rcx + 0x20], eax
jne 0x1400aa992
mov rdi, qword [rbp - 0x58]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa989
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp + 0x80], rsi
mov rdi, qword [rbp + 0x88]
test rdi, rdi
je 0x1400aa9c6
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa9c6
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa9bd
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp + 0xb0], rsi
mov rdi, qword [rbp + 0xb8]
test rdi, rdi
je 0x1400aa9fa
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aa9fa
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aa9f1
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rbp - 0x30], rsi
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400aaa2b
mov eax, dword [rcx + 0x20]
dec eax
mov dword [rcx + 0x20], eax
jne 0x1400aaa2b
mov rdi, qword [rbp - 0x28]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aaa23
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
cmp dword [rbp + 0x358], 0
jne 0x1400aaa56
mov rax, qword [rsp + 0x38]
lea rdx, [rbp + 0xe0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov rax, qword [rsp + 0x38]
jne 0x1400aa520
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rsi, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov qword [rsp + 0x58], rsi
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400aaa99
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x1400aaa99
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aaa90
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
nop
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400aaacd
mov eax, dword [rcx + 0x20]
dec eax
mov dword [rcx + 0x20], eax
jne 0x1400aaacd
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400aaac5
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
mov eax, dword [rbp + 0x358]
mov rbx, qword [rsp + 0x468]
add rsp, 0x430
pop rdi
pop rsi
pop rbp
ret