Function at 0x1008febc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x25c], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], edi
test eax, eax
je 0x10090243
test edi, edi
jle 0x10090243
push esi
push 0x250
xor esi, esi
lea eax, [ebp - 0x254]
push esi
push eax
call fcn.1012db70
push 0x18
call fcn.10010082
add esp, 0x10
test eax, eax
je 0x1008ff34
lea ecx, [ebp - 0x254]
push ecx
push ebx
call eax
jmp 0x1008ff42
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
mov ecx, esi
mov dword [ebp - 0x268], ecx
cmp eax, 0xffffffff
je 0x1009023e
or dword [ebp - 0x260], 0xffffffff
mov ebx, esi
push 0x2e
push esi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x1009006e
push eax
push edi
push dword [ebp - 0x270]
call fcn.10090f9b
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x258], ecx
test ecx, ecx
js 0x1009006e
mov eax, dword [ebp - 0x260]
test eax, eax
js 0x10090053
cmp dword [ebp - 0x274], esi
je 0x1008fff3
test ebx, ebx
jne 0x1008fff7
push 0x1024c714
xor ecx, ecx
mov eax, edi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012b9b2
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10090053
mov ecx, edi
shl ecx, 2
push ecx
push esi
push ebx
call fcn.1012db70
mov eax, dword [ebp - 0x260]
add esp, 0xc
mov ecx, dword [ebp - 0x258]
test ebx, ebx
je 0x10090053
cmp ecx, eax
jge 0x1009002a
cmp dword [ebx + eax*4], esi
jne 0x10090028
mov ecx, dword [ebp - 0x270]
push dword [ebp + 0x14]
push dword [ecx + eax*4]
push dword [ebp - 0x25c]
call fcn.1009128e
mov ecx, dword [ebp - 0x260]
mov dword [ebx + ecx*4], eax
mov eax, ecx
mov ecx, dword [ebp - 0x258]
cmp ecx, eax
jle 0x10090053
cmp dword [ebx + ecx*4], esi
jne 0x10090053
mov eax, dword [ebp - 0x270]
push dword [ebp + 0x14]
push dword [eax + ecx*4]
push dword [ebp - 0x25c]
call fcn.1009128e
mov ecx, dword [ebp - 0x258]
mov dword [ebx + ecx*4], eax
jmp 0x10090059
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x260]
cmp eax, 0xffffffff
je 0x10090068
cmp ecx, eax
jge 0x1009006e
mov dword [ebp - 0x260], ecx
push 0x1a
call fcn.10010082
pop ecx
test eax, eax
je 0x1009008b
lea ecx, [ebp - 0x254]
push ecx
push dword [ebp - 0x26c]
call eax
jmp 0x1009009e
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1008ff62
push dword [ebp - 0x26c]
mov dword [ebp - 0x258], ebx
call fcn.100226fd
mov edi, dword [ebp - 0x260]
test edi, edi
js 0x100900f3
push 0x2e
push esi
push dword [ebp - 0x25c]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x100900f3
mov ecx, dword [ebp - 0x270]
push dword [ecx + edi*4]
mov ecx, dword [ebp + 0x14]
inc ecx
push ecx
push eax
call fcn.10019f19
xor eax, eax
inc eax
mov dword [ebp - 0x268], eax
jmp 0x100900f5
mov eax, esi
mov edi, esi
test ebx, ebx
je 0x10090238
test eax, eax
je 0x10090213
mov ecx, dword [ebp - 0x264]
mov eax, esi
mov dword [ebp - 0x25c], eax
test ecx, ecx
jle 0x10090213
mov esi, dword [ebp - 0x260]
mov edx, dword [ebx + eax*4]
test edx, edx
je 0x10090144
cmp esi, eax
je 0x10090144
push edx
call fcn.10130fe5
inc eax
pop ecx
mov ecx, dword [ebp - 0x264]
add edi, eax
mov eax, dword [ebp - 0x25c]
inc eax
mov dword [ebp - 0x25c], eax
cmp eax, ecx
jl 0x10090123
push 0
pop esi
test edi, edi
je 0x10090213
add edi, 1
je 0x10090213
push 0x1024c714
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012b9b2
mov dword [ebp - 0x25c], eax
pop ecx
pop ecx
test eax, eax
je 0x10090213
lea ecx, [edi + edi]
push ecx
push esi
push eax
call fcn.1012db70
mov eax, dword [ebp - 0x258]
mov ebx, esi
mov ecx, dword [ebp - 0x264]
add esp, 0xc
mov esi, dword [ebp - 0x260]
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x100901f2
cmp esi, ebx
je 0x100901f2
push edx
push edi
push dword [ebp - 0x25c]
call fcn.100552d1
mov ecx, dword [ebp - 0x264]
lea eax, [ecx - 1]
cmp ebx, eax
jge 0x100901ec
push 0x101846a8
push edi
push dword [ebp - 0x25c]
call fcn.100552d1
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x258]
inc ebx
cmp ebx, ecx
jl 0x100901b0
push dword [ebp - 0x25c]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x274]
xor esi, esi
mov ebx, dword [ebp - 0x258]
mov dword [ecx], eax
mov edi, dword [ebp - 0x264]
test edi, edi
jle 0x10090231
cmp dword [ebx + esi*4], 0
je 0x1009022c
push dword [ebx + esi*4]
call fcn.1012b7b2
pop ecx
inc esi
cmp esi, edi
jl 0x1009021d
push ebx
call fcn.1012b7b2
pop ecx
mov ecx, dword [ebp - 0x268]
mov eax, ecx
pop esi
jmp 0x10090245
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret 0x14