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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4321d0
cmp byte [esi], 0
je 0x4321d0
push 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [ebp - 8], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
test eax, eax
je 0x431f6e
cmp byte [eax + esi - 1], 0x5c
je 0x431f6e
lea eax, [ebp - 0x10c]
push 0x438484
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x354]
push eax
call sub.MSVCRT.dll_strcpy
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop ecx
pop ecx
mov esi, 0x438480
test ebx, ebx
je 0x432093
cmp byte [ebx], 0
je 0x432093
push esi
push ebx
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x432093
test byte [ebp + 0x10], 1
je 0x432099
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x10c]
push esi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x43208a
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
test byte [ebp - 0x24c], 0x10
je 0x43206d
lea eax, [ebp - 0x220]
push 0x43848c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x43206d
lea eax, [ebp - 0x220]
push 0x438488
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x43206d
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00431f0f
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x431ffd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 8], 1
jmp 0x432099
and dword [ebp + 8], 0
mov ebx, esi
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x4321ce
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, pe_nt_image_headers32
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
test byte [ebp - 0x24c], 0x10
je 0x432161
cmp dword [ebp + 8], 0
jne 0x43217e
test byte [ebp + 0x10], 1
je 0x43217e
lea eax, [ebp - 0x220]
push 0x43848c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x43217e
lea eax, [ebp - 0x220]
push 0x438488
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x43217e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00431f0f
jmp 0x43217e
test byte [ebp + 0x10], 2
je 0x432171
push edi
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x24c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4320e3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0x10], 2
je 0x4321af
push edi
lea eax, [ebp - 0x354]
push eax
call esi
cmp dword [ebp + 8], 0
je 0x4321be
mov dword [ebp - 4], 1
jmp 0x4321ce
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], eax
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc