Function at 0x4020b0
Capabilities:
Enumerate files on windows
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x46c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x36d]
push 0
push eax
mov byte [esp + 0x374], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x265]
push 0
push ecx
mov byte [esp + 0x26c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x15d]
push 0
push edx
mov byte [esp + 0x164], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x158]
push eax
push 0x104
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
push str.Romdatacps1
lea ecx, [esp + 0x15c]
push ecx
mov edx, ecx
push str._s_s
push edx
call ebx
push str..dat
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x380]
push str._s_s
push ecx
call ebx
add esp, 0x20
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
je 0x4022fe
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x268]
push str._s_s
push eax
call ebx
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40222a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
je 0x40222a
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea edx, [esp + 0x18]
push edx
push ebp
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push edi
call fcn.00401890
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4022f7
mov edi, edi
push 0x104
lea ecx, [esp + 0x264]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x268]
push str._s_s
push ecx
call ebx
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4022e3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
je 0x4022e3
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push edi
call fcn.00401890
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402240
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004098be
add esp, 0x46c
ret