Function at 0x140035084
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 [0x140729900]
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, [0x140745918]
mov rdx, qword [0x140744c58]
lea rcx, [rbp - 0x50]
call fcn.14000a880
nop
cmp qword [rdi + 0x10], r15
je 0x140035355
lea r13d, [r15 + 7]
mov rdx, rdi
cmp qword [rbx + 0x10], r15
jne 0x140035147
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.14000a070
lea rax, [rsp + 0x50]
lea ebx, [r15 + 1]
jmp 0x14003515c
xor r9d, r9d
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.140014bfc
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.1400118f0
nop
test bl, 2
je 0x14003519f
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140009e10
nop
test bl, 1
je 0x1400351ba
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140009e10
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.14000acc0
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 0x14003531c
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.14000acc0
test byte [rbp + 0x50], 0x10
jne 0x1400352ee
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 0x140035261
mov rax, r15
jmp 0x14003526a
lea rcx, [rbp + 0x7c]
call fcn.140288ad0
mov r8, rax
lea rdx, [rbp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.140009ed0
nop
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140014bfc
nop
mov rsi, qword [r14]
mov r9, rax
mov r8, qword [rsi + 8]
mov rdx, rsi
mov rcx, r14
call fcn.140017a50
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140035304
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.140009e10
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140009e10
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140035311
jmp 0x140035231
lea rcx, str.list_T__too_long
call fcn.140282070
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140035345
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.14000acc0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140009e10
nop
lea rcx, [rbp - 0x50]
call fcn.14000a9d0
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1402812e0
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret