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

Disassembly:
push 0xffffffffffffffff
push 0x40c94e
mov eax, dword fs:[0]
push eax
mov eax, 0x33f8
call fcn.0040c1c0
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x33f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x412018]
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 0x408102
lea eax, [esp + 0x3420]
push 0xfde9
lea ecx, [esp + 0x140]
push eax
lea eax, [esp + 0x140]
mov dword [esp + 0x140], ecx
call fcn.0040a750
lea edx, [esp + 0x14]
mov byte [esp + 0x3414], 2
mov ecx, dword [esp + 0x138]
push edx
call fcn.0040a5c0
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x13c]
cmp eax, ecx
je 0x40815f
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 0x4088a2
nop
test byte [esp + 0x274], 0x10
je 0x408420
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 [0x40e9e0]
mov dx, word [0x40e9e4]
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 0x408240
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408266
test dx, dx
je 0x408262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408266
add eax, 4
add ecx, 4
test dx, dx
jne 0x408240
xor eax, eax
jmp 0x40826b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40887c
lea ecx, [esp + 0x4c4]
lea eax, [esp + 0xbf0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4082a7
test dx, dx
je 0x4082a3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4082a7
add eax, 4
add ecx, 4
test dx, dx
jne 0x408281
xor eax, eax
jmp 0x4082ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40887c
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 0x4082e0
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 0x40ea78
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.0040a690
lea edx, [esp + 0x24]
mov byte [esp + 0x3414], 5
mov ecx, dword [esp + 0x30]
push edx
call fcn.0040a500
mov byte [esp + 0x3414], 7
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x408388
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40e6c4
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 [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__]
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.004080a0
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 0x408860
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 0x408460
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.0040a690
lea eax, [esp + 0x1c]
mov byte [esp + 0x3414], 0xa
mov ecx, dword [esp + 0x30]
push eax
call fcn.0040a500
mov byte [esp + 0x3414], 0xc
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4084f2
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 0x408518
lea edi, [esp + 0x9d4]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x408530
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408530
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 0x408854
jg 0x408558
test ebx, ebx
jbe 0x408854
cmp dword [esp + 0x3450], 0x10
mov eax, dword [esp + 0x343c]
jae 0x408570
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 0x408854
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 0x4085f3
push esi
lea edi, [esp + 0x4dc]
call fcn.00409cd0
add esp, 4
test eax, eax
je 0x4085f3
mov edx, edi
push edx
push 0x40e960
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 0x4086aa
jg 0x40862c
cmp ebx, 0x400
jbe 0x4086aa
test ebp, ebp
jl 0x408672
jg 0x40863a
cmp ebx, 0x100000
jbe 0x408672
mov esi, dword [0x414f30]
mov edi, 0x10
cmp dword [0x414f44], edi
jae 0x408652
mov esi, 0x414f30
push 0
push 0x100000
push ebp
push ebx
call fcn.0040c2b0
push edx
push eax
push esi
push str._s_ld_MB
lea edx, [esp + 0x5e4]
push edx
jmp 0x4086d1
mov esi, dword [0x414f30]
mov edi, 0x10
cmp dword [0x414f44], edi
jae 0x40868a
mov esi, 0x414f30
push 0
push 0x400
push ebp
push ebx
call fcn.0040c2b0
push edx
push eax
push esi
push str._s_ld_KB
lea eax, [esp + 0x5e4]
push eax
jmp 0x4086d1
mov eax, dword [0x414f30]
mov edi, 0x10
cmp dword [0x414f44], edi
jae 0x4086c1
mov eax, 0x414f30
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 [0x4150ec]
add esp, 0x14
cmp dword [0x415100], edi
jae 0x4086ec
mov eax, 0x4150ec
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4086f0
lea edi, [esp + 0x5d4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408701
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 0x408722
lea edi, [esp + 0x5d4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408735
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.0040a690
lea ecx, [esp + 0x18]
mov byte [esp + 0x3414], 0xd
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.0040a500
mov byte [esp + 0x3414], 0xf
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0xb8]
cmp eax, edx
je 0x4087af
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40e6c4
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 [0x40e1b0]
lea ecx, [esp + 0x5d4]
push ecx
lea ecx, [esp + 0x25c]
call dword [0x40e1b0]
push 0xa
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.00407d60
inc dword [0x414508]
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 0x408854
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 0x40887c
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 0x408180
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [0x414508]
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 0x4088d0
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.0040b0ba
add esp, 0x3404
ret