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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 0x1d], 0
push ebx
mov eax, dword [esi]
push eax
call fcn.00413ca8
add esp, 8
test al, al
jne 0x493dd6
mov al, byte [ebp - 0x1d]
jmp 0x493fe9
push ebx
call fcn.0049c15c
pop ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
movsx ecx, byte [ebx + edx - 1]
cmp ecx, 0x5c
sete al
and eax, 1
sub dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
inc edx
push edx
call fcn.0049b898
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
mov edx, dword [ebp - 8]
mov ecx, edx
mov edx, ebx
cmp eax, dword [ebp - 0xc]
jge 0x493e1c
mov bl, byte [edx]
mov byte [ecx], bl
inc eax
inc ecx
inc edx
cmp eax, dword [ebp - 0xc]
jl 0x493e10
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0xc]
add ecx, 5
push ecx
call fcn.0049b898
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
push esi
push edi
mov esi, edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4e15e2
push edi
call fcn.0049c120
add esp, 8
push 0x4e15e4
push edi
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x160]
push eax
push edi
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
push edi
call fcn.0049b6d4
cmp dword [ebp - 4], 0xffffffff
setne al
and eax, 1
pop ecx
mov byte [ebp - 0x1d], al
test al, al
je 0x493fd3
lea edx, [ebp - 0x134]
push edx
push esi
call fcn.004930d0
add esp, 8
test al, al
jne 0x493fb3
lea ecx, [ebp - 0x134]
push ecx
call fcn.0049c15c
pop ecx
add eax, dword [ebp - 0xc]
add eax, 2
push eax
call fcn.0049b898
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
push esi
push edi
mov esi, edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4e15e8
push edi
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.0049c120
add esp, 8
mov edx, dword [ebp - 0x160]
push edx
push esi
call fcn.004930bc
add esp, 8
test al, al
je 0x493f86
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
call fcn.00493da8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov eax, dword [ebp - 0x1c]
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
add dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
add dword [ecx], eax
mov edx, dword [ebp + 0x14]
inc dword [edx]
jmp 0x493f8b
mov ecx, dword [ebp + 0x18]
inc dword [ecx]
push edi
call fcn.0049b6d4
pop ecx
mov eax, dword [ebp - 0x140]
push eax
mov edx, dword [ebp - 0x144]
push edx
mov ecx, dword [esi]
push ecx
call fcn.00413004
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
adc dword [ecx + 4], edx
lea eax, [ebp - 0x160]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x493ea5
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049b6d4
pop ecx
mov al, byte [ebp - 0x1d]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret