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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x427e50
xor eax, eax
jmp 0x4280f5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00413a00
lea ecx, [ebp - 0x26c]
call fcn.00412400
movzx ecx, al
test ecx, ecx
je 0x427e91
mov dword [ebp - 0x274], 0
lea ecx, [ebp - 0x26c]
call fcn.00413a40
mov eax, dword [ebp - 0x274]
jmp 0x4280f5
lea ecx, [ebp - 0x26c]
call fcn.00413b50
sub eax, 1
push eax
lea ecx, [ebp - 0x26c]
call fcn.00432370
movzx edx, ax
cmp edx, 0x5c
je 0x427ec0
push 0x5c
lea ecx, [ebp - 0x26c]
call fcn.00413aa0
lea ecx, [ebp - 0x26c]
call fcn.00413b50
cmp eax, 3
jg 0x427ef0
mov dword [ebp - 0x278], 0
lea ecx, [ebp - 0x26c]
call fcn.00413a40
mov eax, dword [ebp - 0x278]
jmp 0x4280f5
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004139e0
push 0x4fa5f4
lea ecx, [ebp - 0x25c]
call fcn.0041fe40
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xffffffff
jne 0x427f65
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x25c]
call fcn.00413a40
lea ecx, [ebp - 0x26c]
call fcn.00413a40
mov eax, dword [ebp - 0x27c]
jmp 0x4280f5
mov dword [ebp - 0x264], 1
cmp dword [ebp - 0x264], 0
je 0x428073
movzx edx, word [ebp - 0x22c]
cmp edx, 0x2e
jne 0x427fc6
movzx eax, word [ebp - 0x22a]
test eax, eax
je 0x427faa
movzx ecx, word [ebp - 0x22a]
cmp ecx, 0x2e
jne 0x427fc6
movzx edx, word [ebp - 0x228]
test edx, edx
jne 0x427fc6
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x264], eax
jmp 0x427f6f
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x270]
call fcn.004139e0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x270]
call fcn.0041fe40
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
je 0x42800b
lea ecx, [ebp - 0x270]
call fcn.00413b20
push eax
call fcn.00427e30
add esp, 4
jmp 0x428049
push 0x80
lea ecx, [ebp - 0x270]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x270]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x428049
lea ecx, [ebp - 0x270]
call fcn.00413b20
push eax
call fcn.0042f930
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x270]
call fcn.00413a40
jmp 0x427f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x260], 0x12
je 0x4280bd
mov dword [ebp - 0x280], 0
lea ecx, [ebp - 0x25c]
call fcn.00413a40
lea ecx, [ebp - 0x26c]
call fcn.00413a40
mov eax, dword [ebp - 0x280]
jmp 0x4280f5
lea ecx, [ebp - 0x26c]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x284], 1
lea ecx, [ebp - 0x25c]
call fcn.00413a40
lea ecx, [ebp - 0x26c]
call fcn.00413a40
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret