Function at 0x10002658
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x1004f916
push ebp
lea ebp, [esp - 0x620]
sub esp, 0x6a0
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x61c], eax
mov eax, dword [ebp + 0x628]
mov ecx, dword [ebp + 0x634]
push ebx
push esi
mov esi, dword [ebp + 0x638]
push edi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x62c]
xor edi, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], ecx
mov byte [ebp - 0x55], 0
cmp eax, edi
je 0x1004f96b
push eax
call fcn.10128470
pop ecx
mov dword [ebp - 0x6c], eax
jmp 0x1004f96e
mov dword [ebp - 0x6c], edi
cmp esi, edi
je 0x1004f97e
push esi
call sym.CoreFoundation.dll__CFCopyExtensionForAbstractType
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x1004f981
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x50], edi
je 0x1004f994
push dword [ebp - 0x50]
call sym.CoreFoundation.dll_CFStringGetLength
pop ecx
mov dword [ebp - 0x60], eax
jmp 0x1004f997
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x68], edi
mov esi, 0x104
cmp dword [ebp - 0x60], edi
jle 0x1004fa0e
lea ecx, [ebp - 0x5c]
push ecx
push esi
lea ecx, [ebp + 0x204]
push ecx
push edi
push edi
push 0x100
push dword [ebp - 0x60]
xor eax, eax
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x5c], edi
call sym.CoreFoundation.dll_CFStringGetBytes
mov eax, dword [ebp - 0x5c]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 + 0x204], cx
add esp, 0x24
cmp word [ebp + 0x204], 0x2e
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x204]
jne 0x1004f9f3
lea eax, [ebp + 0x206]
mov ebx, dword [0x10180f28]
jmp 0x1004fa01
inc dword [ebp - 0x68]
add eax, 2
push 0x2e
push eax
call ebx
pop ecx
pop ecx
cmp eax, edi
jne 0x1004f9fb
jmp 0x1004fa14
mov ebx, dword [0x10180f28]
cmp dword [ebp - 0x54], edi
jne 0x1004fa57
push esi
lea eax, [ebp + 0x410]
push eax
push 1
push dword [ebp - 0x64]
call sym.CoreFoundation.dll__CFURLGetWideFileSystemRepresentation
add esp, 0x10
test al, al
jne 0x1004fa47
cmp dword [ebp - 0x50], edi
je 0x1004fa40
push dword [ebp - 0x50]
call sym.CoreFoundation.dll_CFRelease
pop ecx
xor eax, eax
jmp 0x1004fcda
lea eax, [ebp + 0x410]
push eax
call dword [0x10180ee4]
pop ecx
jmp 0x1004faa3
push 0x8000100
push dword [ebp - 0x54]
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
mov ebx, eax
push ebx
call sym.CoreFoundation.dll_CFStringGetLength
lea ecx, [ebp + 0x410]
push ecx
mov edi, eax
xor eax, eax
push edi
push eax
push ebx
call sym.CoreFoundation.dll_CFStringGetCharacters
xor eax, eax
push ebx
mov word [ebp + edi*2 + 0x410], ax
call sym.CoreFoundation.dll_CFRelease
mov eax, dword [ebp - 0x6c]
mov ebx, dword [0x10180f28]
add esp, 0x24
xor edi, edi
lea ecx, [eax + 2]
cmp ecx, esi
jge 0x1004fa32
lea esi, [eax + eax]
push 0x5c
pop ecx
lea eax, [ebp + esi + 0x410]
mov dword [ebp - 0x7c], eax
mov word [eax], cx
push 0x2a
pop eax
mov word [ebp + esi + 0x412], ax
xor eax, eax
mov word [ebp + esi + 0x414], ax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x410]
push eax
mov dword [ebp - 0x6c], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x1004fafb
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov word [ecx], ax
jmp 0x1004fa32
push sym.CoreFoundation.dll_kCFTypeArrayCallBacks
push edi
push dword [ebp - 0x70]
call sym.CoreFoundation.dll_CFArrayCreateMutable
add esp, 0xc
mov dword [ebp - 0x74], eax
jmp 0x1004fb14
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x20]
push eax
call dword [0x10180ee4]
pop ecx
push 0x2e
pop ecx
mov dword [ebp - 0x80], eax
cmp word [ebp - 0x20], cx
jne 0x1004fb43
cmp eax, 1
je 0x1004fc94
cmp eax, 2
jne 0x1004fb43
cmp word [ebp - 0x1e], cx
je 0x1004fc94
cmp dword [ebp - 0x60], eax
jg 0x1004fc94
cmp dword [ebp - 0x60], edi
jle 0x1004fc0a
cmp word [ebp + eax*2 - 0x22], cx
je 0x1004fc94
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x54], edi
push eax
cmp dword [ebp - 0x68], edi
jne 0x1004fb7a
call dword [0x10180f2c]
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
jmp 0x1004fbc3
call ebx
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x1004fc94
cmp dword [ebp - 0x54], edi
jne 0x1004fbcc
push 0x2e
mov dword [ebp - 0x5c], edi
push esi
jmp 0x1004fba3
inc dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x68]
je 0x1004fbb3
push 0x2e
push eax
call ebx
pop ecx
pop ecx
cmp eax, edi
jne 0x1004fb95
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x5c], eax
jne 0x1004fbb6
mov dword [ebp - 0x54], esi
push 0x2e
push esi
call ebx
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jne 0x1004fb88
cmp dword [ebp - 0x54], edi
je 0x1004fc94
cmp word [ebp + 0x204], 0x2e
je 0x1004fbda
add dword [ebp - 0x54], 2
push dword [ebp - 0x54]
call dword [0x10180ee4]
pop ecx
cmp eax, dword [ebp - 0x60]
jne 0x1004fc94
lea eax, [ebp + 0x204]
push eax
push dword [ebp - 0x54]
call dword [0x10180f34]
pop ecx
pop ecx
test eax, eax
jne 0x1004fc94
mov esi, dword [ebp - 0x6c]
cmp dword [ebp - 0x64], edi
jne 0x1004fc44
push edi
push 0x100
push esi
lea eax, [ebp + 0x410]
push eax
push dword [ebp - 0x70]
call sym.CoreFoundation.dll_CFStringCreateWithBytes
push 1
mov esi, eax
push 2
push esi
push dword [ebp - 0x70]
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
push esi
mov dword [ebp - 0x64], eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x28
mov byte [ebp - 0x55], 1
mov eax, dword [ebp - 0x80]
push edi
push 0x100
add eax, eax
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x70]
call sym.CoreFoundation.dll_CFStringCreateWithBytes
push dword [ebp - 0x64]
mov esi, eax
mov eax, dword [ebp - 0x4c]
shr eax, 4
and al, 1
movzx eax, al
push eax
push 2
push esi
push dword [ebp - 0x70]
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPathRelativeToBase
mov edi, eax
push edi
push dword [ebp - 0x74]
call sym.CoreFoundation.dll_CFArrayAppendValue
push edi
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFRelease
add esp, 0x38
xor edi, edi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004fb11
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov word [ecx], ax
cmp dword [ebp - 0x50], edi
je 0x1004fcc8
push dword [ebp - 0x50]
call sym.CoreFoundation.dll_CFRelease
pop ecx
cmp byte [ebp - 0x55], 0
je 0x1004fcd7
push dword [ebp - 0x64]
call sym.CoreFoundation.dll_CFRelease
pop ecx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + 0x61c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10128342
add ebp, 0x620
leave
ret