Function at 0x1011d4d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor ebx, ebx
and byte [ebp - 0x110], bl
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
jne 0x1011d96
mov dword [ebp - 4], 1
jmp 0x1012018
lea eax, [eax + edi - 1]
cmp byte [eax], 0x5c
jne 0x1011da9
and byte [eax], 0
mov dword [ebp - 0x10], 1
push edi
call esi
mov ebx, 0x10073a8
push ebx
mov edi, eax
call esi
lea eax, [edi + eax + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1011fdc
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call ebx
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x1011e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1011fd7
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x110]
push 0x1007508
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 6
push 0x8000000
call fcn.0100e994
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x1003a24
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
lea eax, [ebp - 0x224]
push eax
call esi
lea eax, [edi + eax + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1011fdc
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1003a24
push edi
call ebx
lea eax, [ebp - 0x224]
push eax
push edi
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0x10074d4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 6
push 0x8000000
call fcn.0100e994
test byte [ebp - 0x250], 0x10
je 0x1011eec
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0x10074a8
push eax
mov dword [ebp - 0xc], 5
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 6
push 0x8000000
call fcn.0100e994
jmp 0x1011f04
push edi
mov dword [ebp - 0xc], 4
call fcn.010116c0
test eax, eax
mov dword [ebp - 4], eax
jne 0x1011fe3
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1011fcc
test byte [ebp - 0x250], 0x10
je 0x1011f61
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x110]
push 0x1007474
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 6
push 0x8000000
call fcn.0100e994
jmp 0x1011fc0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x1003a24
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
lea eax, [ebp - 0x224]
push eax
call esi
lea eax, [edi + eax + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1011fdc
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1003a24
push edi
call ebx
lea eax, [ebp - 0x224]
push eax
push edi
call ebx
dec dword [ebp - 0xc]
push edi
call fcn.010116c0
test eax, eax
mov dword [ebp - 4], eax
jne 0x1011fe3
cmp dword [ebp - 0xc], 0
jne 0x1011f04
jmp 0x1011fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1011fe3
mov dword [ebp - 4], eax
jmp 0x1011fe3
mov dword [ebp - 4], 1
test edi, edi
je 0x1011fee
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0
je 0x1012003
cmp dword [ebp - 8], 0xffffffff
je 0x1012003
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x10], 0
je 0x1012018
mov edi, dword [ebp + 8]
push edi
call esi
add eax, edi
and byte [eax + 1], 0
mov byte [eax], 0x5c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4