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

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x40
mov eax, 0x509c97
call fcn.004cc273
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0x264]
mov eax, dword [ebp + 0x25c]
mov ebx, dword [ebp + 0x260]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x268]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp - 0x40], ebx
call fcn.00407175
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00473210
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00407175
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.00407092
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and dword [ebp - 0x28], 0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
lea eax, [ebp]
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
push ebx
call edi
dec eax
neg eax
sbb al, al
add al, 1
je 0x496371
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409a3c
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
push 0x2e
push eax
mov esi, dword [eax - 0xc]
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
jne 0x49622c
or eax, 0xffffffff
jmp 0x496231
sub eax, dword [ebp - 0x14]
sar eax, 1
sub esi, eax
lea ecx, [ebp - 0x14]
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.00447b17
push str..pack
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00452c13
test eax, eax
jne 0x49633f
push 0x2e
push dword [ebp - 0x14]
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
jne 0x49626e
or eax, 0xffffffff
jmp 0x496273
sub eax, dword [ebp - 0x14]
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call fcn.00447ac6
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00446083
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.004068bc
mov eax, dword [ebp - 0x14]
push 0x2e
push eax
mov esi, dword [eax - 0xc]
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
jne 0x4962b2
or eax, 0xffffffff
jmp 0x4962b7
sub eax, dword [ebp - 0x14]
sar eax, 1
sub esi, eax
lea ecx, [ebp - 0x14]
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00447b17
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00446083
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.004068bc
push 0x531ea4
lea ecx, [ebp - 0x18]
call fcn.00452c13
test eax, eax
jne 0x49633f
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.004522e9
pop ecx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.00407175
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 8
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 9
call fcn.00489c12
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.004068bc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.004068bc
lea eax, [ebp]
push eax
push ebx
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
call fcn.004068bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004068bc
add bl, 1
mov ebx, dword [ebp - 0x2c]
jne 0x496203
push 0x52d044
lea ecx, [ebp - 0x18]
call fcn.0047f834
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.00469df0
pop ecx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
call fcn.00446083
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.004068bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004068bc
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x4963c8
push ebx
call edi
and dword [ebp - 0x2c], 0
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004511e0
mov esi, dword [ebp - 0x2c]
lea eax, [ebp]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
push esi
call ebx
dec eax
neg eax
sbb al, al
add al, 1
je 0x49644c
mov edi, dword [ebp - 0x30]
lea ecx, [ebp]
call fcn.0048e19a
test al, al
je 0x496436
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.004522e9
pop ecx
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
push edi
push dword [ebp - 0x40]
mov byte [ebp - 4], 0xd
push eax
call fcn.00496154
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004068bc
lea eax, [ebp]
push eax
push esi
call ebx
dec eax
neg eax
sbb al, al
add al, 1
jne 0x4963fa
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
test esi, esi
je 0x49645b
push esi
call edi
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004068bc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x254]
pop ebp
ret 0x10