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

Disassembly:
sub esp, 0x530
push ebx
push ebp
mov ebx, edx
push esi
mov eax, ebx
push edi
mov dword [esp + 0x14], ebx
mov ebp, ecx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52db36
mov edi, ebp
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x52db42
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
push eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [esp + 0x10], eax
mov eax, ebp
mov edi, ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52db77
sub eax, ecx
mov ecx, eax
mov eax, ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52db87
sub eax, esi
sub ecx, eax
test edi, edi
mov byte [ecx + ebp], dl
jne 0x52dc59
mov ebx, dword [esp + 0x54c]
test byte [esp + 0x18], 0x10
je 0x52dbc4
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x52dba4
jmp 0x52dc5d
test ebx, ebx
je 0x52dc0e
lea edx, [esp + 0x158]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x52dbd3
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52dbe3
lea edi, [esp + 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x52dbf4
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]
jmp 0x52dc20
xor eax, eax
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x52dc10
mov esi, dword [esp + 0x544]
test esi, esi
je 0x52dc41
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x15c]
call fcn.004c2560
test eax, eax
je 0x52dc41
mov dword [esi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x52dba4
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x52dc69
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, ebp
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52dc70
mov edx, dword [0x577a10]
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
xor edx, edx
cmp edi, 0xffffffff
mov eax, ebp
mov dword [esp + 0x10], edi
sete dl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52dca0
sub eax, esi
test edx, edx
mov byte [eax + ebp - 3], cl
jne 0x52dd77
mov ebx, dword [esp + 0x548]
lea esp, [esp]
test byte [esp + 0x18], 0x10
je 0x52dd63
cmp byte [esp + 0x44], 0x2e
je 0x52dd63
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52dce0
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x52dcf0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x52dd1d
mov ecx, dword [ebx]
push 0
mov edx, ebp
call fcn.004c2560
test eax, eax
je 0x52dd1d
mov dword [ebx], eax
mov ecx, ebp
call fcn.0041f4e0
mov ecx, dword [esp + 0x544]
mov edx, dword [esp + 0x14]
push 1
push ebx
push ecx
mov ecx, ebp
call fcn.0052db20
push 0x5c
push ebp
call fcn.00563c90
add esp, 8
test eax, eax
je 0x52dd5f
push 0x5c
push ebp
mov byte [eax], 0
call fcn.00563c90
add esp, 8
test eax, eax
je 0x52dd5f
mov byte [eax + 1], 0
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x52dcc0
cmp edi, 0xffffffff
je 0x52dd83
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x530
ret 0xc