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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445751
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
mov ecx, dword [ebp + 0x10]
push esi
test ecx, ecx
push edi
mov dword [esp + 0x14], 0
je 0x4112fc
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
jl 0x4112fc
cmp eax, 0x40
jg 0x4112fc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x288]
push ecx
push eax
call edi
lea ecx, [esp + 0x288]
push 0x104
push ecx
call fcn.00410af0
add esp, 8
lea edx, [esp + 0x288]
lea eax, [esp + 0x40]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
push 0x452918
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x148]
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4112fc
test byte [esp + 0x148], 0x10
je 0x4111be
lea ecx, [esp + 0x174]
push 0x452920
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4112d3
lea edx, [esp + 0x174]
push 0x45291c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4112d3
lea eax, [esp + 0x288]
lea ecx, [esp + 0x40]
push eax
push ecx
call edi
lea edx, [esp + 0x174]
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x40]
push 0x104
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call fcn.00411050
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4112d3
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x394]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
lea edx, [esp + 0x288]
lea eax, [esp + 0x40]
inc ecx
push edx
push eax
mov dword [esi], ecx
call edi
lea ecx, [esp + 0x174]
lea edx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x40]
push 0x104
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edx, dword [esp + 0x164]
push 1
push 0
push 0
push edx
call fcn.0042da20
mov esi, eax
mov eax, dword [esp + 0x168]
mov edi, edx
xor ecx, ecx
lea edx, [esp + 0x40]
add esi, eax
push edx
adc edi, ecx
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
lea ecx, [esp + 0x14]
call fcn.0043bf90
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x3a0], 0
call fcn.0043bc97
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x39c], 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043bc97
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov byte [esp + 0x3a4], 2
call fcn.004120d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x39c], 1
call fcn.0043bf22
lea ecx, [esp + 0x18]
mov byte [esp + 0x39c], 0
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov dword [esp + 0x39c], 0xffffffff
call fcn.0043bf22
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi], 0x40
jge 0x41119b
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x148]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411101
jmp 0x41119b
mov ecx, dword [esp + 0x394]
pop edi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret