Function at 0x46bac0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4ba858]
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 0x4bcb08
mov byte [0x4b4b04], al
mov byte [0x4b4b05], al
mov byte [0x4b4b06], al
lea eax, [esp + 0x168]
push 0x49b13c
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 0x46bd30
cmp edi, 0xffffffff
je 0x46bd30
test byte [esp + 0x20], 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
jne 0x46bc12
lea eax, [esp + 0x54]
push eax
push 0x4bcb08
lea ecx, [esp + 0x170]
push 0x49b13c
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 0x46bbb0
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.0048171f
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 0x46bc07
cmp edi, dword [esp + 0x278]
jge 0x46bc07
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x46bc03
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
push edx
jmp 0x46bb8e
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 0x46bd20
jmp 0x46bc30
test byte [esp + 0x28], 0x10
jne 0x46bd0c
lea ecx, [esp + 0x54]
push ecx
push 0x4bcb08
lea edx, [esp + 0x170]
push 0x49b13c
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 0x46bd0c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46bd0c
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 0x46bd0c
cmp esi, dword [esp + 0x278]
jge 0x46bd0c
cmp dword [esp + 0x10], 0xffffffff
jne 0x46bce3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x46bd08
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x46bd0c
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 0x46bc30
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x46bb97
mov ecx, dword [esp + 0x264]
pop edi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0048171f
add esp, 0x260
ret