Function at 0x405c90
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x40d605
mov eax, dword fs:[0]
push eax
mov eax, 0x3d90
call fcn.0040cae0
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x3d88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41304c]
xor eax, esp
push eax
lea eax, [esp + 0x3da4]
mov dword fs:[0], eax
xor ebx, ebx
push 0x40f9c0
lea ecx, [esp + 0x3db8]
mov dword [esp + 0x3db0], ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x3dcc], 0x10
mov eax, dword [esp + 0x3db8]
jae 0x405d02
lea eax, [esp + 0x3db8]
push 0xfde9
lea ecx, [esp + 0x1cc]
push eax
lea eax, [esp + 0x1cc]
mov dword [esp + 0x1cc], ecx
call fcn.0040b050
lea edx, [esp + 0x14]
mov byte [esp + 0x3dac], 1
mov ecx, dword [esp + 0x1c4]
push edx
call fcn.0040aec0
mov byte [esp + 0x3dac], 3
mov eax, dword [esp + 0x1c4]
lea ecx, [esp + 0x1c8]
cmp eax, ecx
je 0x405d5f
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x31c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x406344
mov ebp, dword [sym.imp.MSVCR90.dll_wcscat_s]
test byte [esp + 0x31c], 0x10
je 0x40614a
push 0x7fc
lea ecx, [esp + 0x574]
push ebx
push ecx
mov dword [esp + 0x578], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x348]
push edx
lea eax, [esp + 0x570]
push 0x400
push eax
call ebp
mov ecx, dword [0x40fa2c]
mov dx, word [0x40fa30]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2e8], eax
mov dword [esp + 0x2ec], eax
mov dword [esp + 0x2f0], eax
mov dword [esp + 0x2f4], eax
mov dword [esp + 0x2c8], ecx
mov dword [esp + 0x2ce], eax
mov dword [esp + 0x2d2], eax
mov dword [esp + 0x2d6], eax
mov word [esp + 0x2da], ax
mov dword [esp + 0x2e4], 0x2e
mov word [esp + 0x2cc], dx
lea ecx, [esp + 0x2e4]
lea eax, [esp + 0x56c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405e66
cmp dx, bx
je 0x405e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405e66
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405e40
xor eax, eax
jmp 0x405e6b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406322
lea ecx, [esp + 0x2c8]
lea eax, [esp + 0x56c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405ea7
cmp dx, bx
je 0x405ea3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405ea7
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405e81
xor eax, eax
jmp 0x405eac
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406322
push 0x1008
lea eax, [esp + 0x2d94]
push ebx
push eax
mov dword [esp + 0x2d98], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1008
lea ecx, [esp + 0xd74]
push ebx
push ecx
mov dword [esp + 0xd78], ebx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x20]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405ef7
sub eax, esi
sar eax, 1
lea eax, [eax + eax - 2]
push eax
push edx
lea ecx, [esp + 0xd74]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea edx, [esp + 0x348]
push edx
lea eax, [esp + 0xd70]
push 0x806
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0xd6c]
push ecx
lea edx, [esp + 0x2d90]
push 0x806
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x3c]
push 0xfde9
lea ecx, [esp + 0x2d90]
mov dword [esp + 0x3c], eax
push ecx
lea eax, [esp + 0x40]
call fcn.0040af90
lea edx, [esp + 0x1c]
mov byte [esp + 0x3dac], 4
mov ecx, dword [esp + 0x38]
push edx
call fcn.0040ae00
mov byte [esp + 0x3dac], 6
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x405fa2
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x2e8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x415dc0
mov byte [esp + 0x3dcc], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea esi, [esp + 0x300]
call fcn.00407e60
add esp, 0x1c
mov eax, esi
push 0x40f70a
push eax
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x40601e
push 0x1d
sub esp, 0x1c
mov edx, esi
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00408120
inc dword [0x415a44]
add esp, 0x20
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x144]
push 0xfde9
lea ecx, [esp + 0xd70]
mov dword [esp + 0x144], eax
push ecx
lea eax, [esp + 0x148]
call fcn.0040af90
lea edx, [esp + 0x20]
mov byte [esp + 0x3dac], 8
mov ecx, dword [esp + 0x140]
push edx
call fcn.0040ae00
mov byte [esp + 0x3dac], 0xa
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
je 0x406082
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40f70c
lea ecx, [esp + 0x2cc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x3dac], 0xb
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x2cc]
call dword [0x40f160]
sub esp, 0x1c
lea eax, [esp + 0x2e4]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00405c90
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x403
lea edi, [esp + 0xd88]
rep stosd dword es:[edi], eax
add esp, 0x1c
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x3dac], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x3dac], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406124
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x3dac], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x3dac], 3
mov eax, dword [esp + 0x1c]
jmp 0x406306
mov eax, dword [esp + 0x338]
cmp eax, ebx
mov ecx, dword [esp + 0x33c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jl 0x406322
jg 0x406172
cmp ecx, ebx
jbe 0x406322
push 0x1008
lea ecx, [esp + 0x1d84]
push ebx
push ecx
mov dword [esp + 0x1d88], ebx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x20]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
jmp 0x4061a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4061a0
sub eax, esi
sar eax, 1
lea eax, [eax + eax - 2]
push eax
push edx
lea ecx, [esp + 0x1d84]
push ecx
call sub.MSVCR90.dll_memcpy
lea eax, [esp + 0x354]
add esp, 0xc
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4061d0
lea edi, [esp + 0x1d7c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4061f0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4061f0
fild qword [esp + 0x2c]
mov ecx, eax
shr ecx, 2
mov esi, edx
fadd qword [0x415c58]
rep movsd dword es:[edi], dword [esi]
fstp qword [0x415c58]
mov ecx, eax
push 0xfde9
lea eax, [esp + 0x1d80]
and ecx, 3
lea edx, [esp + 0xc4]
push eax
lea eax, [esp + 0xc4]
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0xc4], edx
call fcn.0040af90
lea ecx, [esp + 0x24]
mov byte [esp + 0x3dac], 0xc
push ecx
mov ecx, dword [esp + 0xc0]
call fcn.0040ae00
mov byte [esp + 0x3dac], 0xe
mov eax, dword [esp + 0xbc]
lea edx, [esp + 0xc0]
cmp eax, edx
je 0x406280
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x304]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.1llll
lea ecx, [esp + 0x304]
mov byte [esp + 0x3db0], 0xf
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x40fa3c
lea ecx, [esp + 0x304]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x1c
sub esp, 0x1c
lea edx, [esp + 0x320]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00408120
inc dword [0x41593c]
add esp, 0x20
lea ecx, [esp + 0x300]
mov byte [esp + 0x3dac], 0xe
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x3dac], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x31c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d85
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x3dac], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40636b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3db4]
mov dword [esp + 0x3dac], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x3da4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3d88]
xor ecx, esp
call fcn.0040c106
add esp, 0x3d9c
ret