Function at 0x140022f64
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov byte [rsp + 0x30], r15b
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x29
lea r9, str.NGUtils::CFileUtils::EnumerateFiles
lea r8, [0x1405c6348]
mov rdx, qword [0x1405c6398]
lea rcx, [rbp - 0x50]
call fcn.1400169f8
nop
cmp qword [rdi + 0x10], r15
je 0x14002323b
lea r13d, [r15 + 7]
mov rdx, rdi
cmp qword [rbx + 0x10], r15
jne 0x140023027
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.14000ff84
lea rax, [rsp + 0x50]
lea ebx, [r15 + 1]
jmp 0x14002303c
xor r9d, r9d
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.140022014
nop
mov ebx, 2
mov dword [rsp + 0x40], ebx
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400111b0
nop
test bl, 2
je 0x14002307f
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.14000f964
nop
test bl, 1
je 0x14002309a
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000f964
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, str.Searching_for__s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx + 0x25]
lea rcx, [rbp - 0x50]
call fcn.140016e24
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140023202
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, str.Found_a_file__s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx + 0x2b]
lea rcx, [rbp - 0x50]
call fcn.140016e24
test byte [rbp + 0x50], 0x10
jne 0x1400231d4
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp word [rbp + 0x7c], r15w
jne 0x140023141
mov r8, r15
jmp 0x140023153
lea rax, [rbp + 0x7c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140023149
lea rdx, [rbp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.14000fde0
nop
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140022014
nop
mov rsi, qword [r14]
mov r9, rax
mov r8, qword [rsi + 8]
mov rdx, rsi
mov rcx, r14
call fcn.140023b24
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x1400231ea
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [rsi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000f964
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400231f7
jmp 0x140023111
lea rcx, str.list_T__too_long
call fcn.1400df1fc
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14002322b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
or dword [rsp + 0x20], 0xffffffff
lea r9, str.No_files_found__fileHandle___d__GetLastError___d
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx + 0x39]
lea rcx, [rbp - 0x50]
call fcn.140016e24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.14000f964
nop
lea rcx, [rbp - 0x50]
call fcn.140016b40
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400fcfd0
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret