Function at 0x1400789e8
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 [0x14017a140]
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, [0x140183c00]
mov rdx, qword [0x140182210]
lea rcx, [rbp - 0x50]
call fcn.140003374
nop
cmp qword [rdi + 0x10], r15
je 0x140078cb0
lea r13d, [r15 + 7]
mov rdx, rdi
cmp qword [rbx + 0x10], r15
jne 0x140078aab
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.140003cb8
lea rax, [rsp + 0x50]
lea ebx, [r15 + 1]
jmp 0x140078abd
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.140013b2c
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.14000c4dc
nop
test bl, 2
je 0x140078b00
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140003bb4
nop
test bl, 1
je 0x140078b1b
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140003bb4
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.1400037a4
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 0x140078c77
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.1400037a4
test byte [rbp + 0x50], 0x10
jne 0x140078c49
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 0x140078bc2
mov rax, r15
jmp 0x140078bcb
lea rcx, [rbp + 0x7c]
call fcn.1400c2d80
mov r8, rax
lea rdx, [rbp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.140003a2c
nop
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140013b2c
nop
mov rsi, qword [r14]
mov r9, rax
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.140010278
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140078c5f
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.140003bb4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140003bb4
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140078c6c
jmp 0x140078b92
lea rcx, str.list_T__too_long
call fcn.14009b93c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140078ca0
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.1400037a4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140003bb4
nop
lea rcx, [rbp - 0x50]
call fcn.1400034bc
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400b9f80
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret