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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov byte [ebx], 0
xor eax, eax
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
push esi
call fcn.0054e1b0
add esp, 8
lea edx, [ebp - 0x14c]
push edx
push esi
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4850cf
mov dword [ebp - 4], 1
jmp 0x4850d4
xor eax, eax
mov dword [ebp - 4], eax
push esi
call fcn.0054e28c
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.0054e28c
pop ecx
pop edx
sub edx, eax
mov byte [esi + edx], 0
jmp 0x4853cf
test byte [ebp - 0x14c], 0x10
je 0x485151
cmp dword [ebp + 0x1c], 0
je 0x485130
push 0x565c0c
lea ecx, [ebp - 0x120]
push ecx
call fcn.0054e450
add esp, 8
test eax, eax
je 0x485130
push 0x565c0f
lea eax, [ebp - 0x120]
push eax
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x485178
lea edx, [ebp - 0x14c]
push edx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4853cf
mov dword [ebp - 4], 1
jmp 0x4853cf
cmp dword [ebp + 0x1c], 1
jne 0x485178
lea ecx, [ebp - 0x14c]
push ecx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4853cf
mov dword [ebp - 4], 1
jmp 0x4853cf
push 0x2e
lea eax, [ebp - 0x120]
push eax
call fcn.0054e1ec
add esp, 8
test eax, eax
jne 0x4851f3
push 0x2e
push dword [ebp + 0xc]
call fcn.0054e1ec
add esp, 8
test eax, eax
je 0x4851f3
lea edx, [ebp - 0x120]
push edx
push 0x565c13
lea ecx, [ebp - 0x250]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 0xc]
call fcn.0051f0b8
test eax, eax
jne 0x48522b
lea edx, [ebp - 0x14c]
push edx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4853cf
mov dword [ebp - 4], 1
jmp 0x4853cf
push 1
push 0
lea ecx, [ebp - 0x120]
push ecx
push dword [ebp + 0xc]
call fcn.0051f0b8
test eax, eax
jne 0x48522b
lea eax, [ebp - 0x14c]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4853cf
mov dword [ebp - 4], 1
jmp 0x4853cf
inc dword [ebp - 8]
cmp dword [ebp + 0x14], 0
jle 0x485240
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x14]
jl 0x48535a
cmp dword [ebp + 0x18], 0
jne 0x485250
cmp dword [ebp + 0x20], 0
je 0x48535a
push esi
push edi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [ebp - 0x120]
push eax
push ebx
call fcn.0054e1b0
add esp, 8
cmp dword [ebp + 0x48], 0
je 0x485291
push ebx
call fcn.00414e47
cmp dword [ebp + 0x18], 0
je 0x4852c5
push ebx
push 0
push 0x180
push dword [ebp + 0x18]
call sub.USER32.dll_SendMessageA
cmp eax, 0xffffffff
je 0x4852c5
cmp eax, 0xfffffffe
je 0x4852c5
push dword [0x561908]
push eax
push 0x19a
push dword [ebp + 0x18]
call sub.USER32.dll_SendMessageA
cmp dword [ebp + 0x20], 0
je 0x485357
push 0
push dword [ebp + 0x20]
push 0
call fcn.004c6a18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4852f6
push 2
push 0
push 0
push 0
call fcn.00479438
jmp 0x485552
cmp dword [ebp + 0x28], 0
je 0x485303
mov eax, 2
jmp 0x485308
mov eax, 1
xor edx, edx
mov dword [ebp + 0x34], edx
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x44]
push 0
push dword [ebp + 0x40]
push 0
push 0
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x2c]
push 0
push 0
push 0
push 0
push dword [ebp + 0x30]
push eax
push ebx
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0x5c]
push dword [ecx]
call fcn.004b08ad
lea eax, [ebp - 0xc]
push eax
call fcn.004c6e49
mov byte [ebx], 0
cmp dword [ebp + 0x14], 0
jle 0x4853b7
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x14]
jl 0x4853b7
push esi
push edi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [ebp - 0x120]
push eax
push ebx
call fcn.0054e1b0
add esp, 8
cmp dword [ebp + 0x48], 0
je 0x4853a9
push ebx
call fcn.00414e47
push edi
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp - 8]
jmp 0x485552
lea edx, [ebp - 0x14c]
push edx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4853cf
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x4850f1
cmp edi, 0xffffffff
je 0x4853e4
push edi
call sub.KERNEL32.dll_FindClose
dec dword [ebp + 0x24]
cmp dword [ebp + 0x24], 0
jg 0x4853f5
mov eax, dword [ebp - 8]
jmp 0x485552
push 0x565c18
push esi
call fcn.0054e1b0
add esp, 8
lea edx, [ebp - 0x14c]
push edx
push esi
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x485420
mov dword [ebp - 4], 1
jmp 0x485425
xor eax, eax
mov dword [ebp - 4], eax
push esi
call fcn.0054e28c
pop ecx
mov byte [esi + eax - 3], 0
jmp 0x48553a
test byte [ebp - 0x14c], 0x10
je 0x48546f
push 0x565c1d
lea edx, [ebp - 0x120]
push edx
call fcn.0054e450
add esp, 8
test eax, eax
je 0x48546f
push 0x565c20
lea ecx, [ebp - 0x120]
push ecx
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x485490
lea eax, [ebp - 0x14c]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x48553a
mov dword [ebp - 4], 1
jmp 0x48553a
lea edx, [ebp - 0x120]
push edx
push esi
call fcn.0054e1b0
add esp, 8
push 0x565c24
push esi
call fcn.0054e1b0
add esp, 8
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp - 8]
push ecx
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0048508c
add dword [ebp - 8], eax
cmp byte [ebx], 0
jne 0x485544
push 0x5c
push esi
call fcn.0054e574
add esp, 8
test eax, eax
je 0x485522
mov byte [eax], 0
push 0x5c
push esi
call fcn.0054e574
add esp, 8
test eax, eax
je 0x485522
inc eax
mov byte [eax], 0
lea eax, [ebp - 0x14c]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x48553a
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x485436
cmp edi, 0xffffffff
je 0x48554f
push edi
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x58