Function at 0x140022d60
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 + 0x3c0], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov r14, r9
mov r12, r8
mov qword [rsp + 0x60], r8
mov r15, rdx
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_280], rdx
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov rdi, qword [r8 + 0x10]
cmp qword [r8 + 8], rdi
jbe 0x140022dd0
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [r12 + 8]
cmp rsi, qword [r12 + 0x10]
jbe 0x140022de2
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movabs r13, 0x6666666666666667
cmp rsi, rdi
je 0x140022e5a
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 0x140022e36
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 0x140022e20
mov rsi, qword [r12 + 0x10]
mov rdi, rbp
cmp rbp, rsi
je 0x140022e55
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 0x140022e43
mov qword [r12 + 0x10], rbp
mov rdi, qword [r14 + 0x10]
cmp qword [r14 + 8], rdi
jbe 0x140022e6a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [r14 + 8]
cmp rsi, qword [r14 + 0x10]
jbe 0x140022e7a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rsi, rdi
je 0x140022ee8
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 0x140022ec6
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 0x140022eb0
mov rsi, qword [r14 + 0x10]
mov rdi, rbp
cmp rbp, rsi
je 0x140022ee4
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 0x140022ed2
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, [0x1403b5bbc]
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 0x140022f1f
lea rdx, [0x1403b5bbc]
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 0x140022f54
mov rdx, r8
jmp 0x140022f6e
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 0x140023446
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 0x140022fe0
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 0x140022feb
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, [0x1403b6c3c]
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 0x140023406
test eax, eax
je 0x140023402
lea rsi, [rsp + reloc.MFC80U.DLL_Ordinal_332]
lea rdi, [0x1403b6c40]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1400233ec
lea rsi, [rsp + reloc.MFC80U.DLL_Ordinal_332]
lea rdi, [0x1403b6c44]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1400233ec
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 0x1400232fd
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400230e0
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 0x1400230eb
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, [0x1403b5bbc]
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 0x1400231b3
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 0x1400231b3
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 0x14002329a
mov rdi, rbp
cmp rsi, rbp
jbe 0x1400231cb
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 0x140023230
mov rcx, rbp
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140023230
cmp rsi, rbp
jbe 0x14002320d
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 0x140023232
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 0x140023282
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 0x140023294
cmp rax, rdx
jae 0x14002329a
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 0x1400233d6
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002332f
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 0x14002333a
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 0x140023050
lea rdx, [rsp + 0x120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x140023050
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 0x140022f40
test rdi, rdi
je 0x140023472
cmp rdi, rsi
je 0x140023467
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 0x140023450
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 + 0x3c0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret