Function at 0x470190
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4c06dc]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov al, 0x3f
push str.save000.sav
push 0x4c2280
mov byte [0x4bac30], al
mov byte [0x4bac31], al
mov byte [0x4bac32], al
lea eax, [esp + 0x168]
push 0x4a11e4
push eax
mov dword [esp + 0x18], 0xffffffff
call ebp
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x470400
cmp edi, 0xffffffff
je 0x470400
test byte [esp + 0x20], 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
jne 0x4702e2
lea eax, [esp + 0x54]
push eax
push 0x4c2280
lea ecx, [esp + 0x170]
push 0x4a11e4
push ecx
call ebp
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x180]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x470280
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00487272
add esp, 0x260
ret
movzx eax, byte [esp + 0x58]
movzx ecx, byte [esp + 0x59]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
lea edx, [eax + eax*4]
movzx eax, byte [esp + 0x5a]
lea edi, [eax + edx*2 - 0x14d0]
cmp edi, dword [esp + 0x274]
jl 0x4702d7
cmp edi, dword [esp + 0x278]
jge 0x4702d7
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x4702d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
push edx
jmp 0x47025e
mov dword [esp + 0x10], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4703f0
jmp 0x470300
test byte [esp + 0x28], 0x10
jne 0x4703dc
lea ecx, [esp + 0x54]
push ecx
push 0x4c2280
lea edx, [esp + 0x170]
push 0x4a11e4
push edx
call ebp
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea eax, [esp + 0x180]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4703dc
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4703dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esp + 0x58]
lea edx, [eax + eax*4]
movzx eax, byte [esp + 0x59]
lea eax, [eax + edx*2]
movzx edx, byte [esp + 0x5a]
lea ecx, [eax + eax*4]
lea esi, [edx + ecx*2 - 0x14d0]
cmp esi, dword [esp + 0x274]
jl 0x4703dc
cmp esi, dword [esp + 0x278]
jge 0x4703dc
cmp dword [esp + 0x10], 0xffffffff
jne 0x4703b3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x4703d8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x4703dc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x470300
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x470267
mov ecx, dword [esp + 0x264]
pop edi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00487272
add esp, 0x260
ret