Function at 0x4583f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x58c
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x584], eax
mov eax, dword [str.______________:___]
mov ecx, dword [0x495a14]
mov edx, dword [0x495a18]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [0x495a1c]
push ebp
mov dword [esp + 0x38], eax
mov eax, dword [0x4b5af0]
mov dword [esp + 0x30], ecx
mov cx, word [0x495a20]
mov dword [esp + 0x34], edx
mov dl, byte [0x495a22]
push esi
push edi
mov word [esp + 0x44], cx
mov byte [esp + 0x46], dl
test eax, eax
jne 0x458453
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x100
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, eax
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
cmp ebx, 0x63
jne 0x4584bd
push 0x4b3848
lea eax, [esp + 0x194]
push str._s_save_file00.dat
push eax
call fcn.0045f116
add esp, 0xc
jmp 0x4584db
lea ecx, [ebx + 1]
push ecx
push 0x4b3848
lea edx, [esp + 0x198]
push str._s_save_file_02d.dat
push edx
call fcn.0045f116
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
lea eax, [esp + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x458640
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
call ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0x40
jb 0x458640
cmp dword [esi], 1
jne 0x458640
lea eax, [esi + 0x10]
lea edx, [esp + 0x50]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x458567
movzx edx, word [esp + 0x14]
push 0xa
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.00460624
movzx eax, byte [esp + 0x54]
mov dl, byte [esp + 0x56]
mov cl, byte [esp + 0x55]
mov byte [esp + 0x41], al
movzx eax, byte [esp + 0x57]
mov byte [esp + 0x44], al
movzx eax, word [esp + 0x22]
mov byte [esp + 0x43], dl
cdq
mov byte [esp + 0x42], cl
mov ecx, 0xa
idiv ecx
add esp, 0xc
add al, 0x30
mov byte [esp + 0x3a], al
movzx eax, word [esp + 0x1a]
add dl, 0x30
mov byte [esp + 0x3b], dl
cdq
idiv ecx
add al, 0x30
mov byte [esp + 0x3d], al
movzx eax, word [esp + 0x1c]
add dl, 0x30
mov byte [esp + 0x3e], dl
cdq
idiv ecx
add al, 0x30
mov byte [esp + 0x40], al
movzx eax, word [esp + 0x1e]
add dl, 0x30
mov byte [esp + 0x41], dl
cdq
idiv ecx
add dl, 0x30
add al, 0x30
mov byte [esp + 0x44], dl
lea edx, [esp + 0x34]
mov byte [esp + 0x43], al
lea eax, [esp + 0x50]
push edx
push eax
cmp ebx, 0x63
jne 0x458627
lea ecx, [esp + 0x98]
push 0x495a24
push ecx
call fcn.0045f116
add esp, 0x10
jmp 0x458640
lea ecx, [ebx + 1]
push ecx
lea edx, [esp + 0x9c]
push 0x495a38
push edx
call fcn.0045f116
add esp, 0x14
inc ebx
cmp ebx, 0x64
jl 0x45846b
mov eax, dword [0x4b5af0]
test eax, eax
jne 0x458659
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.00454510
mov ecx, dword [esp + 0x594]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f0aa
add esp, 0x58c
ret