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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x40a]
push ecx
mov word [ebp - 0x40c], ax
call fcn.0040e850
add esp, 0xc
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x80a]
push eax
mov word [ebp - 0x80c], dx
call fcn.0040e850
add esp, 0xc
push ebx
lea ecx, [ebp - 0x80c]
push 0x200
push ecx
call fcn.0040a937
lea eax, [ebp - 0x80c]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f10
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x80e], 0x5c
je 0x408f43
push 0x41bcb8
lea edx, [ebp - 0x80c]
push 0x200
push edx
call fcn.00409b87
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push str._s.
lea ecx, [ebp - 0x40c]
push 0x200
push ecx
call fcn.00409c4d
push 0x24c
lea edx, [ebp - 0xa58]
push 0
push edx
mov dword [ebp - 0xa60], 0x12
mov dword [ebp - 0xa5c], 0
call fcn.0040e850
add esp, 0x1c
lea eax, [ebp - 0xa5c]
push eax
lea ecx, [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa64], eax
cmp eax, 0xffffffff
jne 0x408fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0x80c]
push eax
push str._s_s
lea ecx, [ebp - 0x40c]
push 0x200
push ecx
call fcn.00409c4d
add esp, 0x14
test byte [ebp - 0xa5c], 0x10
je 0x40902a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40902a
cmp word [ebp - 0xa30], 0x2e
je 0x4090ce
push esi
push edi
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x40c]
push edx
push eax
call fcn.00408e90
add esp, 0x14
mov dword [ebp - 0xa60], eax
cmp eax, 0x12
jne 0x4090f6
cmp word [ebp - 0xa30], 0x2e
je 0x4090ce
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409041
sub eax, edx
sar eax, 1
lea ebx, [eax + eax + 3]
mov eax, dword [esi]
add eax, ebx
mov ecx, edi
call fcn.00401850
test eax, eax
je 0x4090f6
test byte [ebp - 0xa5c], 0x10
mov edx, dword [esi]
mov eax, dword [edi]
setne cl
inc cl
mov byte [edx + eax], cl
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409083
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esi]
push ecx
mov ecx, dword [edi]
lea edx, [ebp - 0x40c]
push edx
lea edx, [eax + ecx + 1]
push edx
call fcn.0040e8d0
add dword [esi], ebx
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0x5000
jb 0x4090ce
mov ecx, dword [edi]
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
call fcn.00406860
mov dword [esi], 0
mov ecx, dword [ebp - 0xa64]
lea eax, [ebp - 0xa5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa60], eax
mov edx, dword [ebp - 0xa64]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xa60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040942c
mov esp, ebp
pop ebp
ret