Function at 0x10008a70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014c47
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1001c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], edi
mov dword [ebp - 4], edi
cmp dword [eax + 0x10], 0x101
jbe 0x10008af0
lea eax, [ebp - 0x43c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
cmp ebx, eax
je 0x10008ae9
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov eax, ebx
jmp 0x10008e02
cmp dword [eax + 0x14], 8
jb 0x10008af8
mov eax, dword [eax]
push 3
push eax
lea edx, [ebp - 0x1dc]
lea ecx, [ebp - 0x1d8]
push edx
mov dword [ebp - 0x1dc], ecx
call fcn.10008e40
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1dc]
mov ecx, eax
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x10008b49
mov cl, byte [edx + eax]
test cl, cl
je 0x10008b49
mov byte [eax], cl
inc eax
dec esi
jne 0x10008b30
jmp 0x10008b4d
cmp esi, edi
jne 0x10008b4e
dec eax
mov byte [eax], 0
mov edx, 0x104
lea eax, [ebp - 0x11c]
lea esp, [esp]
cmp byte [eax], 0
je 0x10008b6b
inc eax
dec edx
jne 0x10008b60
jmp 0x10008b93
cmp edx, edi
je 0x10008b93
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x10017238
lea ecx, [ebp + ecx - 0x11c]
mov edx, SysReAllocString
call fcn.10008a10
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x42c], eax
cmp eax, 0xffffffff
jne 0x10008bf0
lea ecx, [ebp - 0x43c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
cmp ebx, ecx
je 0x10008bcc
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x1dc]
lea edx, [ebp - 0x1d8]
cmp eax, edx
je 0x10008be6
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, ebx
jmp 0x10008e02
push 3
lea ecx, [ebp - 0x3f8]
push ecx
lea edx, [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
push edx
mov dword [ebp - 0x2e4], eax
call fcn.10008f10
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x138], ax
mov eax, dword [ebp - 0x2e4]
mov ecx, eax
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x128], edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10008c40
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x138]
call fcn.10004530
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x128]
mov eax, dword [0x1001c4e0]
cmp ecx, eax
jbe 0x10008d14
or ebx, 0xffffffff
cmp eax, 0xffffffff
jae 0x10008c7c
mov ebx, eax
mov edx, dword [0x1001c4d0]
mov esi, 8
cmp dword [0x1001c4e4], esi
jae 0x10008c94
mov edx, 0x1001c4d0
sub ecx, eax
push edx
push ecx
lea ecx, [ebp - 0x138]
call fcn.10008fd0
test eax, eax
sete al
test al, al
je 0x10008d0c
xor ecx, ecx
push ecx
lea edx, [ebp - 0x138]
mov word [ebp - 0x154], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x140], 7
mov dword [ebp - 0x144], 0
call fcn.10004050
lea ecx, [ebp - 0x154]
lea ebx, [ebp - 0x43c]
mov byte [ebp - 4], 4
call fcn.10004910
cmp dword [ebp - 0x140], esi
jb 0x10008d0c
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [ebp - 0x428]
xor edi, edi
cmp dword [ebp - 0x124], 8
jb 0x10008d2d
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2e4]
xor edx, edx
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x128], edi
mov word [ebp - 0x138], dx
cmp eax, ecx
je 0x10008d64
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x424]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10008bf0
mov ecx, dword [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x43c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
cmp ebx, edx
je 0x10008dbf
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp - 0x434]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
xor esi, esi
xor ebx, ebx
jmp 0x10008dcb
mov ebx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x1dc]
lea ecx, [ebp - 0x1d8]
cmp eax, ecx
je 0x10008de5
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp esi, edi
je 0x10008dfc
mov edi, ebx
mov eax, esi
call fcn.100049e0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10012c5c
mov esp, ebp
pop ebp
ret