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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5bc
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x5b8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
lea edx, [esp + 0x16c]
sub edx, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x24], 7
mov byte [esp + 0x25], 0x1d
mov word [esp + 0x26], 0x16
mov dword [esp + 0x20], edx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4111d0
mov eax, esi
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4111e0
lea edi, [esp + 0x170]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4111f5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
push 0
mov dword [esp + 0x10], ebx
call esi
cmp ebx, 0xffffffff
je 0x411323
lea ecx, [ecx]
mov edi, 0x476ed4
lea esi, [esp + 0x5c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x411302
mov edi, 0x476ed0
lea esi, [esp + 0x5c]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x411302
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x50
lea esi, [esp + 0x30]
lea edi, [esp + 0x380]
mov ebx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
add ebx, 0x140
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x4c4]
push esi
push ecx
call fcn.0045d280
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov ch, byte [esp + 0x2a]
mov edx, ebx
shl edx, 0x10
mov eax, ebx
and eax, 0xff00
or edx, eax
add esp, 0xc
shl edx, 8
or edx, ecx
push 7
mov eax, ebx
shr eax, 0x18
push 0xc
lea ecx, [esp + 0x2c]
or edx, eax
push ecx
mov ecx, esi
mov dword [esp + 0x38], edx
call fcn.0044a1f0
push ebx
lea edx, [esp + 0x384]
push edx
mov ecx, esi
call fcn.00449cc0
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411240
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [esp + 0x10]
mov eax, ebx
lea esp, [esp]
mov cl, byte [eax]
mov edx, dword [esp + 0x20]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x411330
lea edi, [esp + 0x170]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x411350
mov ax, word [0x476ecc]
push 1
mov word [edi], ax
call esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
push 0
mov dword [esp + 0x10], edi
call esi
cmp edi, 0xffffffff
je 0x411474
lea ecx, [ecx]
mov edi, 0x476ed4
lea esi, [esp + 0x5c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x411451
mov edi, 0x476ed0
lea esi, [esp + 0x5c]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x411451
test byte [esp + 0x30], 0x10
je 0x411451
lea edx, [esp + 0x278]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4113d6
lea eax, [esp + 0x5c]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4113e8
lea edi, [esp + 0x278]
sub eax, edx
add edi, 0xffffffff
lea ecx, [ecx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x411400
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x278]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x411424
mov ax, word [0x485b00]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x27c]
mov word [edi], ax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00411180
add esp, 0xc
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411390
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x5c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045c20d
mov esp, ebp
pop ebp
ret