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

Disassembly:
push 0xffffffffffffffff
push 0x40d30e
mov eax, dword fs:[0]
push eax
mov eax, 0x33f8
call fcn.0040cb20
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0x33f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413018]
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 0x4084e2
lea eax, [esp + 0x3420]
push 0xfde9
lea ecx, [esp + 0x140]
push eax
lea eax, [esp + 0x140]
mov dword [esp + 0x140], ecx
call fcn.0040b090
lea edx, [esp + 0x14]
mov byte [esp + 0x3414], 2
mov ecx, dword [esp + 0x138]
push edx
call fcn.0040aee0
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x13c]
cmp eax, ecx
je 0x40853f
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 0x408c82
nop
test byte [esp + 0x274], 0x10
je 0x408800
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 [0x40fa34]
mov dx, word [0x40fa38]
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 0x408620
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408646
test dx, dx
je 0x408642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408646
add eax, 4
add ecx, 4
test dx, dx
jne 0x408620
xor eax, eax
jmp 0x40864b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408c5c
lea ecx, [esp + 0x4c4]
lea eax, [esp + 0xbf0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408687
test dx, dx
je 0x408683
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408687
add eax, 4
add ecx, 4
test dx, dx
jne 0x408661
xor eax, eax
jmp 0x40868c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408c5c
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 0x4086c0
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 0x40fabc
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.0040afd0
lea edx, [esp + 0x24]
mov byte [esp + 0x3414], 5
mov ecx, dword [esp + 0x30]
push edx
call fcn.0040ae40
mov byte [esp + 0x3414], 7
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x408768
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40f714
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 [0x40f1b8]
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.00408480
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 0x408c40
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 0x408840
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.0040afd0
lea eax, [esp + 0x1c]
mov byte [esp + 0x3414], 0xa
mov ecx, dword [esp + 0x30]
push eax
call fcn.0040ae40
mov byte [esp + 0x3414], 0xc
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4088d2
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 0x4088f8
lea edi, [esp + 0x9d4]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x408910
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408910
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 0x408c34
jg 0x408938
test ebx, ebx
jbe 0x408c34
cmp dword [esp + 0x3450], 0x10
mov eax, dword [esp + 0x343c]
jae 0x408950
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 0x408c34
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 0x4089d3
push esi
lea edi, [esp + 0x4dc]
call fcn.00409ff0
add esp, 4
test eax, eax
je 0x4089d3
mov edx, edi
push edx
push 0x40f9cc
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 0x408a8a
jg 0x408a0c
cmp ebx, 0x400
jbe 0x408a8a
test ebp, ebp
jl 0x408a52
jg 0x408a1a
cmp ebx, 0x100000
jbe 0x408a52
mov esi, dword [0x416100]
mov edi, 0x10
cmp dword [0x416114], edi
jae 0x408a32
mov esi, 0x416100
push 0
push 0x100000
push ebp
push ebx
call fcn.0040cc10
push edx
push eax
push esi
push str._s_ld_MB
lea edx, [esp + 0x5e4]
push edx
jmp 0x408ab1
mov esi, dword [0x416100]
mov edi, 0x10
cmp dword [0x416114], edi
jae 0x408a6a
mov esi, 0x416100
push 0
push 0x400
push ebp
push ebx
call fcn.0040cc10
push edx
push eax
push esi
push str._s_ld_KB
lea eax, [esp + 0x5e4]
push eax
jmp 0x408ab1
mov eax, dword [0x416100]
mov edi, 0x10
cmp dword [0x416114], edi
jae 0x408aa1
mov eax, 0x416100
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 [0x4160e4]
add esp, 0x14
cmp dword [0x4160f8], edi
jae 0x408acc
mov eax, 0x4160e4
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ad0
lea edi, [esp + 0x5d4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ae1
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 0x408b02
lea edi, [esp + 0x5d4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408b15
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.0040afd0
lea ecx, [esp + 0x18]
mov byte [esp + 0x3414], 0xd
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.0040ae40
mov byte [esp + 0x3414], 0xf
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0xb8]
cmp eax, edx
je 0x408b8f
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40f714
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.00408140
inc dword [0x415518]
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 0x408c34
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 0x408c5c
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 0x408560
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [0x415518]
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 0x408cb0
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.0040b9fa
add esp, 0x3404
ret