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

Disassembly:
sub esp, 0xa7c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x228]
mov dword [esp + 0x224], ebx
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa90]
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x41d7d5
cmp dword [esp + 0xa94], ebx
je 0x41d7d5
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
push eax
lea eax, [esp + 0x20]
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
call fcn.0041d0f0
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x28]
push edx
call esi
add esp, 0x10
cmp eax, ebx
jle 0x41d5c2
cmp word [esp + eax*2 + 0x1a], 0x2b
lea ecx, [esp + eax*2 + 0x1a]
jne 0x41d5c2
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 1
push eax
mov word [ecx], bx
call fcn.0041d0f0
lea ecx, [esp + 0x20]
push ecx
call esi
add esp, 8
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
mov ebp, dword [sym.imp.MSVCRT.dll_wcsrchr]
cmp eax, 1
jle 0x41d5f5
cmp word [esp + eax*2 + 0x1a], 0x5c
jne 0x41d5f5
lea edx, [esp + 0x1c]
push 0x4347f8
push edx
call esi
push 0x4347f8
lea eax, [esp + 0x688]
jmp 0x41d63c
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call ebp
add esp, 8
cmp eax, ebx
je 0x41d624
mov word [eax], bx
add eax, 2
lea edx, [esp + 0x67c]
push eax
push edx
call edi
lea eax, [esp + 0x24]
push 0x4347f0
push eax
call esi
jmp 0x41d63f
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x67c]
push ecx
push edx
call edi
push 0x4347f8
lea eax, [esp + 0x28]
push eax
call edi
add esp, 0x10
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x224]
cmp eax, ebx
push ecx
jne 0x41d66c
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x41d7c6
jmp 0x41d67b
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41d7bb
cmp word [esp + 0x250], 0x2e
je 0x41d642
test byte [esp + 0x224], 0x10
je 0x41d733
cmp dword [esp + 0x18], ebx
je 0x41d642
lea edx, [esp + 0x1c]
lea eax, [esp + 0x474]
push edx
push eax
call edi
lea ecx, [esp + 0x47c]
push 0x5c
push ecx
call ebp
add esp, 0x10
cmp eax, ebx
je 0x41d6c2
mov word [eax + 2], bx
jmp 0x41d6ca
mov word [esp + 0x474], bx
lea edx, [esp + 0x250]
lea eax, [esp + 0x474]
push edx
push eax
call esi
lea ecx, [esp + 0x47c]
push 0x4338f4
push ecx
call esi
lea edx, [esp + 0x68c]
lea eax, [esp + 0x484]
push edx
push eax
call esi
lea ecx, [esp + 0x48c]
push 0x4347ec
push ecx
call esi
mov edx, dword [esp + 0xab4]
lea eax, [esp + 0x494]
push edx
push eax
call fcn.0041d520
mov ecx, dword [esp + 0x38]
add esp, 0x28
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x41d642
lea ecx, [esp + 0x250]
lea edx, [esp + 0x67c]
push ecx
push edx
call fcn.0041b4c0
add esp, 8
test eax, eax
je 0x41d642
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x884]
push eax
push ecx
call edi
lea edx, [esp + 0x88c]
push 0x5c
push edx
call ebp
add esp, 0x10
cmp eax, ebx
je 0x41d77b
mov word [eax + 2], bx
jmp 0x41d783
mov word [esp + 0x884], bx
lea eax, [esp + 0x250]
lea ecx, [esp + 0x884]
push eax
push ecx
call esi
mov eax, dword [esp + 0xa9c]
lea edx, [esp + 0x88c]
push edx
push eax
call fcn.0041d7f0
mov eax, dword [esp + 0x20]
add esp, 0x10
inc eax
mov dword [esp + 0x10], eax
jmp 0x41d642
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa7c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa7c
ret