Function at 0x7cfe49a5
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
jne 0x7cfe4a42
mov eax, dword [esi + 8]
test al, 0x40
jne 0x7cfe4a42
test al, 8
je 0x7cfe4a42
lea edi, [esi + 0x498]
lea ebx, [esi + 0x38]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x7cfe4a2d
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x7cfe4a1e
mov ebp, dword [edi]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x4c4]
push eax
call ebx
push 0xe
lea eax, [esi + 0x6cc]
push dword [esp + 0x18]
push eax
call ebx
cmp ebp, 0xffffffff
jne 0x7cfe4a34
mov eax, 0x80004005
jmp 0x7cfe4bc2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push 3
mov ecx, esi
call fcn.7cfe474e
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jne 0x7cfe4bbe
mov eax, dword [esi + 0x240]
cmp eax, ebp
je 0x7cfe4a60
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0xc]
je 0x7cfe4a65
mov eax, 0x7cf333a8
lea ebx, [esi + 0x38]
push eax
push ebx
mov ecx, esi
call fcn.7cfe4bc9
test eax, eax
je 0x7cfe4bbe
lea edi, [esi + 0x248]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esp + 0x14], 0xffffffff
je 0x7cfe4b4b
lea eax, [esi + 0x274]
push eax
call fcn.7cf72b87
test eax, eax
jne 0x7cfe4b23
mov ebx, dword [edi]
shr ebx, 4
and ebx, 1
jne 0x7cfe4ae1
test byte [esi + 8], 4
jne 0x7cfe4b23
mov eax, dword [esi + 0x240]
test eax, eax
je 0x7cfe4ae1
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0xc]
jae 0x7cfe4ae1
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x7cfe4b23
xor eax, eax
cmp dword [esi + 0x1c], eax
setne al
cmp ebx, eax
jne 0x7cfe4aff
push edi
mov ecx, esi
call fcn.7cfe4880
test eax, eax
mov dword [esp + 0x10], eax
jne 0x7cfe4b3f
jmp 0x7cfe4b23
test ebp, ebp
jne 0x7cfe4b16
push 0x20
push 0x250
call dword [sym.imp.COMCTL32.dll_DSA_Create]
mov ebp, eax
test ebp, ebp
je 0x7cfe4b37
push edi
push ParseURLA
push ebp
call dword [sym.imp.COMCTL32.dll_DSA_InsertItem]
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x7cfe4b3f
jmp 0x7cfe4a9d
mov dword [esp + 0x10], 0x8007000e
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x7cfe4b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp ebp, ebx
je 0x7cfe4b89
cmp dword [esp + 0x10], ebx
jne 0x7cfe4b82
xor edi, edi
cmp dword [ebp], ebx
jle 0x7cfe4b82
push edi
push ebp
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push eax
mov ecx, esi
call fcn.7cfe4880
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x7cfe4b82
inc edi
cmp edi, dword [ebp]
jl 0x7cfe4b64
push ebp
call dword [sym.imp.COMCTL32.dll_DSA_Destroy]
cmp dword [esi + 0x10], ebx
jne 0x7cfe4bb3
mov eax, dword [esi + 8]
test al, 0x40
jne 0x7cfe4bb3
test al, 0x10
je 0x7cfe4bb3
cmp dword [esp + 0x10], ebx
jne 0x7cfe4bb3
lea eax, [esi + 0x498]
mov ecx, esi
push eax
push 4
call fcn.7cfe474e
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 1
jne 0x7cfe4bbe
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret