Function at 0x453d50
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x408], eax
push ebp
push esi
push edi
push 0x4b3848
lea eax, [esp + 0x18]
push str._s_save_system.dat
push eax
call fcn.0045f116
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
lea ecx, [esp + 0x2c]
push ecx
call esi
mov edi, eax
push 0
cmp edi, 0xffffffff
jne 0x454089
push 0x80000080
push 4
push 0
push 0
push 0x40000000
lea edx, [esp + 0x2c]
push edx
call esi
push 0
push 0
push 0
mov ebp, eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
jne 0x453e0c
push eax
mov eax, dword [0x4b3c9c]
push 0x4938a8
push 0x495918
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0045f0aa
add esp, 0x40c
ret
mov eax, dword [0x4b5af0]
test eax, eax
jne 0x453e1b
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x50c
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
mov ecx, 0x143
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x4b2338]
mov dword [0x4b3d88], eax
mov dword [esi], eax
mov eax, dword [0x4b233c]
mov dword [0x4b3d8c], eax
mov dword [esi + 4], eax
mov eax, dword [0x4b2340]
mov dword [0x4b3d90], eax
mov dword [esi + 8], eax
mov eax, dword [0x4b2344]
mov dword [0x4b3d94], eax
mov dword [esi + 0xc], eax
mov eax, dword [0x4b2348]
mov dword [0x4b3d98], eax
mov dword [esi + 0x10], eax
mov eax, dword [0x4b2350]
mov dword [0x4b3da4], eax
mov dword [esi + 0x14], eax
mov eax, dword [0x4b2354]
mov dword [0x4b3da8], eax
mov dword [esi + 0x18], eax
mov eax, dword [0x4b2358]
mov dword [0x4b3dac], eax
mov dword [esi + 0x1c], eax
mov eax, dword [0x4b275c]
mov dword [0x4b41b4], eax
mov dword [esi + 0x20], eax
mov edi, 1
mov dword [0x4b3d9c], edi
mov dword [esi + 0x24], edi
mov eax, dword [0x4b234c]
mov dword [0x4b3da0], eax
mov dword [esi + 0x28], eax
xor eax, eax
jmp 0x453ed0
mov cl, byte [eax + 0x4b2318]
mov byte [eax + 0x4b3d58], cl
add eax, edi
test cl, cl
jne 0x453ed0
mov eax, 0x4b3d58
mov ecx, esi
sub ecx, eax
lea edx, [ecx + 0x2c]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, edi
test cl, cl
jne 0x453ef0
mov eax, 0x4b3d58
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x453f03
sub eax, ecx
add eax, 4
shr eax, 2
add eax, 0xb
mov dword [0x4b3d78], 0x14
mov dword [esi + eax*4], 0x14
mov edx, dword [0x4b5b58]
mov ecx, dword [0x4b2774]
add eax, edi
mov dword [0x4b3d7c], edx
mov dword [esi + eax*4], ecx
add eax, edi
mov dword [0x4b557c], ecx
mov ecx, dword [0x4b2778]
mov dword [esi + eax*4], ecx
add eax, edi
mov dword [0x4b5234], ecx
mov ecx, dword [0x4b277c]
mov dword [esi + eax*4], ecx
add eax, edi
mov dword [0x4b3044], ecx
mov ecx, dword [0x4b2780]
mov dword [esi + eax*4], ecx
add eax, edi
mov dword [0x4b41bc], 0
mov dword [esi + eax*4], 0
add eax, edi
mov dword [0x4b41e4], ecx
mov ecx, dword [0x4b2760]
mov dword [0x4b41c0], ecx
mov dword [esi + eax*4], ecx
mov ecx, dword [0x4b2764]
add eax, edi
mov dword [0x4b41c4], ecx
mov dword [esi + eax*4], ecx
mov ecx, dword [0x4b2768]
add eax, edi
mov dword [0x4b41c8], ecx
mov dword [esi + eax*4], ecx
add eax, edi
mov dword [0x4b41d0], 0
mov dword [esi + eax*4], 0
add eax, edi
mov dword [0x4b41d4], 0x46
mov dword [esi + eax*4], 0x46
mov ecx, dword [0x4b2770]
add eax, edi
mov dword [0x4b41d8], ecx
mov dword [esi + eax*4], ecx
add eax, edi
mov dword [0x4b41dc], edi
mov dword [esi + eax*4], edi
add eax, edi
xor ecx, ecx
jmp 0x454010
mov edx, dword [ecx + 0x4b235c]
mov dword [ecx + 0x4b3db0], edx
mov dword [esi + eax*4], edx
add ecx, 4
add eax, edi
cmp ecx, 0x200
jb 0x454010
lea edx, [esi + eax*4]
xor eax, eax
mov ecx, dword [eax + 0x4b255c]
mov dword [eax + 0x4b3fb0], ecx
mov dword [edx], ecx
add eax, 4
add edx, 4
cmp eax, 0x200
jb 0x454031
push 0
lea eax, [esp + 0x14]
push eax
push 0x50c
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x454295
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebp, eax
push ebp
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
jne 0x4540db
mov ecx, dword [0x4b3c9c]
push eax
push 0x4938a8
push 0x495918
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0045f0aa
add esp, 0x40c
ret
mov eax, dword [0x4b5af0]
test eax, eax
jne 0x4540ea
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x50c
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x10]
push edx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push ebp
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [0x4b3d88], eax
mov ecx, dword [esi + 4]
mov dword [0x4b3d8c], ecx
mov edx, dword [esi + 8]
mov dword [0x4b3d90], edx
mov eax, dword [esi + 0xc]
mov dword [0x4b3d94], eax
mov ecx, dword [esi + 0x10]
mov dword [0x4b3d98], ecx
mov edx, dword [esi + 0x14]
mov dword [0x4b3da4], edx
mov eax, dword [esi + 0x18]
mov dword [0x4b3da8], eax
mov ecx, dword [esi + 0x1c]
mov dword [0x4b3dac], ecx
mov edx, dword [esi + 0x20]
mov dword [0x4b41b4], edx
mov eax, dword [esi + 0x24]
mov dword [0x4b3d9c], eax
mov ecx, dword [esi + 0x28]
lea eax, [esi + 0x2c]
mov edx, 0x4b3d58
mov dword [0x4b3da0], ecx
sub edx, eax
mov edi, 1
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, edi
test cl, cl
jne 0x4541a0
mov eax, 0x4b3d58
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4541b3
sub eax, edx
add eax, 4
shr eax, 2
mov ecx, dword [esi + eax*4 + 0x2c]
add eax, 0xb
add eax, edi
mov dword [0x4b3d78], ecx
mov dword [0x4b3d7c], ecx
mov edx, dword [esi + eax*4]
add eax, edi
mov ecx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b557c], edx
mov edx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b5234], ecx
mov ecx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b3044], edx
mov edx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b41bc], edx
mov dword [0x4b41e4], ecx
mov ecx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b41c0], ecx
mov edx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b41c4], edx
mov ecx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b41c8], ecx
mov edx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b41d0], edx
mov ecx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b41d4], ecx
mov edx, dword [esi + eax*4]
add eax, edi
mov dword [0x4b41d8], edx
mov ecx, dword [esi + eax*4]
mov dword [0x4b41dc], ecx
add eax, edi
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [esi + eax*4]
mov dword [ecx + 0x4b3db0], edx
add ecx, 4
add eax, edi
cmp ecx, 0x200
jb 0x454260
lea ecx, [esi + eax*4]
xor eax, eax
jmp 0x454280
mov edx, dword [ecx]
mov dword [eax + 0x4b3fb0], edx
add eax, 4
add ecx, 4
cmp eax, 0x200
jb 0x454280
mov eax, dword [0x4b5af0]
test eax, eax
jne 0x4542a4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045f0aa
add esp, 0x40c
ret