Function at 0x46f2c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4be944]
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 0x4c0528
mov byte [0x4b8bfc], al
mov byte [0x4b8bfd], al
mov byte [0x4b8bfe], al
lea eax, [esp + 0x168]
push 0x49f164
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 0x46f530
cmp edi, 0xffffffff
je 0x46f530
test byte [esp + 0x20], 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
jne 0x46f412
lea eax, [esp + 0x54]
push eax
push 0x4c0528
lea ecx, [esp + 0x170]
push 0x49f164
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 0x46f3b0
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.00484c9e
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 0x46f407
cmp edi, dword [esp + 0x278]
jge 0x46f407
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x46f403
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
push edx
jmp 0x46f38e
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 0x46f520
jmp 0x46f430
test byte [esp + 0x28], 0x10
jne 0x46f50c
lea ecx, [esp + 0x54]
push ecx
push 0x4c0528
lea edx, [esp + 0x170]
push 0x49f164
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 0x46f50c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46f50c
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 0x46f50c
cmp esi, dword [esp + 0x278]
jge 0x46f50c
cmp dword [esp + 0x10], 0xffffffff
jne 0x46f4e3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x46f508
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x46f50c
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 0x46f430
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x46f397
mov ecx, dword [esp + 0x264]
pop edi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00484c9e
add esp, 0x260
ret