Function at 0x4558c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdee7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f4008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov edi, dword [0x4fc0fc]
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x510]
push eax
call fcn.00456af0
mov eax, dword [0x4fc0fc]
add eax, 0x508
push eax
call fcn.00456af0
mov eax, dword [edi + 0x234]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455975
push 0x14
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CScriptFont.0
mov dword [edi + 0xc], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dcee8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x2c], edi
mov dword [edi + 4], ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455920
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x1f4]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x455993
mov ecx, esi
call fcn.00473130
mov esi, dword [esi + 4]
test esi, esi
jne 0x455985
mov eax, dword [edi + 0x1f8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4559b8
mov ecx, esi
call fcn.00473bc0
mov ecx, esi
call fcn.00474750
mov esi, dword [esi + 4]
test esi, esi
jne 0x4559a3
mov eax, dword [edi + 0x1fc]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4559dd
mov ecx, esi
call fcn.00473bc0
mov ecx, esi
call fcn.00475ea0
mov esi, dword [esi + 4]
test esi, esi
jne 0x4559c8
mov eax, dword [edi + 0x200]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4559fe
nop dword [eax]
mov ecx, esi
call fcn.00476b60
mov esi, dword [esi + 4]
test esi, esi
jne 0x4559f0
mov eax, dword [edi + 0x204]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x455a1e
nop
mov ecx, esi
call fcn.00477030
mov esi, dword [esi + 4]
test esi, esi
jne 0x455a10
mov eax, dword [0x4fc0fc]
mov eax, dword [eax + 0x438]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x455a41
mov ecx, esi
call fcn.00485840
mov esi, dword [esi + 4]
test esi, esi
jne 0x455a33
mov eax, dword [0x4fc0fc]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x455a64
mov ecx, esi
call fcn.00485840
mov esi, dword [esi + 4]
test esi, esi
jne 0x455a56
mov eax, dword [0x4fc0fc]
mov eax, dword [eax + 0xa8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x455a8e
nop dword [eax]
mov ecx, esi
call fcn.00485840
mov esi, dword [esi + 4]
test esi, esi
jne 0x455a80
mov edi, 0x734
mov eax, dword [0x4fc0fc]
mov eax, dword [edi + eax]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x455ab3
mov ecx, esi
call fcn.00485840
mov esi, dword [esi + 4]
test esi, esi
jne 0x455aa5
add edi, 4
cmp edi, 0x74c
jl 0x455a93
mov eax, dword [0x4fc0fc]
mov eax, dword [eax + 0x6c8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x455ae1
mov ecx, esi
call fcn.0047c770
mov esi, dword [esi + 4]
test esi, esi
jne 0x455ad3
mov ecx, 0x6d0
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov eax, dword [0x4fc0fc]
mov eax, dword [ecx + eax]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455b57
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptCommandLayout.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd3a8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x20], edi
mov dword [edi + 4], ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455b02
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x14], ecx
cmp ecx, 0x6e4
jl 0x455af0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x210]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455bf9
nop dword [eax]
push 0x23c
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 2
lea ecx, [edi + 0x238]
mov dword [edi], vtable.CScriptClassType.0
mov dword [edi + 0x234], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd898
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x38], edi
mov dword [edi + 0x230], ebx
push eax
push dword [ebx + 0x34]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x3c], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455b80
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x228]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455cf6
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 3
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptDifficulty.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd798
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x34], edi
push 0x248
mov dword [edi + 4], ebx
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 4
lea ecx, [edi + 0x244]
mov dword [edi], vtable.CScriptReferenceList.0
mov dword [edi + 0x240], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dcf68
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4fc0fc]
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x3c], edi
mov eax, dword [eax + 0x298]
mov dword [edi + 0x234], eax
lea eax, [ebp - 0x1c]
mov dword [edi + 0x238], ecx
mov ecx, dword [0x4fc0c0]
mov dword [edi + 0x23c], 0xda
push eax
push dword [ebx + 0x30]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x38], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455c10
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x294]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455d7d
nop dword [eax]
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 5
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptRace.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd2b8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x24], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x20]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x28], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455d10
mov eax, dword [ebp - 0x10]
mov ecx, 0xa
add eax, 0x238
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455e10
nop dword [eax]
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 6
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptNpc.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4d55d0
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x28], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x20]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x2c], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455da0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, 4
sub ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x455d90
mov eax, dword [ebp - 0x10]
mov ecx, 0xa
add eax, 0x2a4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455ec8
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 7
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptOriginalData.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dcf18
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0xe0], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x20]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx + 0x28]
push 1
mov dword [ebx + 0xe4], eax
call fcn.00477bd0
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455e48
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, 4
sub ecx, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jne 0x455e38
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x298]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455f66
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 8
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptFusion.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dcfc8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x2c8], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x2c4]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x2cc], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455ef0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x29c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x455ff6
nop dword [eax]
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 9
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptMetamorphoze.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd0c8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x230], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x118]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x234], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x455f80
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2a0]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x456069
nop dword [eax]
push 0x14
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xa
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CScriptTerrainGroup.0
mov dword [edi + 0xc], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd1b8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x14], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], 0x13
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456010
mov eax, dword [0x4fc0fc]
mov eax, dword [eax + 0x22c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x456153
push 0x23c
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xb
lea ecx, [edi + 0x238]
mov dword [edi], vtable.CScriptClassGroup.0
mov dword [edi + 0x234], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd4a8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x14], edi
mov dword [edi + 0x230], ebx
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x456142
nop dword [eax]
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xc
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptClassGroupEntry.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dcf58
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x74], edi
mov dword [edi + 4], ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4560f0
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x456085
mov eax, dword [ebp - 0x10]
mov ecx, 4
add eax, 0x218
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x456266
nop dword [eax]
push 0x23c
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xd
lea ecx, [edi + 0x238]
mov dword [edi], vtable.CScriptWeaponType.0
mov dword [edi + 0x234], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd508
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x40], edi
mov dword [edi + 0x230], ebx
push eax
push dword [ebx + 0x2c]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x28]
mov esi, dword [eax + 4]
mov esi, dword [esi + 4]
test esi, esi
je 0x456255
nop
push 0x14
call fcn.00495860
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xe
lea ecx, [ebx + 0x10]
mov dword [ebx], vtable.CScriptCompatibleData.0
mov dword [ebx + 0xc], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd908
push edx
mov edi, dword [edx]
call dword [edi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], ebx
mov dword [ebx + 8], esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x456200
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x456180
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, 4
sub ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
jne 0x456166
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa4]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4562e2
nop
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0xf
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptMapColor.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd358
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], ebx
mov dword [ebx + 0x18], edi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456290
mov ebx, dword [ebp - 0x10]
push dword [ebx + 0x1f0]
call fcn.00458340
mov ecx, dword [0x4fc0fc]
cmp dword [ecx + 0x124], 0
je 0x45637b
mov eax, dword [ebx + 0x98]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x45637b
mov ecx, esi
call fcn.0047b820
mov ecx, esi
call fcn.0047b930
push dword [esi + 0x228]
call fcn.00458340
push dword [esi + 0x22c]
call fcn.00458340
push dword [esi + 0x230]
call fcn.00458340
push dword [esi + 0x234]
call fcn.00458340
push dword [esi + 0x254]
call fcn.00458340
push dword [esi + 0x294]
call fcn.00458340
push dword [esi + 0x298]
call fcn.00458340
mov esi, dword [esi + 4]
test esi, esi
jne 0x456313
mov ecx, dword [0x4fc0fc]
cmp dword [ecx + 0x410], 0
je 0x45638f
push dword [ecx + 0xac]
call fcn.00458340
push 1
push dword [ebx + 0x20c]
call fcn.004580e0
push 0
push dword [ebx + 0x208]
call fcn.004580e0
mov eax, dword [ebx + 0x2a0]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x456419
nop dword [eax]
push 0x14
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x10
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CScriptTerrainGroup.0
mov dword [edi + 0xc], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd1b8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x14], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], 0x13
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4563c0
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x6c8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x456444
nop
mov ecx, esi
call fcn.0047c770
mov esi, dword [esi + 4]
test esi, esi
jne 0x456430
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x6cc]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4564ba
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x11
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptShopLayout.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd558
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x50], edi
mov dword [edi + 4], ebx
mov ecx, dword [ebx + 0x48]
call fcn.0047ced0
mov eax, dword [ebx + 0x48]
mov dword [eax + 0x38], ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456454
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x44c]
mov edi, dword [ecx + 0x450]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4564e4
mov ecx, esi
call fcn.0047cd00
mov esi, dword [esi + 4]
test esi, esi
jne 0x4564d0
mov ecx, dword [0x4fc0fc]
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x456504
nop
mov ecx, esi
call fcn.0047ced0
mov esi, dword [esi + 4]
test esi, esi
jne 0x4564f0
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x45c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x456587
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x12
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptCharacterDictionary.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dcf08
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x40], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x20]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x44], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456514
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x460]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x45660a
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x13
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptWordDictionary.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd7b8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x38], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x20]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x3c], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456597
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x464]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x456693
nop
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x14
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptGraphicsDictionary.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd4f8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x30], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x28]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x34], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456620
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x468]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x45671a
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x15
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptMediaDictionary.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd1f8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x34], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x30]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x38], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4566a7
mov ecx, dword [0x4fc0fc]
push dword [ecx + 0x724]
call fcn.00456bb0
mov eax, dword [0x4fc0fc]
push dword [eax + 0x728]
call fcn.00456bb0
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x72c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x456834
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x16
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptRestQuest.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd6f8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x58], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x54]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x45681d
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0x17
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptQuestReward.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dcf28
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], ebx
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4567c5
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x456752
mov ecx, dword [0x4fc0fc]
mov eax, dword [ecx + 0x730]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4568bb
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x18
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptRestArea.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd3d8
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, dword [0x4fc0c0]
mov dword [ebx + 0x34], edi
mov dword [edi + 4], ebx
push eax
push dword [ebx + 0x30]
mov ecx, dword [ecx + 8]
call fcn.0046b420
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x38], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456848
mov ecx, dword [0x4fc0fc]
push dword [ecx + 0x128]
call fcn.00458020
mov eax, dword [0x4fc0fc]
push dword [eax + 0x130]
call fcn.00458020
mov eax, dword [0x4fc0fc]
push dword [eax + 0x12c]
call fcn.00458020
mov eax, dword [0x4fc0fc]
push dword [eax + 0x134]
call fcn.00458020
mov ecx, 0x180
mov dword [ebp - 0x1c], ecx
nop
mov eax, dword [0x4fc0fc]
mov eax, dword [ecx + eax]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x456967
push 0x10
call fcn.00495860
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0x19
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CScriptOriginalMotion.0
mov dword [edi + 8], 1
mov dword [ecx], 0
mov edx, dword [0x4fc0c8]
push ecx
push 0x4dd688
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], ebx
mov dword [ebx + 0x18], edi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x456912
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x18c
jl 0x456900
mov ecx, dword [ebp - 0x24]
call fcn.00456c70
mov ecx, 0x194
call fcn.00487c10
mov esi, eax
push 0xc
mov dword [0x4fc0bc], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00495860
mov dword [ebp - 0x2c], eax
add esp, 4
mov ecx, 0x9c6
mov dword [eax], vtable.APPROACHPATTERN.0
mov dword [eax + 8], 0
mov dword [esi + 0x1c], eax
mov dword [eax + 4], 0
mov dword [esi + 0x30], 0
call fcn.00459ad0
mov ecx, 0x9c6
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.00459ad0
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], eax
call fcn.0047f460
mov ecx, 0x9ce
call fcn.00459ad0
mov ecx, dword [0x4fc0bc]
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa4], 0
call fcn.0047e5c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4