Function at 0x14001367c
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 [0x1406ca7c8]
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, [0x1406e4ea8]
mov rdx, qword [0x1406e5290]
lea rcx, [rbp - 0x50]
call fcn.14000a0b4
nop
cmp qword [rdi + 0x10], r15
je 0x140013953
lea r13d, [r15 + 7]
mov rdx, rdi
cmp qword [rbx + 0x10], r15
jne 0x14001373f
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.1400092e8
lea rax, [rsp + 0x50]
lea ebx, [r15 + 1]
jmp 0x140013754
xor r9d, r9d
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.140012940
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.140009900
nop
test bl, 2
je 0x140013797
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140008e38
nop
test bl, 1
je 0x1400137b2
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140008e38
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.WS2_32.dll_recv
lea r8d, [rdx + 0x25]
lea rcx, [rbp - 0x50]
call fcn.14000a4e0
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 0x14001391a
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, str.Found_a_file__s
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx + 0x2b]
lea rcx, [rbp - 0x50]
call fcn.14000a4e0
test byte [rbp + 0x50], 0x10
jne 0x1400138ec
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 0x140013859
mov r8, r15
jmp 0x14001386b
lea rax, [rbp + 0x7c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140013861
lea rdx, [rbp + 0x7c]
lea rcx, [rsp + 0x50]
call fcn.140009144
nop
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140012940
nop
mov rsi, qword [r14]
mov r9, rax
mov r8, qword [rsi + 8]
mov rdx, rsi
mov rcx, r14
call fcn.14001436c
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140013902
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.140008e38
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140008e38
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001390f
jmp 0x140013829
lea rcx, str.list_T__too_long
call fcn.14024e2f8
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140013943
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.WS2_32.dll_recv
lea r8d, [rdx + 0x39]
lea rcx, [rbp - 0x50]
call fcn.14000a4e0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140008e38
nop
lea rcx, [rbp - 0x50]
call fcn.14000a1fc
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14024cd60
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret