Function at 0x4d4d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x821094]
sub esp, 0x25c
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x4d4ddb
lea eax, [esp + 0x64]
push 0x104
push eax
push str.D:DevProjectsJMain1SourceVWorld.cpp
mov dword [0x8210d4], 1
call fcn.004e6240
lea ecx, [esp + 0x64]
push 0xc0b
push ecx
push str.Program_runs_to__s__d.
push ebp
call fcn.004331c0
add esp, 0x10
mov edx, dword [esp + 0x270]
mov ebx, dword [0x4f021c]
push str.SaveGameSave
push edx
call ebx
mov edi, dword [0x4f0224]
add esp, 8
test eax, eax
je 0x4d4ea4
mov eax, dword [ebp + 0x5f2f]
mov esi, dword [0x4f0138]
add eax, 0x373
lea ecx, [esp + 0x168]
push eax
push ecx
call esi
mov edx, dword [esp + 0x270]
lea eax, [esp + 0x64]
push edx
push eax
call esi
lea ecx, [esp + 0x64]
push 0x4f9a88
push ecx
call ebx
add esp, 8
test eax, eax
je 0x4d54f9
push str..dat
push eax
call esi
lea edx, [esp + 0x64]
push 0x4faf30
push edx
call dword [0x4f01f0]
mov esi, eax
add esp, 8
test esi, esi
je 0x4d54f9
mov eax, dword [ebp + 0x50cb]
mov ecx, dword [ebp + 0x50db]
imul eax, dword [ebp + 0x50cf]
push esi
push eax
push 1
push ecx
call edi
mov edx, dword [ebp + 0x50cb]
add esp, 0x10
imul edx, dword [ebp + 0x50cf]
cmp eax, edx
jl 0x4d54f9
push esi
call dword [0x4f01e8]
add esp, 4
mov eax, dword [esp + 0x270]
push 0x4faf30
push eax
call dword [0x4f01f0]
mov esi, eax
add esp, 8
test esi, esi
je 0x4d54fd
mov ebx, dword [0x4f01ac]
lea eax, [ebp + 0x52ef]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x52ef]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x53f3]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x53f3]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x54f7]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x54f7]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x55fb]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x55fb]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x56ff]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x56ff]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x5803]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x5803]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x5907]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x5907]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x5b0f]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x5b0f]
push eax
call edi
xor ecx, ecx
push esi
mov cl, byte [ebp + 0x5c16]
push 1
lea edx, [esp + 0x40]
push 4
push edx
mov dword [esp + 0x48], ecx
call edi
xor eax, eax
push esi
mov al, byte [ebp + 0x5c15]
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
mov dword [esp + 0x54], eax
call edi
mov edx, dword [ebp + 0x5c14]
push esi
push 1
lea eax, [esp + 0x64]
and edx, 0xff
push 4
push eax
mov dword [esp + 0x6c], edx
call edi
add esp, 0x40
xor ecx, ecx
mov cl, byte [ebp + 0x5c1a]
lea edx, [esp + 0x28]
push esi
push 1
push 4
push edx
mov dword [esp + 0x38], ecx
call edi
xor eax, eax
push esi
mov al, byte [ebp + 0x5c19]
push 1
lea ecx, [esp + 0x3c]
push 4
push ecx
mov dword [esp + 0x44], eax
call edi
mov edx, dword [ebp + 0x5c18]
push esi
push 1
lea eax, [esp + 0x54]
and edx, 0xff
push 4
push eax
mov dword [esp + 0x5c], edx
call edi
add esp, 0x30
lea eax, [ebp + 0x5a0b]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x5a0b]
push eax
call edi
xor ecx, ecx
push esi
mov cl, byte [ebp + 0x5c22]
push 1
lea edx, [esp + 0x40]
push 4
mov dword [esp + 0x44], ecx
push edx
call edi
xor eax, eax
push esi
mov al, byte [ebp + 0x5c21]
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
mov dword [esp + 0x54], eax
call edi
mov edx, dword [ebp + 0x5c20]
push esi
push 1
lea eax, [esp + 0x64]
and edx, 0xff
push 4
push eax
mov dword [esp + 0x6c], edx
call edi
add esp, 0x40
lea ecx, [ebp + 0x5c24]
push esi
push 1
push 4
push ecx
call edi
push esi
push 1
lea edx, [ebp + 0x5c28]
push 4
push edx
call edi
push esi
push 1
lea eax, [ebp + 0x5c2c]
push 4
push eax
call edi
xor ecx, ecx
push esi
mov cl, byte [ebp + 0x5c1e]
push 1
lea edx, [esp + 0x60]
push 4
push edx
mov dword [esp + 0x68], ecx
call edi
add esp, 0x40
xor eax, eax
mov al, byte [ebp + 0x5c1d]
lea ecx, [esp + 0x24]
push esi
push 1
push 4
push ecx
mov dword [esp + 0x34], eax
call edi
mov edx, dword [ebp + 0x5c1c]
push esi
push 1
lea eax, [esp + 0x44]
and edx, 0xff
push 4
push eax
mov dword [esp + 0x4c], edx
call edi
mov ecx, dword [ebp + 0x5c30]
mov dword [esp + 0x3c], 0
shr ecx, 0x10
and ecx, 0xff
push esi
mov dword [esp + 0x3c], ecx
push 1
fild qword [esp + 0x40]
lea edx, [esp + 0x68]
push 4
push edx
fmul dword [0x4f0644]
fstp dword [esp + 0x70]
call edi
mov eax, dword [ebp + 0x5c30]
mov dword [esp + 0x4c], 0
shr eax, 8
and eax, 0xff
push esi
mov dword [esp + 0x4c], eax
push 1
fild qword [esp + 0x50]
lea ecx, [esp + 0x70]
push 4
push ecx
fmul dword [0x4f0644]
fstp dword [esp + 0x78]
call edi
mov edx, dword [ebp + 0x5c30]
mov dword [esp + 0x5c], 0
and edx, 0xff
add esp, 0x40
mov dword [esp + 0x18], edx
lea eax, [esp + 0x3c]
fild qword [esp + 0x18]
push esi
push 1
push 4
push eax
fmul dword [0x4f0644]
fstp dword [esp + 0x4c]
call edi
mov ecx, dword [ebp + 0x5c34]
mov dword [esp + 0x2c], 0
shr ecx, 0x10
and ecx, 0xff
push esi
mov dword [esp + 0x2c], ecx
push 1
fild qword [esp + 0x30]
lea edx, [esp + 0x58]
push 4
push edx
fmul dword [0x4f0644]
fstp dword [esp + 0x60]
call edi
mov eax, dword [ebp + 0x5c34]
mov dword [esp + 0x3c], 0
shr eax, 8
and eax, 0xff
push esi
mov dword [esp + 0x3c], eax
push 1
fild qword [esp + 0x40]
lea ecx, [esp + 0x60]
push 4
push ecx
fmul dword [0x4f0644]
fstp dword [esp + 0x68]
call edi
mov edx, dword [ebp + 0x5c34]
mov dword [esp + 0x4c], 0
and edx, 0xff
push esi
mov dword [esp + 0x4c], edx
push 1
fild qword [esp + 0x50]
lea eax, [esp + 0x74]
push 4
push eax
fmul dword [0x4f0644]
fstp dword [esp + 0x7c]
call edi
add esp, 0x40
lea ecx, [ebp + 0x5c38]
push esi
push 1
push 4
push ecx
call edi
push esi
push 1
lea edx, [ebp + 0x5c3c]
push 4
push edx
call edi
push esi
push 1
lea eax, [ebp + 0x5c40]
push 4
push eax
call edi
mov ecx, dword [ebp + 0x85]
push esi
test ecx, ecx
push 1
lea edx, [esp + 0x4a]
setne cl
push 1
push edx
mov byte [esp + 0x52], cl
call edi
mov eax, dword [ebp + 0x89]
add esp, 0x40
test eax, eax
push esi
push 1
lea ecx, [esp + 0x1a]
push 1
setne al
push ecx
mov byte [esp + 0x22], al
call edi
mov dl, byte [ebp + 0x5c13]
push esi
test dl, dl
push 1
lea eax, [esp + 0x2a]
setne dl
push 1
push eax
mov byte [esp + 0x32], dl
call edi
add esp, 0x20
lea eax, [ebp + 0x51eb]
push esi
push 1
push eax
call ebx
inc eax
push eax
lea eax, [ebp + 0x51eb]
push eax
call edi
push esi
push 1
lea ecx, [ebp + 0x5e2c]
push 4
push ecx
call edi
push esi
lea eax, [ebp + 0x5e28]
push 1
push 4
push eax
call edi
mov ecx, dword [ebp + 0x5e28]
add esp, 0x30
cmp ecx, 1
mov dword [esp + 0x30], 1
jle 0x4d5371
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x20], eax
jle 0x4d535e
mov edx, dword [esp + 0x30]
push eax
mov ecx, dword [ebp + edx*4 + 0x5e30]
call fcn.00498cb0
mov dword [esp + 0x34], eax
push esi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x5e28]
add esp, 0x10
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4d5327
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x5e28]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4d531a
mov ecx, dword [ebp + 0x5faf]
push esi
push 1
lea edx, [esp + 0x50]
push 4
push edx
mov dword [esp + 0x58], ecx
call edi
mov ecx, dword [ebp + 0x5fb3]
add esp, 0x10
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x4d53f0
jmp 0x4d539e
mov ecx, dword [esp + 0x14]
mov ax, word [ecx + 0x36b]
cmp ax, 0x34
je 0x4d53e3
cmp ax, 0x36
je 0x4d53e3
call fcn.004be0c0
mov dword [esp + 0x34], eax
push esi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call edi
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
test al, al
mov byte [esp + 0x12], al
je 0x4d54fd
mov ecx, dword [esp + 0x14]
call fcn.004be220
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4d539a
mov ecx, dword [ebp + 0x5e28]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x30], eax
jle 0x4d5578
mov eax, dword [ebp + eax*4 + 0x5e30]
push esi
push 1
lea ecx, [esp + 0x38]
push 4
push ecx
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x24]
push esi
push 1
lea ecx, [esp + 0x64]
mov eax, dword [edx + 0x48]
push 4
push ecx
mov dword [esp + 0x6c], eax
call edi
mov edx, dword [esp + 0x34]
add esp, 0x20
add edx, 0x4c
lea eax, [esp + 0x50]
push edx
push eax
call dword [0x4f0138]
push esi
lea ecx, [esp + 0x54]
push 1
push ecx
call ebx
inc eax
lea edx, [esp + 0x58]
push eax
push edx
call edi
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 1
call fcn.00498bd0
mov dword [esp + 0x44], eax
push esi
push 1
lea eax, [esp + 0x4c]
push 4
push eax
call edi
mov ecx, dword [esp + 0x24]
push esi
push 1
lea eax, [esp + 0x4c]
mov edx, dword [ecx + 0x68]
push 4
push eax
mov dword [esp + 0x54], edx
call edi
mov eax, dword [esp + 0x54]
add esp, 0x20
test eax, eax
mov dword [esp + 0x20], 0
jle 0x4d5561
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call edi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push esi
push 1
mov cl, byte [eax + edx + 0x8a0]
lea edx, [esp + 0x2b]
push 1
push edx
mov byte [esp + 0x33], cl
call edi
mov al, byte [esp + 0x33]
add esp, 0x20
test al, al
jne 0x4d554c
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4d5532
cmp eax, 0x200
jge 0x4d5532
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + eax*4 + 0xa0]
jmp 0x4d5534
mov esi, dword [esp + 0x18]
test esi, esi
mov dword [0x8210d4], 1
je 0x4d5515
push esi
call dword [0x4f01e8]
add esp, 4
push str.StageFile_SaveBin__:_Error_occurs.
push ebp
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 4
xor ecx, ecx
call fcn.004be0c0
push esi
push 1
lea edx, [esp + 0x20]
push 4
push edx
mov dword [esp + 0x28], eax
call edi
add esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4d54a7
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x5e28]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4d5404
push esi
call dword [0x4f01e8]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 4