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

Disassembly:
push 0xffffffffffffffff
push 0x40d3ae
mov eax, dword fs:[0]
push eax
mov eax, 0x33f8
call fcn.0040cb80
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 0x408442
lea eax, [esp + 0x3420]
push 0xfde9
lea ecx, [esp + 0x140]
push eax
lea eax, [esp + 0x140]
mov dword [esp + 0x140], ecx
call fcn.0040b0f0
lea edx, [esp + 0x14]
mov byte [esp + 0x3414], 2
mov ecx, dword [esp + 0x138]
push edx
call fcn.0040af60
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x13c]
cmp eax, ecx
je 0x40849f
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 0x408be2
nop
test byte [esp + 0x274], 0x10
je 0x408760
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 [0x40fa14]
mov dx, word [0x40fa18]
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 0x408580
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4085a6
test dx, dx
je 0x4085a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4085a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408580
xor eax, eax
jmp 0x4085ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408bbc
lea ecx, [esp + 0x4c4]
lea eax, [esp + 0xbf0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4085e7
test dx, dx
je 0x4085e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4085e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4085c1
xor eax, eax
jmp 0x4085ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408bbc
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 0x408620
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 0x40fa9c
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.0040b030
lea edx, [esp + 0x24]
mov byte [esp + 0x3414], 5
mov ecx, dword [esp + 0x30]
push edx
call fcn.0040aea0
mov byte [esp + 0x3414], 7
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4086c8
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40f6fc
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.004083e0
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 0x408ba0
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 0x4087a0
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.0040b030
lea eax, [esp + 0x1c]
mov byte [esp + 0x3414], 0xa
mov ecx, dword [esp + 0x30]
push eax
call fcn.0040aea0
mov byte [esp + 0x3414], 0xc
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x408832
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 0x408858
lea edi, [esp + 0x9d4]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x408870
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408870
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 0x408b94
jg 0x408898
test ebx, ebx
jbe 0x408b94
cmp dword [esp + 0x3450], 0x10
mov eax, dword [esp + 0x343c]
jae 0x4088b0
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 0x408b94
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 0x408933
push esi
lea edi, [esp + 0x4dc]
call fcn.0040a070
add esp, 4
test eax, eax
je 0x408933
mov edx, edi
push edx
push 0x40f9ac
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 0x4089ea
jg 0x40896c
cmp ebx, 0x400
jbe 0x4089ea
test ebp, ebp
jl 0x4089b2
jg 0x40897a
cmp ebx, 0x100000
jbe 0x4089b2
mov esi, dword [0x416020]
mov edi, 0x10
cmp dword [0x416034], edi
jae 0x408992
mov esi, 0x416020
push 0
push 0x100000
push ebp
push ebx
call fcn.0040cc80
push edx
push eax
push esi
push str._s_ld_MB
lea edx, [esp + 0x5e4]
push edx
jmp 0x408a11
mov esi, dword [0x416020]
mov edi, 0x10
cmp dword [0x416034], edi
jae 0x4089ca
mov esi, 0x416020
push 0
push 0x400
push ebp
push ebx
call fcn.0040cc80
push edx
push eax
push esi
push str._s_ld_KB
lea eax, [esp + 0x5e4]
push eax
jmp 0x408a11
mov eax, dword [0x416020]
mov edi, 0x10
cmp dword [0x416034], edi
jae 0x408a01
mov eax, 0x416020
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 [0x415f24]
add esp, 0x14
cmp dword [0x415f38], edi
jae 0x408a2c
mov eax, 0x415f24
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a30
lea edi, [esp + 0x5d4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408a41
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 0x408a62
lea edi, [esp + 0x5d4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408a75
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.0040b030
lea ecx, [esp + 0x18]
mov byte [esp + 0x3414], 0xd
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.0040aea0
mov byte [esp + 0x3414], 0xf
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0xb8]
cmp eax, edx
je 0x408aef
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40f6fc
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 [0x40f1d0]
lea ecx, [esp + 0x5d4]
push ecx
lea ecx, [esp + 0x25c]
call dword [0x40f1d0]
push 4
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.004080a0
inc dword [0x41350c]
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 0x408b94
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 0x408bbc
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 0x4084c0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [0x41350c]
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 0x408c10
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.0040c1a6
add esp, 0x3404
ret