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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x358
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], edx
lea edi, [esp + 0x260]
mov esi, ebx
sub edi, ebx
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x427c01
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427c11
sub ecx, edx
cmp byte [esp + ecx + 0x25f], 0x5c
je 0x427c43
lea edi, [esp + 0x260]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x427c30
mov ax, word [0x4a20f0]
mov word [edi], ax
lea edi, [esp + 0x260]
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x427c50
mov eax, dword [0x4a20f4]
mov dword [edi], eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
mov edx, 0x4a20f8
lea ecx, [esp + 0x14c]
nop dword [eax]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x427cb0
test al, al
je 0x427cac
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x427cb0
add ecx, 2
add edx, 2
test al, al
jne 0x427c90
xor eax, eax
jmp 0x427cb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x427de0
mov ecx, 0x4a20fc
lea eax, [esp + 0x14c]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x427cf0
test dl, dl
je 0x427cec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x427cf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x427cd0
xor eax, eax
jmp 0x427cf5
sbb eax, eax
or eax, 1
test eax, eax
je 0x427de0
lea edx, [esp + 0x18]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x427d05
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427d17
sub ecx, edx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x427d43
lea edi, [esp + 0x18]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x427d30
mov ax, word [0x4a2100]
mov word [edi], ax
lea edx, [esp + 0x14c]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x427d50
lea edi, [esp + 0x18]
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x427d60
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [esp + 0x120], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x427d96
cmp dword [0x4b01dc], 0
je 0x427de0
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.00427be0
jmp 0x427de0
lea ecx, [esp + 0x18]
call fcn.0040f390
mov dword [0x24b1aa0], eax
cmp eax, 0xa
jle 0x427de0
lea ecx, [esp + 0x18]
call fcn.00426920
lea eax, [esp + 0x14c]
push eax
push str.Adding_ROM_to_list:__s
push 0x4b0ef0
call fcn.0040e260
add esp, 0xc
push 0x4b0ef0
push 0
push 0x401
push dword [0x4b09c0]
call ebp
lea eax, [esp + 0x120]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x427c81
push 0x49b4bd
push eax
push 0x401
push dword [0x4b09c0]
call ebp
cmp dword [esp + 0x14], 0
je 0x427e19
call fcn.004278e0
push 0x4a1ff0
call fcn.00426230
push eax
call fcn.00401000
mov esi, eax
add esp, 8
test esi, esi
je 0x427e65
push 4
push 0x4b1660
push esi
call fcn.00401cc0
imul ecx, dword [0x4b1660], 0x658
add esp, 0xc
push ecx
push dword [0x4b1668]
push esi
call fcn.00401cc0
add esp, 0xc
push esi
call fcn.004023d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret