Function at 0x140001590
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x358], rbx
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r12, r8
mov rbx, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rbp - 0x60], r13d
xor edx, edx
mov r8d, 0x24c
lea rcx, [rbp - 0x5c]
call sub.MSVCR100.dll_memset
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
lea rdx, [rdi + 0x10]
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.140001ad0
lea r8d, [r13 + 1]
lea rdx, [0x14002e908]
lea rcx, [rsp + 0x78]
call fcn.140001cd0
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.140001ad0
nop
lea r8d, [r13 + 1]
lea rdx, [0x14002ea4c]
lea rcx, [rsp + 0x50]
call fcn.140001cd0
test rbx, rbx
je 0x140001690
xor eax, eax
mov rcx, r14
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001cd0
mov rcx, r12
call fcn.1400019a0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001801
movabs r15, 0x7ffffffffffffffe
nop word [rax + rax]
test byte [rbp - 0x60], 0x10
jne 0x1400017c2
mov edi, 7
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
mov rbx, qword [rbp - 0x78]
cmp rbx, 0xffffffffffffffff
cmova rbx, r14
cmp rbx, r15
ja 0x1400017e9
cmp rbx, rdi
jbe 0x140001720
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400023a0
mov rdi, qword [rsp + 0x40]
jmp 0x140001730
test rbx, rbx
jne 0x140001733
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
test rbx, rbx
setne al
test al, al
je 0x140001780
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
cmp rdi, 8
cmovae rcx, qword [rsp + 0x28]
lea rdi, [rbx + rbx]
mov r8, rdi
call sub.MSVCR100.dll_memcpy
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov word [rax + rdi], r13w
xor eax, eax
mov rcx, r14
lea rdi, [rbp - 0x34]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x34]
lea rcx, [rsp + 0x28]
call fcn.140001cd0
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.1400018b0
nop
cmp qword [rsp + 0x40], 8
jb 0x1400017c2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x60]
call sub.MSVCR100.dll_memset
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400017f7
jmp 0x1400016d0
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x68], 8
jb 0x140001814
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp qword [rbp - 0x70], 8
jb 0x14000183a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov al, 1
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140029670
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret