Function at 0x14017d740
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x380
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0x3d8], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov r14, r8
mov r12, rdx
mov qword [rsp + 0x60], rdx
mov r15, rcx
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_280], rcx
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov rdi, qword [rdx + 0x10]
cmp qword [rdx + 8], rdi
jbe 0x14017d7b0
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [r12 + 8]
cmp rsi, qword [r12 + 0x10]
jbe 0x14017d7c2
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movabs r13, 0x6666666666666667
cmp rsi, rdi
je 0x14017d83a
mov rbx, qword [r12 + 0x10]
mov rcx, rbx
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
lea rbp, [rsi + rax*8]
cmp rdi, rbx
je 0x14017d816
sub rsi, rdi
lea rcx, [rsi + rdi]
mov rdx, rdi
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
add rdi, 0x28
cmp rdi, rbx
jne 0x14017d800
mov rsi, qword [r12 + 0x10]
mov rdi, rbp
cmp rbp, rsi
je 0x14017d835
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rdi, 0x28
cmp rdi, rsi
jne 0x14017d823
mov qword [r12 + 0x10], rbp
mov rdi, qword [r14 + 0x10]
cmp qword [r14 + 8], rdi
jbe 0x14017d84a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [r14 + 8]
cmp rsi, qword [r14 + 0x10]
jbe 0x14017d85a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rsi, rdi
je 0x14017d8c8
mov rbx, qword [r14 + 0x10]
mov rcx, rbx
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
lea rbp, [rsi + rax*8]
cmp rdi, rbx
je 0x14017d8a6
sub rsi, rdi
nop
lea rcx, [rdi + rsi]
mov rdx, rdi
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
add rdi, 0x28
cmp rdi, rbx
jne 0x14017d890
mov rsi, qword [r14 + 0x10]
mov rdi, rbp
cmp rbp, rsi
je 0x14017d8c4
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rdi, 0x28
cmp rdi, rsi
jne 0x14017d8b2
mov qword [r14 + 0x10], rbp
mov rdi, qword [r15 + 0x18]
mov r8, qword [sym.imp.MSVCP80.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov r8, qword [r8]
lea rdx, [0x140366cd0]
mov rcx, r15
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
lea rcx, [rdi - 1]
cmp rax, rcx
je 0x14017d8ff
lea rdx, [0x140366cd4]
mov rcx, r15
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.1400044f0
xor r8d, r8d
mov ebp, r8d
mov dword [rsp + 0x58], r8d
movzx ebx, byte [rsp + 0x30]
nop
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
jne 0x14017d934
mov rdx, r8
jmp 0x14017d94e
mov rcx, rsi
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov r12d, ebp
cmp r12, rdx
jae 0x14017de26
mov dword [rsp + 0x120], r8d
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_588
lea rcx, [rsp + 0x124]
call sub.ntdll.dll_memset
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14017d9c0
mov rcx, qword [rsp + 0x48]
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jb 0x14017d9cb
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x40]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
lea rcx, [rsp + 0xf0]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
lea rdx, [0x140366cd8]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rcx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rcx, qword [rsp + 0xf8]
lea rdx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
mov eax, 1
cmp r13, 0xffffffffffffffff
je 0x14017dde6
test eax, eax
je 0x14017dde2
lea rsi, [rsp + reloc.MFC80U.DLL_Ordinal_332]
lea rdi, [0x140366cdc]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x14017ddcc
lea rsi, [rsp + reloc.MFC80U.DLL_Ordinal_332]
lea rdi, [0x140366ce0]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x14017ddcc
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::clear_void____ptr64]
test byte [rsp + 0x120], 0x10
je 0x14017dcdd
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14017dac0
mov rcx, qword [rsp + 0x48]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jb 0x14017dacb
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x40]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
lea rcx, [rsp + 0xc8]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_332]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str._
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x14017db93
mov rcx, rbp
sub rcx, rsi
movabs r8, 0x6666666666666667
mov rax, r8
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov rcx, qword [rsp + 0x50]
sub rcx, rsi
mov rax, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x14017db93
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x38]
lea r8, [rsp + 0xc8]
lea edx, [rax + 1]
mov rcx, rbp
call fcn.140004e90
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x48], rdx
jmp 0x14017dc7a
mov rdi, rbp
cmp rsi, rbp
jbe 0x14017dbab
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
test rsi, rsi
je 0x14017dc10
mov rcx, rbp
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14017dc10
cmp rsi, rbp
jbe 0x14017dbed
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rdi, rsi
movabs rax, 0x6666666666666667
imul rdi
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x14017dc12
xor edi, edi
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x80], xmm0
lea r9, [rsp + 0xc8]
mov r8d, 1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.140004870
mov rdx, qword [rsp + 0x40]
mov rsi, rdx
mov rcx, qword [rsp + 0x48]
cmp rdx, rcx
jbe 0x14017dc62
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
lea rax, [rdi + rdi*4]
lea rax, [rsi + rax*8]
cmp rax, rcx
ja 0x14017dc74
cmp rax, rdx
jae 0x14017dc7a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov r8, qword [r15 + 0x18]
mov r9, qword [rsp + 0xe0]
sub r9, r8
add r9, 1
add r8, 0xffffffffffffffff
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
lea rcx, [rsp + 0xc8]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
lea rdx, [rsp + 0xc8]
mov rcx, r14
call fcn.1400044f0
jmp 0x14017ddb6
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14017dd0f
mov rcx, qword [rsp + 0x48]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jb 0x14017dd1a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x40]
lea rax, [r12 + r12*4]
lea rdx, [rdi + rax*8]
lea rcx, [rsp + 0xc8]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_332]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x60]
call fcn.1400044f0
mov r8, qword [r15 + 0x18]
mov r9, qword [rsp + 0xe0]
sub r9, r8
add r9, 1
add r8, 0xffffffffffffffff
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
lea rcx, [rsp + 0xc8]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
lea rdx, [rsp + 0xc8]
mov rcx, r14
call fcn.1400044f0
lea rdx, [rsp + 0x120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x14017da30
lea rdx, [rsp + 0x120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x14017da30
mov ebp, dword [rsp + 0x58]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add ebp, 1
mov dword [rsp + 0x58], ebp
movabs r13, 0x6666666666666667
xor r8d, r8d
jmp 0x14017d920
test rdi, rdi
je 0x14017de52
cmp rdi, rsi
je 0x14017de47
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rdi, 0x28
cmp rdi, rsi
jne 0x14017de30
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
xor r8d, r8d
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], r8
mov rcx, r15
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x3d8]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret