Function at 0x489330
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0xb8c]
mov dword [ebp - 0x234], ebx
test eax, eax
je 0x48936c
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0xb8c], 0
mov eax, dword [ebx + 0xb88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x489389
push eax
call esi
mov dword [ebx + 0xb88], 0
mov eax, dword [ebx + 0xb84]
test eax, eax
je 0x4893a0
push eax
call esi
mov dword [ebx + 0xb84], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0xb84], eax
cmp eax, 0xffffffff
jne 0x4893d9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 4
push eax
mov dword [ebx + 0xb88], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebx + 0xb8c], edx
movq xmm0, qword [str.SRTS]
movq qword [ebp - 0x10], xmm0
movzx ecx, byte [edx]
mov dword [ebp - 0x21c], edx
cmp cx, word [ebp - 0x10]
jne 0x4895a3
mov ecx, dword [ebp - 0x10]
movzx eax, byte [edx + 1]
shr ecx, 0x10
cmp ax, cx
jne 0x4895a3
movzx eax, byte [edx + 2]
cmp ax, word [ebp - 0xc]
jne 0x4895a3
mov ecx, dword [ebp - 0xc]
movzx eax, byte [edx + 3]
shr ecx, 0x10
cmp ax, cx
jne 0x4895a3
test edx, edx
je 0x489566
xor eax, eax
lea ecx, [edx + 0xc]
lea edi, [ebx + 0x4a8]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x218], edi
mov esi, dword [ecx]
mov ecx, eax
add esi, edx
lea edx, [ebp - 0x228]
push 0
mov dword [ebp - 0x230], esi
call fcn.00485ca0
xor ebx, ebx
add esp, 4
cmp dword [esi], ebx
jle 0x48952c
lea eax, [esi + 4]
mov dword [ebp - 0x220], eax
nop
mov eax, dword [eax]
add eax, esi
mov esi, dword [edi]
mov dword [ebp - 0x22c], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov ecx, esi
mov edi, eax
call fcn.0048cf80
movsx ecx, ax
mov dword [edi + 8], ecx
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4894e9
nop dword [eax + eax]
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4894e0
push dword [ebp - 0x228]
mov dword [edx + 4], edi
mov ecx, edi
push dword [ebp - 0x214]
mov dword [edi + 0x14], 1
push dword [ebp - 0x22c]
call fcn.004767f0
mov esi, dword [ebp - 0x230]
inc ebx
mov eax, dword [ebp - 0x220]
mov edi, dword [ebp - 0x218]
add eax, 4
mov dword [ebp - 0x220], eax
cmp ebx, dword [esi]
jl 0x4894b0
mov eax, dword [ebp - 0x214]
add edi, 4
mov ecx, dword [ebp - 0x224]
inc eax
mov edx, dword [ebp - 0x21c]
add ecx, 4
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x218], edi
cmp eax, 0x10
jl 0x489480
mov ebx, dword [ebp - 0x234]
push 1
lea eax, [ebx + 0x4f0]
push eax
lea eax, [edx + 0x4c]
push eax
push dword [ebx + 0xb8c]
call fcn.00489800
push 1
lea eax, [ebx + 0x534]
push eax
mov eax, dword [ebp - 0x21c]
add eax, 0x54
push eax
push dword [ebx + 0xb8c]
call fcn.004899c0
mov esi, 1
jmp 0x4895d9
push str.runtime.rts
lea eax, [ebp - 0x210]
xor esi, esi
push 0x4d8250
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x30
push str.SRPG_Studio
push eax
push dword [0x4f7e34]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4