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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd40
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp word [ebp + 0x22], 0
jne 0x4934b4
cmp dword [ebp + 0xc], 0
jne 0x4934b4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x4937b3
push ebx
mov ecx, dword [esi]
push ecx
call fcn.00413ca8
add esp, 8
test al, al
jne 0x4934cf
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x4937b3
mov dword [ebp - 4], 0x160
push ebx
call fcn.0049c15c
pop ecx
mov edi, eax
movsx eax, byte [ebx + edi - 1]
cmp eax, 0x5c
sete dl
and edx, 1
sub edi, edx
lea ecx, [edi + 1]
push ecx
call fcn.0049b898
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov edx, ebx
cmp edi, eax
jle 0x49351c
mov cl, byte [edx]
mov ebx, dword [ebp - 0x20]
mov byte [ebx], cl
inc eax
inc dword [ebp - 0x20]
inc edx
cmp edi, eax
jg 0x49350c
mov eax, dword [ebp - 0xc]
mov byte [eax + edi], 0
lea edx, [edi + 5]
push edx
call fcn.0049b898
mov ebx, eax
mov eax, dword [ebp - 0xc]
pop ecx
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
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 0x4e15ca
push ebx
call fcn.0049c120
add esp, 8
push 0x4e15cc
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x160]
push eax
push ebx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 8], eax
push ebx
call fcn.0049b6d4
cmp dword [ebp - 8], 0xffffffff
setne al
and eax, 1
pop ecx
test al, al
je 0x49379a
lea edx, [ebp - 0x134]
push edx
push esi
call fcn.004930d0
add esp, 8
test al, al
jne 0x49377a
lea ecx, [ebp - 0x134]
push ecx
call fcn.0049c15c
pop ecx
lea eax, [eax + edi + 2]
push eax
call fcn.0049b898
mov ebx, eax
mov eax, dword [ebp - 0xc]
pop ecx
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
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 0x4e15d0
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x134]
push eax
push ebx
call fcn.0049c120
add esp, 8
mov edx, dword [ebp - 0x160]
push edx
push esi
call fcn.004930bc
add esp, 8
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x49363b
push ebx
push esi
call fcn.00493114
add esp, 8
test al, al
jne 0x49363f
xor ecx, ecx
jmp 0x493644
mov ecx, 1
mov byte [ebp - 0x1a], cl
push 0x600
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x2c0]
push eax
push edx
push 0
push ebx
mov ecx, dword [esi + 4]
push ecx
call fcn.004a8af0
add esp, 0x18
cmp dword [ebp + 0x1c], 0
je 0x49368b
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
cmp edx, dword [ebp - 0x2bc]
jle 0x493680
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
jmp 0x493686
mov eax, dword [ebp - 0x2bc]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
cmp byte [ebp + 0x18], 0
je 0x4936c3
mov cl, byte [ebp - 0x1a]
lea edx, [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x2bc]
push eax
push edx
push ecx
lea eax, [ebp - 0x134]
push eax
mov edx, dword [ebp - 0xc]
push edx
push esi
call fcn.00492968
add esp, 0x1c
mov dword [ebp - 0x10], eax
jmp 0x4936f1
mov cl, byte [ebp - 0x1a]
lea edx, [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x2bc]
push eax
push edx
push ecx
lea eax, [ebp - 0x134]
push eax
push 0
push esi
call fcn.00492968
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp word [ebp + 0x22], 0
je 0x49370a
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ebp + 0x24]
push eax
call dword [ebp + 0x20]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x493722
mov edx, dword [ebp - 0x10]
push edx
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00412a1c
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x493754
cmp byte [ebp - 0x19], 0
je 0x493754
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push edx
mov cl, byte [ebp + 0x18]
push ecx
mov al, byte [ebp + 0x14]
push eax
push ebx
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0049347c
add esp, 0x20
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edx
push ebx
call fcn.0049b6d4
pop ecx
mov ecx, dword [ebp - 0x140]
push ecx
mov eax, dword [ebp - 0x144]
push eax
mov edx, dword [esi]
push edx
call fcn.00413004
add esp, 0xc
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edx
lea ecx, [ebp - 0x160]
push ecx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x49359c
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049b6d4
pop ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret