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

Disassembly:
push 0xffffffffffffffff
push 0x545741
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.0050ece0
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x188], ebx
call fcn.0050ece0
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 1
call fcn.0050ece0
mov esi, dword [esp + 0x190]
lea ecx, [esp + 0x10]
push esi
mov byte [esp + 0x18c], 2
call fcn.0050ed50
push 1
push 1
lea ecx, [esp + 0x18]
call fcn.004dbd70
push eax
push 0x65199c
lea ecx, [esp + 0x20]
call fcn.0050f120
test eax, eax
jne 0x50e964
push 0x65199c
lea ecx, [esp + 0x14]
call fcn.0050edd0
push 0x6519b0
lea ecx, [esp + 0x14]
call fcn.0050edd0
cmp dword [edi + 0x24], ebx
jne 0x50eb41
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x194]
push eax
push ecx
push esi
mov ecx, edi
call fcn.0050e330
cmp eax, 1
jne 0x50eb01
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call fcn.004dbd60
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x50eb41
mov esi, 0x6519a4
lea eax, [esp + 0x6c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x50e9e9
cmp cl, bl
je 0x50e9e5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x50e9e9
add eax, 2
add esi, 2
cmp cl, bl
jne 0x50e9c5
xor eax, eax
jmp 0x50e9ee
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x50eae5
mov esi, 0x6519a0
lea eax, [esp + 0x6c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x50ea23
cmp cl, bl
je 0x50ea1f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x50ea23
add eax, 2
add esi, 2
cmp cl, bl
jne 0x50e9ff
xor eax, eax
jmp 0x50ea28
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x50eae5
test byte [esp + 0x40], 0x10
je 0x50eae5
mov eax, dword [esp + 0x190]
lea ecx, [esp + 0x20]
push eax
call fcn.0050ed50
push 0x65199c
lea ecx, [esp + 0x24]
call fcn.0050edd0
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0050edd0
mov eax, dword [esp + 0x194]
lea edx, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.004dbd60
push eax
mov ecx, edi
call fcn.0050e240
test eax, eax
je 0x50eafa
push 4
push ebx
push ebx
lea ecx, [esp + 0x3c]
call fcn.004e8590
mov esi, dword [esp + 0x1a4]
push eax
push esi
call fcn.00513410
add esp, 0x14
test eax, eax
jne 0x50eafa
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x20]
inc eax
push ecx
lea ecx, [edi + 0xc]
mov dword [edi + 0x20], eax
call fcn.0050edb0
mov ecx, edi
call fcn.0050e210
mov edx, dword [esp + 0x194]
push esi
push edx
lea ecx, [esp + 0x28]
call fcn.004dbd60
push eax
mov ecx, edi
call fcn.0050e8d0
test eax, eax
je 0x50eafa
lea eax, [esp + 0x40]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x50eb3a
jmp 0x50e9bc
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 1
call fcn.0050ed00
lea ecx, [esp + 0x30]
mov byte [esp + 0x188], bl
call fcn.0050ed00
lea ecx, [esp + 0x10]
mov dword [esp + 0x188], 0xffffffff
call fcn.0050ed00
xor eax, eax
jmp 0x50eb7b
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 1
call fcn.0050ed00
lea ecx, [esp + 0x30]
mov byte [esp + 0x188], bl
call fcn.0050ed00
lea ecx, [esp + 0x10]
mov dword [esp + 0x188], 0xffffffff
call fcn.0050ed00
mov eax, 1
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret 0xc