Function at 0x553370
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 0x553386
mov edi, ebp
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x553392
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 0x5533c7
sub eax, ecx
mov ecx, eax
mov eax, ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5533d7
sub eax, esi
sub ecx, eax
test edi, edi
mov byte [ecx + ebp], dl
jne 0x5534a9
mov ebx, dword [esp + 0x54c]
test byte [esp + 0x18], 0x10
je 0x553414
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5533f4
jmp 0x5534ad
test ebx, ebx
je 0x55345e
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 0x553423
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x553433
lea edi, [esp + 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x553444
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 0x553470
xor eax, eax
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x553460
mov esi, dword [esp + 0x544]
test esi, esi
je 0x553491
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x15c]
call fcn.004d38f0
test eax, eax
je 0x553491
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 0x5533f4
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x5534b9
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 0x5534c0
mov edx, dword [0x5a81f0]
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 0x5534f0
sub eax, esi
test edx, edx
mov byte [eax + ebp - 3], cl
jne 0x5535c7
mov ebx, dword [esp + 0x548]
lea esp, [esp]
test byte [esp + 0x18], 0x10
je 0x5535b3
cmp byte [esp + 0x44], 0x2e
je 0x5535b3
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x553530
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x553540
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 0x55356d
mov ecx, dword [ebx]
push 0
mov edx, ebp
call fcn.004d38f0
test eax, eax
je 0x55356d
mov dword [ebx], eax
mov ecx, ebp
call fcn.00422770
mov ecx, dword [esp + 0x544]
mov edx, dword [esp + 0x14]
push 1
push ebx
push ecx
mov ecx, ebp
call fcn.00553370
push 0x5c
push ebp
call fcn.00591bd0
add esp, 8
test eax, eax
je 0x5535af
push 0x5c
push ebp
mov byte [eax], 0
call fcn.00591bd0
add esp, 8
test eax, eax
je 0x5535af
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 0x553510
cmp edi, 0xffffffff
je 0x5535d3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x530
ret 0xc