Function at 0x457fe0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc24
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x458244
push 0
lea eax, [ebp - 0xc20]
push eax
push 4
lea eax, [ebp - 0xc18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
movq xmm0, qword [str.SDTS]
lea ecx, [ebp - 0xc20]
movq qword [ebp - 0x10], xmm0
movzx eax, byte [ebp - 0x10]
mov byte [ebp - 0xc18], al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov byte [ebp - 0xc17], al
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0xc16], al
mov eax, dword [ebp - 0xc]
push 0
shr eax, 0x10
push ecx
mov byte [ebp - 0xc15], al
lea eax, [ebx + 0x48]
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebx + 0x48], 2
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
jne 0x458120
call eax
mov dword [ebp - 0xc14], eax
cmp eax, 0xffffffff
je 0x458244
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 0xa]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp - 0xc1c]
push eax
push edi
push esi
push dword [ebp - 0xc14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x44], edi
mov eax, 1
pop edi
mov dword [ebx + 0x40], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
call eax
mov esi, eax
mov dword [ebp - 0xc1c], esi
cmp esi, 0xffffffff
je 0x458244
push 0
lea ecx, [ebp - 0xc24]
push ecx
push 0xa8
lea eax, [ebx + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x50]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0xc14], eax
mov dword [0x4fb10c], eax
cmp eax, 0x506
jle 0x458219
mov ecx, dword [0x4fb118]
push 0xb2f
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xc14]
mov edi, eax
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, ecx, 0x3e8
sub esi, eax
lea eax, [ebp - 0x210]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push 0x4d5f4c
push str._s__d._03d
push eax
call esi
push 0x11e
push 1
push 0x4d5f70
lea eax, [ebp - 0x410]
push str._s__d._03d
push eax
call esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0xc10]
push str._n_s_n_s_n_s
push eax
call esi
add esp, 0x3c
lea eax, [ebp - 0xc10]
push 0x30
push str.SRPG_Studio
push eax
push dword [0x4fafbc]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [ebp - 0xc1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x458241
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [ebx + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc14], eax
cmp eax, 0xffffffff
jne 0x458259
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 4
push eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x4582c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x4582c3
mov ecx, ebx
call fcn.00457db0
test eax, eax
je 0x4582a0
mov eax, dword [ebx + 0x40]
add eax, 0xa8
add eax, dword [ebx + 0xf0]
mov dword [ebx + 0x1c], eax
push esi
call edi
push dword [ebp - 0xc14]
call edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx + 0x4c]
mov dword [ebx + 0x24], 0
push eax
mov ecx, ebx
call fcn.00458330
test eax, eax
jne 0x4582a0
mov ecx, dword [0x4fb118]
push 0x4d52e8
push 0x4d52e8
push 0xb30
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x30
push str.SRPG_Studio
push eax
push dword [0x4fafbc]
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call edi
push dword [ebp - 0xc14]
jmp 0x458242