Function at 0x50e650
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72d340
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
xor edi, edi
push esi
mov dword [ebp - 0x2ac], eax
call fcn.00482720
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.00482720
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 1
jb 0x50e6ae
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50e713
test al, 0x10
je 0x50e713
mov eax, dword [esi + 0x10]
test eax, eax
je 0x50e6fd
cmp dword [esi + 0x14], 8
jb 0x50e6cd
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x5c
je 0x50e6fd
push 1
push 0x748ca4
lea ecx, [ebp - 0x28]
call fcn.00481660
mov ecx, 2
mov eax, 0x73bef8
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00481660
jmp 0x50e790
mov ecx, 1
mov eax, 0x7488fc
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00481660
jmp 0x50e790
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x50e71e
mov esi, dword [esi]
test eax, eax
je 0x50e790
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [esi + ecx*2], 0x5c
lea eax, [esi + ecx*2]
je 0x50e742
cmp eax, esi
je 0x50e790
sub eax, 2
cmp word [eax], 0x5c
jne 0x50e735
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x50e790
mov esi, dword [ebp - 0x18]
lea edi, [eax + 1]
cmp esi, edi
jb 0x50ea1e
mov eax, esi
mov edx, esi
sub eax, edi
cmp eax, esi
cmovb edx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esi, edx
mov dword [ebp - 0x18], esi
sub esi, edi
lea ecx, [eax + edi*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.0051ff00
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b0], eax
cmp eax, 0xffffffff
je 0x50e981
mov esi, eax
nop word [eax + eax]
cmp word [ebp - 0x27c], 0x2e
jne 0x50e7ee
mov ax, word [ebp - 0x27a]
test ax, ax
je 0x50e964
cmp ax, 0x2e
jne 0x50e7ee
cmp word [ebp - 0x278], 0
je 0x50e964
mov edx, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x27c]
and edx, 0x10
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50e800
sub ecx, esi
mov eax, bind
sar ecx, 1
test edx, edx
mov edx, dword [ebp - 0x18]
je 0x50e8af
sub eax, edx
cmp eax, ecx
jb 0x50ea28
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x27c]
push ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x58]
call fcn.0049d060
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.0050e650
mov edx, dword [ebp - 0x44]
add esp, 8
add edi, eax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x50e95e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50e8a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50ea23
push edx
push ecx
call fcn.0051def4
add esp, 8
jmp 0x50e95e
sub eax, edx
inc edi
cmp eax, ecx
jb 0x50ea28
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x27c]
push ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x58]
call fcn.0049d060
mov eax, dword [ebp - 0x2ac]
mov byte [ebp - 4], 3
cmp dword [eax + 4], 0x7ffffff
mov esi, dword [eax]
je 0x50ea2d
mov dword [ebp - 0x2b8], eax
push 0x20
mov byte [ebp - 4], 4
mov dword [ebp - 0x2b4], 0
call fcn.0051dec4
movups xmm0, xmmword [ebp - 0x58]
mov ecx, eax
mov dword [ebp - 0x2b4], 0
mov eax, dword [ebp - 0x2ac]
add esp, 4
mov byte [ebp - 4], 1
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ecx + 0x18], xmm0
inc dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov dword [esi + 4], ecx
mov dword [eax], ecx
mov esi, dword [ebp - 0x2b0]
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x50e7c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x50e9b7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50e9ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50ea23
push edx
push ecx
call fcn.0051def4
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x50ea01
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50e9f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50ea23
push edx
push ecx
call fcn.0051def4
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret
call fcn.00488980
call fcn.0052981f
call fcn.00481190
push str.list_too_long
call fcn.0051a0ed
int3