Function at 0x140006b00
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x368], rbx
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, r8
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rbx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x28], r13
lea ecx, [r13 + 0x10]
call qword [sym.imp.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
test rax, rax
je 0x140006dfe
mov qword [rsp + 0x28], rax
mov qword [rax], r13
mov qword [rax + 8], r13
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov qword [rax], rcx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140006bcf
lea rcx, [rax - 1]
cmp rax, rcx
ja 0x140006bb9
lea rcx, str.invalid_string_position
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
cmp qword [rbx + 0x18], 8
jb 0x140006bc5
mov rax, qword [rbx]
jmp 0x140006bc8
mov rax, rbx
cmp word [rax + rcx*2], 0x5c
je 0x140006be4
mov r8d, 1
lea rdx, [0x14002e908]
mov rcx, rbx
call fcn.140001cd0
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14000b280
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x140006c82
cmp qword [rbp - 0x78], 8
jb 0x140006c24
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
cmp qword [rdi + 0x18], 8
jae 0x140006c57
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_memmove]
jmp 0x140006c62
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
mov qword [rdi], r13
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x80], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x78], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
cmp qword [rbp - 0x50], 8
jb 0x140006c93
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov dword [rbp - 0x40], r13d
xor edx, edx
mov r8d, 0x24c
lea rcx, [rbp - 0x3c]
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006d40
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.140009620
nop
cmp qword [rbp - 0x78], 8
jb 0x140006ceb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, [rsp + 0x28]
call fcn.14000a740
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x28], r13
cmp qword [rsi + 0x18], 8
jb 0x140006d27
mov rcx, qword [rsi]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r13
mov word [rsi], r13w
jmp 0x140006e2e
test byte [rbp - 0x40], 0x10
jne 0x140006d76
lea r8, [rbp - 0x14]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14000b340
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400096d0
nop
cmp qword [rbp - 0x50], 8
jb 0x140006d76
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140006d40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.140009620
nop
cmp qword [rbp - 0x78], 8
jb 0x140006db0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, [rsp + 0x28]
call fcn.14000a740
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x28], r13
cmp qword [rsi + 0x18], 8
jb 0x140006dec
mov rcx, qword [rsi]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r13
mov word [rsi], r13w
jmp 0x140006e2e
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x68], r11
lea rdx, [0x14003f9c8]
lea rcx, [rbp - 0x68]
call sub.MSVCR100.dll__CxxThrowException
nop
cmp qword [rbx + 0x18], 8
jb 0x140006e3e
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov rax, r12
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140029670
mov rbx, qword [rsp + 0x368]
add rsp, 0x320
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret