Function at 0x10026cc6
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4d0
mov eax, dword [0x101844f8]
xor eax, esp
mov dword [esp + 0x4cc], eax
mov eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4d4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4f4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4f8]
push ebx
mov ebx, dword [esp + 0x4ec]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x500]
push ebp
mov ebp, dword [esp + 0x4ec]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x508]
push esi
mov esi, dword [esp + 0x51c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x514]
push edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x51c]
push ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], esi
call sym.CoreFoundation.dll_CFStringGetMaximumSizeOfFileSystemRepresentation
push 0
lea edi, [eax + 1]
lea eax, [edi + 0x107]
lea ecx, [eax + eax]
mov dword [esp + 0x48], eax
push ecx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFAllocatorAllocate
push dword [sym.CoreFoundation.dll_kCFAllocatorNull]
mov dword [esp + 0x28], eax
xor eax, eax
push eax
push eax
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateMutableWithExternalCharactersNoCopy
push dword [esp + 0x58]
and dword [esp + 0x40], 0
mov dword [esp + 0x60], eax
call sym.CoreFoundation.dll_CFStringGetLength
push dword [esp + 0x58]
mov dword [esp + 0x58], eax
call sym.CoreFoundation.dll_CFStringGetLength
add esp, 0x2c
mov dword [esp + 0x68], eax
test esi, esi
je 0x10026e1d
push esi
call sym.CoreFoundation.dll_CFStringGetLength
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
push esi
push 0
push dword [esp + 0x64]
call sym.CoreFoundation.dll_CFStringGetCharacters
add dword [esp + 0x2c], esi
add esp, 0x14
cmp byte [esp + 0x524], 0
je 0x10026e05
push dword [0x10186c04]
lea eax, [edi + 0x107]
push dword [0x10186c00]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
call sym.CoreFoundation.dll__CFAppendPathExtension
add esp, 0x14
lea eax, [edi + 0x107]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.10001cd5
add esp, 0xc
test ebx, ebx
je 0x10026e65
mov eax, dword [esp + 0x18]
lea esi, [ebx + ebx]
mov ecx, dword [esp + 0x14]
push esi
push ebp
lea eax, [ecx + eax*2]
push eax
call fcn.101331a9
add dword [esp + 0x24], ebx
add esp, 0xc
call sym.CoreFoundation.dll__CFGetSlash
mov ebx, dword [esp + 0x14]
cmp word [esi + ebp - 2], ax
je 0x10026e69
lea eax, [edi + 0x107]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.10001cd5
add esp, 0xc
jmp 0x10026e69
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edi
lea eax, [ebx + eax*2]
mov dword [esp + 0x20], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebp, eax
push edi
push ebp
push dword [esp + 0x5c]
mov dword [esp + 0x68], ebp
call sym.CoreFoundation.dll_CFStringGetFileSystemRepresentation
add esp, 0x10
test al, al
je 0x10027335
push 0x8000100
push ebp
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
mov edi, eax
push edi
call sym.CoreFoundation.dll_CFStringGetLength
mov esi, eax
mov eax, 0x106
cmp esi, eax
cmovg esi, eax
lea eax, [esp + 0x2e0]
push eax
push esi
push 0
push edi
call sym.CoreFoundation.dll_CFStringGetCharacters
lea ebp, [esi + esi]
add esp, 0x20
cmp ebp, 0x20c
jae 0x10027376
xor eax, eax
push edi
mov word [esp + ebp + 0x2d4], ax
call sym.CoreFoundation.dll_CFRelease
pop ecx
push 0x5c
pop eax
add esi, 2
mov word [esp + ebp + 0x2d0], ax
push 0x2a
pop eax
mov word [esp + ebp + 0x2d2], ax
lea eax, [esi + esi]
cmp eax, 0x20c
jae 0x10027376
xor ecx, ecx
mov word [esp + eax + 0x2d0], cx
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, 0x104
cmp esi, eax
mov dword [esp + 0x70], edi
setl byte [esp + 0x13]
cmp edi, 0xffffffff
jne 0x10026f5a
xor eax, eax
mov word [esp + ebp + 0x2d0], ax
jmp 0x10026f5e
cmp esi, eax
jl 0x10026f87
push dword [esp + 0x58]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFAllocatorDeallocate
push dword [esp + 0x44]
call sym.CoreFoundation.dll_CFRelease
add esp, 0x10
xor al, al
jmp 0x1002735d
push 0x2e
pop ebp
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp word [esp + 0xac], bp
jne 0x10026fbf
cmp eax, 1
je 0x100272ef
cmp eax, 2
jne 0x10026fbf
cmp word [esp + 0xae], bp
je 0x100272ef
push 0
push 0x100
add eax, eax
push eax
lea eax, [esp + 0xb8]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithBytes
mov esi, eax
add esp, 0x14
mov dword [esp + 0x28], esi
test esi, esi
je 0x100272ef
push esi
call sym.CoreFoundation.dll_CFStringGetLength
push dword [esp + 0x20]
mov ebp, eax
mov eax, 0x106
cmp ebp, eax
cmovg ebp, eax
push ebp
push 0
push esi
call sym.CoreFoundation.dll_CFStringGetCharacters
mov eax, dword [esp + 0x2c]
add esp, 0x14
add eax, ebp
test byte [esp + 0x80], 0x10
mov dword [esp + 0x3c], eax
je 0x10027039
push dword [esp + 0x40]
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.10001cd5
mov eax, dword [esp + 0x48]
add esp, 0xc
push dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
push eax
push ebx
push esi
call sym.CoreFoundation.dll_CFStringSetExternalCharactersNoCopy
push esi
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateCopy
add esp, 0x18
mov edi, eax
cmp byte [esp + 0x500], 0
mov dword [esp + 0x24], edi
jne 0x10027074
push edi
push dword [esp + 0x68]
call sym.CoreFoundation.dll_CFArrayAppendValue
pop ecx
pop ecx
lea ecx, [ebp - 1]
or esi, 0xffffffff
mov eax, ecx
cmp ecx, 0xffffffff
jle 0x100270c5
mov edx, dword [esp + 0x1c]
push 0x2e
pop ebx
cmp bx, word [edx + eax*2]
mov ebx, dword [esp + 0x14]
je 0x1002709a
dec eax
cmp eax, 0xffffffff
jg 0x10027085
jmp 0x100270c5
mov esi, eax
cmp eax, ecx
je 0x100270c5
push dword [esp + 0x514]
push dword [esp + 0x48]
push edi
push dword [esp + 0x54]
push ebp
push 0
push esi
push dword [esp + 0x3c]
push edx
push dword [esp + 0x70]
call fcn.10023ed8
add esp, 0x28
or ecx, 0xffffffff
xor dl, dl
xor eax, eax
test ebp, ebp
jle 0x100270f0
mov ebx, dword [esp + 0x1c]
push 0x2e
pop edi
cmp di, word [ebx + eax*2]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
je 0x100270ec
inc eax
cmp eax, ebp
jl 0x100270d0
jmp 0x100270f0
mov ecx, eax
mov dl, 1
cmp ecx, esi
je 0x10027120
test dl, dl
je 0x10027120
push dword [esp + 0x514]
push dword [esp + 0x48]
push edi
push dword [esp + 0x54]
push ebp
push 0
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x70]
call fcn.10023ed8
add esp, 0x28
push dword [esp + 0x2c]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x44]
push ebp
push 0
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x4c]
call fcn.10023fde
mov esi, eax
add esp, 0x28
mov dword [esp + 0x6c], esi
cmp esi, 1
je 0x10027313
cmp esi, 5
je 0x10027313
push edi
push dword [esp + 0x2c]
push dword [esp + 0x28]
call sym.CoreFoundation.dll_CFDictionarySetValue
mov edx, dword [esp + 0x74]
add esp, 0xc
cmp esi, 2
je 0x100271ab
jle 0x1002718c
cmp esi, 4
jg 0x1002718c
mov ecx, dword [esp + 0x5c]
jmp 0x100271bf
push dword [esp + 0x50]
push str.CFBundle:_Unknown_kind_of_file___d__when_creating_CFBundle:___
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 3
call sym.CoreFoundation.dll_CFLog
add esp, 0xc
jmp 0x100272d7
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, ebp
lea esi, [ecx + edx]
sub eax, ecx
sub eax, edx
add eax, esi
cmp esi, eax
jge 0x100271e2
mov edx, dword [esp + 0x1c]
push 0x2e
pop edi
lea ebx, [edx + esi*2]
cmp di, word [ebx]
je 0x10027242
inc esi
cmp esi, eax
jl 0x100271d5
push ecx
push dword [esp + 0x20]
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0xc
mov edi, eax
test edi, edi
je 0x100272cf
mov ebp, dword [esp + 0x20]
push edi
push ebp
call sym.CoreFoundation.dll_CFDictionaryGetValue
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100272ba
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x10027271
push ebx
push esi
call sym.CoreFoundation.dll_CFStringHasPrefix
pop ecx
pop ecx
test al, al
je 0x100272c8
push ebx
call sym.CoreFoundation.dll_CFStringGetLength
push esi
mov ebx, eax
call sym.CoreFoundation.dll_CFStringGetLength
pop ecx
sub eax, ebx
jmp 0x10027279
sub ecx, esi
add ecx, ebp
push ecx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateMutable
push dword [esp + 0x64]
mov edi, eax
push dword [esp + 0x28]
push edi
call sym.CoreFoundation.dll_CFStringAppendCharacters
sub ebp, esi
push ebp
push ebx
push edi
call sym.CoreFoundation.dll_CFStringAppendCharacters
add esp, 0x20
jmp 0x100271f7
push esi
xor ebx, ebx
call sym.CoreFoundation.dll_CFStringGetLength
pop ecx
push dword [esp + 0x2c]
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x80]
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x44]
push eax
push ebx
push 0
push 0
push esi
call fcn.10023fde
add esp, 0x28
sub eax, 1
je 0x100272ba
sub eax, 1
je 0x100272b3
sub eax, 1
je 0x100272ba
jmp 0x100272c8
cmp dword [esp + 0x6c], 4
jne 0x100272c8
push dword [esp + 0x24]
push edi
push ebp
call sym.CoreFoundation.dll_CFDictionarySetValue
add esp, 0xc
push edi
call sym.CoreFoundation.dll_CFRelease
pop ecx
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
push edi
call sym.CoreFoundation.dll_CFRelease
push dword [esp + 0x2c]
call sym.CoreFoundation.dll_CFRelease
mov edi, dword [esp + 0x78]
pop ecx
pop ecx
push 0x2e
pop ebp
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10026f8a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x58]
jmp 0x1002733a
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
push ebp
push esi
call sym.CoreFoundation.dll_CFDictionaryGetValue
pop ecx
pop ecx
test eax, eax
jne 0x100272d7
push edi
push ebp
push esi
call sym.CoreFoundation.dll_CFDictionarySetValue
jmp 0x100271a3
mov byte [esp + 0x13], 0
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFAllocatorDeallocate
push dword [esp + 0x44]
call sym.CoreFoundation.dll_CFRelease
mov al, byte [esp + 0x23]
add esp, 0x10
mov ecx, dword [esp + 0x4dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000234c
add esp, 0x4d0
ret
call fcn.10001e29
int3