Function at 0x469050
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4b78cc]
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 0x4b93a0
mov byte [0x4b1b80], al
mov byte [0x4b1b81], al
mov byte [0x4b1b82], al
lea eax, [esp + 0x168]
push 0x498124
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 0x4692c0
cmp edi, 0xffffffff
je 0x4692c0
test byte [esp + 0x20], 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
jne 0x4691a2
lea eax, [esp + 0x54]
push eax
push 0x4b93a0
lea ecx, [esp + 0x170]
push 0x498124
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 0x469140
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.0047dd32
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 0x469197
cmp edi, dword [esp + 0x278]
jge 0x469197
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x469193
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
push edx
jmp 0x46911e
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 0x4692b0
jmp 0x4691c0
test byte [esp + 0x28], 0x10
jne 0x46929c
lea ecx, [esp + 0x54]
push ecx
push 0x4b93a0
lea edx, [esp + 0x170]
push 0x498124
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 0x46929c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46929c
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 0x46929c
cmp esi, dword [esp + 0x278]
jge 0x46929c
cmp dword [esp + 0x10], 0xffffffff
jne 0x469273
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x469298
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x46929c
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 0x4691c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x469127
mov ecx, dword [esp + 0x264]
pop edi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0047dd32
add esp, 0x260
ret