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

Disassembly:
push 0xffffffffffffffff
push 0x40d2ee
mov eax, dword fs:[0]
push eax
mov eax, 0x33f8
call fcn.0040cae0
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x33f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41304c]
xor eax, esp
push eax
lea eax, [esp + 0x340c]
mov dword fs:[0], eax
mov dword [esp + 0x3414], 1
cmp dword [esp + 0x3434], 0x10
mov eax, dword [esp + 0x3420]
jae 0x4084c2
lea eax, [esp + 0x3420]
push 0xfde9
lea ecx, [esp + 0x140]
push eax
lea eax, [esp + 0x140]
mov dword [esp + 0x140], ecx
call fcn.0040b050
lea edx, [esp + 0x14]
mov byte [esp + 0x3414], 2
mov ecx, dword [esp + 0x138]
push edx
call fcn.0040aec0
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x13c]
cmp eax, ecx
je 0x40851f
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x274]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x408c62
nop
test byte [esp + 0x274], 0x10
je 0x4087e0
push 0x7fc
lea ecx, [esp + 0xbf8]
push 0
push ecx
mov dword [esp + 0xbfc], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0xc00]
push 0x400
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
mov ecx, dword [0x40fa2c]
mov dx, word [0x40fa30]
add esp, 0x18
xor eax, eax
mov dword [esp + 0x240], eax
mov dword [esp + 0x244], eax
mov dword [esp + 0x248], eax
mov dword [esp + 0x24c], eax
mov dword [esp + 0x4c4], ecx
mov dword [esp + 0x4ca], eax
mov dword [esp + 0x4ce], eax
mov dword [esp + 0x4d2], eax
mov word [esp + 0x4d6], ax
mov dword [esp + 0x23c], 0x2e
mov word [esp + 0x4c8], dx
lea ecx, [esp + 0x23c]
lea eax, [esp + 0xbf0]
jmp 0x408600
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408626
test dx, dx
je 0x408622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408626
add eax, 4
add ecx, 4
test dx, dx
jne 0x408600
xor eax, eax
jmp 0x40862b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408c3c
lea ecx, [esp + 0x4c4]
lea eax, [esp + 0xbf0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408667
test dx, dx
je 0x408663
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408667
add eax, 4
add ecx, 4
test dx, dx
jne 0x408641
xor eax, eax
jmp 0x40866c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408c3c
push 0x1008
lea eax, [esp + 0x2404]
push 0
push eax
mov dword [esp + 0x2408], 0
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x20]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4086a0
sub eax, esi
sar eax, 1
lea ecx, [eax + eax - 2]
push ecx
push edx
lea edx, [esp + 0x2404]
push edx
call sub.MSVCR90.dll_memcpy
mov esi, dword [sym.imp.MSVCR90.dll_wcscat_s]
lea eax, [esp + 0x2ac]
push eax
lea ecx, [esp + 0x240c]
push 0x806
push ecx
call esi
push 0x40fab4
lea edx, [esp + 0x2418]
push 0x806
push edx
call esi
add esp, 0x24
lea eax, [esp + 0x34]
push 0xfde9
lea ecx, [esp + 0x2400]
mov dword [esp + 0x34], eax
push ecx
lea eax, [esp + 0x38]
call fcn.0040af90
lea edx, [esp + 0x24]
mov byte [esp + 0x3414], 5
mov ecx, dword [esp + 0x30]
push edx
call fcn.0040ae00
mov byte [esp + 0x3414], 7
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x408748
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40f70c
lea ecx, [esp + 0x240]
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 + 0x3414], 8
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x240]
call dword [0x40f160]
sub esp, 0x1c
lea eax, [esp + 0x3454]
mov ecx, esp
mov dword [esp + 0x48], 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__]
sub esp, 0x1c
lea edx, [esp + 0x274]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov byte [esp + 0x3450], 9
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__]
mov byte [esp + 0x344c], 8
call fcn.00408460
add esp, 0x38
lea ecx, [esp + 0x23c]
mov byte [esp + 0x3414], 7
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 + 0x3414], 4
mov eax, dword [esp + 0x24]
jmp 0x408c20
mov ebx, dword [esp + 0x294]
mov ebp, dword [esp + 0x290]
push 0x1008
lea ecx, [esp + 0x13f8]
push 0
push ecx
mov dword [esp + 0x13fc], 0
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x20]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408820
sub eax, esi
sar eax, 1
lea eax, [eax + eax - 2]
push eax
push edx
lea ecx, [esp + 0x13f8]
push ecx
call sub.MSVCR90.dll_memcpy
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0x1400]
push 0x806
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
add esp, 0x18
push 0xfde9
lea edx, [esp + 0x13f4]
lea ecx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
call fcn.0040af90
lea eax, [esp + 0x1c]
mov byte [esp + 0x3414], 0xa
mov ecx, dword [esp + 0x30]
push eax
call fcn.0040ae00
mov byte [esp + 0x3414], 0xc
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4088b2
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor edx, edx
push 0x21a
push edx
lea eax, [esp + 0x9de]
push eax
mov word [esp + 0x9e0], dx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4088d8
lea edi, [esp + 0x9d4]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x4088f0
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4088f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
jl 0x408c14
jg 0x408918
test ebx, ebx
jbe 0x408c14
cmp dword [esp + 0x3450], 0x10
mov eax, dword [esp + 0x343c]
jae 0x408930
lea eax, [esp + 0x343c]
push eax
lea ecx, [esp + 0x9d8]
push ecx
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x408c14
xor edx, edx
push 0xf8
push edx
lea eax, [esp + 0x4e2]
push eax
mov word [esp + 0x4e4], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [esp + 0x1408]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4089b3
push esi
lea edi, [esp + 0x4dc]
call fcn.00409fc0
add esp, 4
test eax, eax
je 0x4089b3
mov edx, edi
push edx
push 0x40f9c4
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x5de]
push ecx
mov word [esp + 0x5e0], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
test ebp, ebp
jl 0x408a6a
jg 0x4089ec
cmp ebx, 0x400
jbe 0x408a6a
test ebp, ebp
jl 0x408a32
jg 0x4089fa
cmp ebx, 0x100000
jbe 0x408a32
mov esi, dword [0x4160c8]
mov edi, 0x10
cmp dword [0x4160dc], edi
jae 0x408a12
mov esi, 0x4160c8
push 0
push 0x100000
push ebp
push ebx
call fcn.0040cbe0
push edx
push eax
push esi
push str._s_ld_MB
lea edx, [esp + 0x5e4]
push edx
jmp 0x408a91
mov esi, dword [0x4160c8]
mov edi, 0x10
cmp dword [0x4160dc], edi
jae 0x408a4a
mov esi, 0x4160c8
push 0
push 0x400
push ebp
push ebx
call fcn.0040cbe0
push edx
push eax
push esi
push str._s_ld_KB
lea eax, [esp + 0x5e4]
push eax
jmp 0x408a91
mov eax, dword [0x4160c8]
mov edi, 0x10
cmp dword [0x4160dc], edi
jae 0x408a81
mov eax, 0x4160c8
push ebp
push ebx
push eax
push str._s__ld_
lea ecx, [esp + 0x5e4]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [0x4160ac]
add esp, 0x14
cmp dword [0x4160c0], edi
jae 0x408aac
mov eax, 0x4160ac
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ab0
lea edi, [esp + 0x5d4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ac1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x4d8]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408ae2
lea edi, [esp + 0x5d4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408af5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0xfde9
lea eax, [esp + 0x13f4]
and ecx, 3
lea edx, [esp + 0xbc]
push eax
lea eax, [esp + 0xbc]
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0xbc], edx
call fcn.0040af90
lea ecx, [esp + 0x18]
mov byte [esp + 0x3414], 0xd
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.0040ae00
mov byte [esp + 0x3414], 0xf
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0xb8]
cmp eax, edx
je 0x408b6f
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40f70c
lea ecx, [esp + 0x25c]
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 + 0x3414], 0x10
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x25c]
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__]
lea ecx, [esp + 0x5d4]
push ecx
lea ecx, [esp + 0x25c]
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 7
sub esp, 0x1c
lea edx, [esp + 0x278]
mov ecx, esp
mov dword [esp + 0x48], 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 [0x415514]
add esp, 0x20
lea ecx, [esp + 0x258]
mov byte [esp + 0x3414], 0xf
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 + 0x3414], 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408540
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [0x415514]
mov byte [esp + 0x3414], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x341c]
mov byte [esp + 0x3414], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3438]
mov dword [esp + 0x3414], 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 eax, esi
mov ecx, dword [esp + 0x340c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x33f4]
xor ecx, esp
call fcn.0040c106
add esp, 0x3404
ret