Function at 0x1009a640
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
cmp dword [0x100e0c90], 0
jne 0x1009a878
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1009a877
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a667
sub ecx, edx
test ecx, ecx
jle 0x1009a877
push esi
lea esi, [ebp - 0x350]
mov edx, edi
sub esi, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x1009a683
mov esi, edi
lea eax, [esi - 1]
add eax, ecx
mov dword [ebp - 8], eax
cmp byte [eax], 0x5c
je 0x1009a6b9
lea edi, [ebp - 0x350]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1009a6a6
mov ax, word [str..]
mov word [edi], ax
lea edi, [ebp - 0x350]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1009a6c0
mov ax, word [0x100b0544]
mov word [edi], ax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x1009a6fe
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [ebp - 0x24c]
sub ebx, esi
mov eax, esi
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [ebx + eax - 1], cl
test cl, cl
jne 0x1009a710
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
je 0x1009a743
lea edi, [ebp - 0x24c]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1009a730
mov ax, word [str..]
mov word [edi], ax
lea edx, [ebp - 0x11c]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1009a750
lea edi, [ebp - 0x24c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009a760
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x148]
shr esi, 4
and esi, 1
je 0x1009a7f1
mov ecx, 0x100b0548
lea eax, [ebp - 0x11c]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1009a7b0
test dl, dl
je 0x1009a7ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1009a7b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1009a790
xor eax, eax
jmp 0x1009a7b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1009a832
mov ecx, 0x100b054c
lea eax, [ebp - 0x11c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1009a7e8
test dl, dl
je 0x1009a7e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1009a7e8
add eax, 2
add ecx, 2
test dl, dl
jne 0x1009a7c8
xor eax, eax
jmp 0x1009a7ed
sbb eax, eax
or eax, 1
test eax, eax
je 0x1009a832
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
test edi, edi
je 0x1009a812
cmp ecx, esi
je 0x1009a812
push dword [ebp + 0x18]
lea eax, [ebp - 0x24c]
push eax
call edi
test eax, eax
je 0x1009a854
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1009a832
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1009a832
push dword [ebp + 0x18]
push edi
push ecx
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.1009a640
add esp, 0x14
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x1009a86e
mov esi, dword [ebp + 8]
jmp 0x1009a707
push dword [ebp - 4]
mov dword [0x100e0c90], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret