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

Disassembly:
mov eax, 0x411c16
call fcn.00410b94
sub esp, 0x2e0
push ebx
push esi
push edi
push 0x416ac8
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.0040575d
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x409118
mov eax, dword [eax]
lea ecx, [ebp - 0x2ec]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x9c], eax
and dword [ebp - 4], 0
push 1
xor edi, edi
lea esi, [ebp - 0x94]
call fcn.00403304
cmp dword [ebp - 0x9c], 0xffffffff
je 0x409391
mov eax, dword [ebp + 0xc]
call fcn.00408f95
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2ec]
and eax, 0x10
je 0x409192
cmp word [ebp - 0x2c0], 0x2e
jne 0x409192
cmp word [ebp - 0x2be], 0
je 0x409361
cmp word [ebp - 0x2be], 0x2e
jne 0x409192
cmp word [ebp - 0x2bc], 0
je 0x409361
test dword [ebp - 0x2ec], 0x1600
jne 0x409361
mov ecx, dword [ebp - 0x2ec]
and cl, 0x14
cmp cl, 4
je 0x409361
test eax, eax
jne 0x4091c1
cmp dword [ebp - 0x20], eax
je 0x409361
xor esi, esi
push dword [esi + 0x41acd8]
lea eax, [ebp - 0x2c0]
push eax
call fcn.0040c080
pop ecx
pop ecx
test eax, eax
je 0x409361
add esi, 4
cmp esi, 0x44
jb 0x4091c3
test byte [ebp - 0x2ec], 0x10
je 0x409235
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x78]
push eax
call fcn.00409fe4
pop ecx
lea ecx, [ebp - 0x2c0]
push ecx
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402a37
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004090e6
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x5c]
call fcn.00403304
lea esi, [ebp - 0x78]
jmp 0x409354
lea eax, [ebp - 0x2c0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40923e
mov ebx, dword [ebp - 0x2d0]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
xor eax, eax
or eax, dword [ebp - 0x2cc]
xor edx, edx
or ebx, edx
mov dword [ebp - 0x1c], eax
xor esi, esi
mov edi, dword [esi*8 + 0x415230]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409273
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
sub ecx, eax
lea ecx, [ebp + ecx*2 - 0x2c0]
cmp dword [ebp - 0x14], eax
jb 0x4092a0
push edi
push ecx
call fcn.0040c080
pop ecx
pop ecx
test eax, eax
je 0x4092ae
inc esi
cmp esi, 0xc4
jb 0x409267
jmp 0x409361
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
call fcn.00409fe4
pop ecx
lea ecx, [ebp - 0x2c0]
push ecx
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00402a37
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov edi, dword [esi*8 + 0x415234]
push eax
lea esi, [ebp - 0x40]
call fcn.00402f11
mov dword [ebp - 0x24], edi
push 1
xor edi, edi
lea esi, [ebp - 0x78]
call fcn.00403304
push 1
lea esi, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00403304
test ebx, ebx
jne 0x40930f
cmp dword [ebp - 0x1c], 0x100000
jbe 0x409313
sub dword [ebp - 0x24], 5
test ebx, ebx
jne 0x409320
cmp dword [ebp - 0x1c], 0xa00000
jbe 0x409324
sub dword [ebp - 0x24], 0xa
test ebx, ebx
jne 0x409331
cmp dword [ebp - 0x1c], 0x6400000
jbe 0x409335
sub dword [ebp - 0x24], 0xa
test ebx, ebx
jne 0x409342
cmp dword [ebp - 0x1c], 0x3e800000
jbe 0x409346
sub dword [ebp - 0x24], 0xa
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
call fcn.00409af8
lea esi, [ebp - 0x40]
push 1
xor edi, edi
mov byte [ebp - 4], 0
call fcn.00403304
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409157
cmp dword [ebp - 0x9c], 0xffffffff
je 0x409391
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret