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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595fd7
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x5ff1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x530], edx
mov ebx, ecx
lea edx, [ebp - 0x529]
call fcn.0050f120
test eax, eax
js 0x50f0fe
cmp byte [ebp - 0x529], 0
je 0x50f0fe
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x50ed40
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004a4df0
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x50ed6d
cmp dword [ebx + 0x14], 8
jb 0x50ed51
mov eax, dword [ebx]
jmp 0x50ed53
mov eax, ebx
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x50ed6d
cmp eax, 0x2f
je 0x50ed6d
push 0x5c
push 1
mov ecx, ebx
call fcn.004a4bb0
push 0x5db344
mov edx, ebx
lea ecx, [ebp - 0x70]
call fcn.004c02b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x50edba
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50ed9d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a5150
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004a4c60
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x50edd3
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004a5150
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x534], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x50ee1d
cmp edi, 0xffffffff
je 0x50ee13
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 0xffffffea
jmp 0x50f0e5
cmp edi, 0xffffffff
je 0x50f0e2
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [ebp - 0x2ac], ax
jne 0x50ee51
xor ecx, ecx
jmp 0x50ee6f
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50ee60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x58]
call fcn.004a4ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x44]
cmp esi, 8
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x48]
cmovae ecx, edi
push 1
push 0x5d8634
call fcn.004aa680
add esp, 8
test eax, eax
je 0x50f07c
cmp esi, 8
lea ecx, [ebp - 0x58]
push 2
cmovae ecx, edi
push 0x5db39c
call fcn.004aa680
add esp, 8
test eax, eax
je 0x50f07c
lea eax, [ebp - 0x58]
mov edx, ebx
push eax
lea ecx, [ebp - 0x70]
call fcn.004ab730
add esp, 4
mov byte [ebp - 4], 3
test byte [ebp - 0x2d8], 0x10
je 0x50eff0
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x30], 0
push eax
call fcn.004a4df0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x50ef42
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x50ef42
cmp eax, 0x2f
je 0x50ef42
push 0x5c
push 1
lea ecx, [ebp - 0x40]
call fcn.004a4bb0
push 0x5db344
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x88]
call fcn.004c02b0
add esp, 4
lea ecx, [ebp - 0x40]
push eax
call fcn.004aa2c0
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x50ef7c
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004a5150
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x528]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x50efb3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 5
je 0x50efe6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test ecx, ecx
js 0x50efc6
cmp eax, ecx
jge 0x50efe6
mov edx, dword [ebp - 0x530]
inc eax
push eax
push ecx
push 1
lea ecx, [ebp - 0x70]
call fcn.0050ecc0
mov esi, eax
add esp, 0xc
test esi, esi
js 0x50f0bc
lea ecx, [ebp - 0x40]
call fcn.004a4880
jmp 0x50f067
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov dword [ebp - 0x538], 0
lea ecx, [ebp - 0x540]
cmovae eax, dword [ebp - 0x70]
push eax
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x538], 0
mov dword [ebp - 0x53c], 5
call fcn.004a8ad0
mov edi, dword [ebp - 0x530]
lea ecx, [ebp - 0x540]
mov byte [ebp - 4], 5
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x68]
mov ecx, esi
call dword [0x59a43c]
mov ecx, edi
call esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x540]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004a6650
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x50f07c
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004a5150
mov edi, dword [ebp - 0x534]
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [ebp - 4], 0
mov esi, eax
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x50f0ab
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.004a5150
test esi, esi
jne 0x50ee30
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x50f0e5
push dword [ebp - 0x534]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x40]
call fcn.004a4880
lea ecx, [ebp - 0x70]
call fcn.004a4880
lea ecx, [ebp - 0x58]
call fcn.004a4880
jmp 0x50f0e5
or esi, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x50f0fa
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004a5150
mov eax, esi
jmp 0x50f103
mov eax, 0xffffffe4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret