Function at 0x487ec0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c6107
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], 0
fild qword [esp + 0x6b0]
mov eax, dword [esp + 0x6b0]
mov edi, dword [esp + 0x6b4]
mov dword [esp + 0x6a4], 1
add dword [ebp + 0x110], eax
mov edx, dword [ebp + 0x114]
adc edx, edi
test edi, edi
mov dword [ebp + 0x114], edx
mov dword [ebp + 0x118], eax
mov dword [ebp + 0x11c], edi
fmul dword [0x4f4094]
fstp dword [esp + 0x28]
jl 0x487f4d
jg 0x487f41
test eax, eax
jbe 0x487f4d
mov dword [ebp + 0x118], eax
mov dword [ebp + 0x11c], edi
cmp dword [ebp], 0
jne 0x488296
mov eax, dword [esp + 0x6cc]
mov ecx, dword [esp + 0x6d0]
mov edx, eax
mov dword [esp + 0x204], eax
mov eax, ecx
mov dword [esp + 0x208], ecx
mov dword [esp + 0xf0], eax
mov dword [esp + 0xec], edx
xor eax, eax
lea ecx, [ebp + 0x74]
lea ebx, [ebx]
fld dword [esp + eax*4 + 0xec]
inc eax
fsub dword [ecx]
add ecx, 4
cmp eax, 2
fstp dword [esp + eax*4 + 0xe8]
jb 0x487f90
mov ecx, dword [esp + 0xec]
fld dword [0x4fc4b8]
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], edx
xor eax, eax
lea ecx, [ecx]
fld dword [esp + eax*4 + 0x168]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x487fd0
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x487ffc
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x487ffe
fsqrt
fcomp dword [ebp + 0x150]
fnstsw ax
test ah, 0x41
jne 0x48801d
lea ecx, [esp + 0x168]
call fcn.00465170
fstp dword [ebp + 0x88]
lea eax, [esp + 0x1fc]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 2
call fcn.00401110
mov bl, al
mov eax, dword [esp + 0x1fc]
neg bl
sbb bl, bl
inc bl
test eax, eax
mov byte [esp + 0x6a4], 1
je 0x488071
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], 0
jne 0x488071
mov edx, dword [ecx]
push 1
call dword [edx]
test bl, bl
je 0x488081
mov eax, dword [ebp + 0x84]
mov dword [ebp + 0x88], eax
fld dword [ebp + 0x84]
fsub dword [ebp + 0x88]
fld st(0)
fld dword [esp + 0x28]
fmul dword [ebp + 0x154]
fstp dword [esp + 0x1c]
fabs
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jnp 0x48815a
fabs
fld dword [0x4f7030]
fadd st(0), st(0)
fsub dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 5
jnp 0x48815c
fld dword [esp + 0x1c]
fld dword [ebp + 0x84]
fsub dword [ebp + 0x88]
fabs
fcomp dword [0x4f7030]
fld dword [ebp + 0x84]
fnstsw ax
fcomp dword [ebp + 0x88]
test ah, 5
fnstsw ax
jp 0x4880fd
test ah, 0x41
jne 0x488104
jmp 0x488102
test ah, 5
jp 0x488104
fchs
fadd dword [ebp + 0x84]
fst dword [ebp + 0x84]
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x48812b
fadd dword [0x4f7034]
fstp dword [ebp + 0x84]
jmp 0x48812d
fstp st(0)
fld dword [ebp + 0x84]
fcomp dword [0x4f7034]
fnstsw ax
test ah, 0x41
jne 0x488152
fld dword [ebp + 0x84]
fsub dword [0x4f7034]
fstp dword [ebp + 0x84]
fld dword [ebp + 0x84]
jmp 0x488168
fstp st(0)
fld dword [ebp + 0x88]
fst dword [ebp + 0x84]
fsub dword [0x4f7030]
lea ecx, [ebp + 0x7c]
fcos
fstp dword [ecx]
fld dword [ebp + 0x84]
fsub dword [0x4f7030]
fsin
fstp dword [ebp + 0x80]
call fcn.00465170
fsub dword [0x4f7038]
push 1
lea edx, [esp + 0x188]
fstp dword [esp + 0x188]
mov ecx, dword [ebp + 0xa0]
push edx
call fcn.00424750
fld dword [ebp + 0x158]
fcomp dword [0x4fc4b8]
lea esi, [ebp + 0x158]
fnstsw ax
test ah, 0x41
jne 0x488242
mov eax, dword [esp + 0x6b0]
mov ecx, dword [ebp + 0x12c]
mov edx, dword [ebp + 0x128]
add eax, 1
adc edi, 0
push edi
push eax
push ecx
push edx
call fcn.004adf70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fdivr dword [ebp + 0x15c]
fsubr dword [esi]
fst dword [esi]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x488214
mov dword [esi], 0
fld dword [esi]
push 1
fchs
lea eax, [esp + 0x240]
fstp dword [esp + 0x240]
mov ecx, dword [ebp + 0xa4]
push eax
call fcn.00424750
mov ecx, dword [ebp + 0xa8]
push 1
push esi
call fcn.00424750
xor esi, esi
mov ecx, dword [ebp + 0xf4]
test ecx, ecx
je 0x488296
mov eax, dword [ebp + 0xf8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x488296
fld dword [ebp + 0x84]
push 1
fsub dword [0x4f7038]
lea edx, [esp + 0x230]
push edx
fsub dword [0x4f7030]
fstp dword [esp + 0x234]
mov ecx, dword [ebp + 0xf4]
lea eax, [ecx + esi*4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
call fcn.00424750
inc esi
jmp 0x488244
cmp dword [ebp], 1
jne 0x488b75
xor eax, eax
lea ecx, [ebp + 0x94]
jmp 0x4882b0
mov edx, dword [ecx]
mov dword [esp + eax*4 + 0x14c], edx
inc eax
add ecx, 4
cmp eax, 2
jl 0x4882b0
lea edi, [ebp + 0x8c]
xor esi, esi
xor eax, eax
mov ecx, edi
mov edi, edi
fld dword [esp + eax*4 + 0x14c]
inc eax
fsub dword [ecx]
add ecx, 4
cmp eax, 2
fstp dword [esp + eax*4 + 0x148]
jb 0x4882d0
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x38], ecx
fld dword [esp + 0x38]
fabs
mov dword [esp + 0x34], eax
fld dword [esp + 0x34]
fabs
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x48831a
mov cl, 1
jmp 0x48831c
xor cl, cl
fld dword [esp + 0x28]
fcomp dword [0x4f66f4]
fnstsw ax
test ah, 0x41
jne 0x488335
mov dword [esp + 0x28], 0x3d4ccccd
test cl, cl
je 0x4886fb
fld dword [esp + 0x6cc]
lea esi, [ebp + 0x74]
fsub dword [esi]
lea edx, [esp + 0x18c]
push edx
fstp dword [esp + 0x20]
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 3
call fcn.00401110
mov bl, al
mov eax, dword [esp + 0x18c]
neg bl
sbb bl, bl
inc bl
test eax, eax
mov byte [esp + 0x6a4], 1
je 0x4883a1
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], 0
jne 0x4883a1
mov eax, dword [ecx]
push 1
call dword [eax]
test bl, bl
je 0x4883ad
fld dword [0x4fc4b8]
jmp 0x4883b1
fld dword [esp + 0x1c]
fabs
fst dword [esp + 0x1c]
fcomp dword [0x4f1a10]
fnstsw ax
test ah, 0x41
jne 0x488574
lea ecx, [esp + 0x34]
call fcn.004360a0
fstp st(0)
fld dword [esp + 0x6cc]
fcomp dword [esi]
fnstsw ax
test ah, 5
jp 0x48843e
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], edx
xor eax, eax
jmp 0x488400
fld dword [esp + eax*4 + 0xf4]
inc eax
cmp eax, 2
fmul dword [0x4f3080]
fstp dword [esp + eax*4 + 0xf0]
jb 0x488400
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x484], eax
mov dword [esp + 0x488], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
xor eax, eax
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + eax*4 + 0xbc], edx
inc eax
add ecx, 4
cmp eax, 2
jl 0x488442
fld dword [esp + 0x28]
fmul dword [ebp + 0x9c]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x48847c
mov eax, dword [esp + 0x6cc]
mov dword [esp + 0xbc], eax
jmp 0x48853d
fld dword [ebp + 0x9c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edx
xor eax, eax
lea ebx, [ebx]
fld st(0)
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0xfc]
fstp dword [esp + eax*4 + 0xfc]
jb 0x4884a0
mov eax, dword [esp + 0x100]
fstp st(0)
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x47c], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x480], ecx
mov dword [esp + 0x110], ecx
xor eax, eax
fld dword [esp + 0x28]
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0x108]
fstp dword [esp + eax*4 + 0x108]
jb 0x4884e4
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x244], eax
mov dword [esp + 0x248], ecx
xor eax, eax
lea ebx, [ebx]
fld dword [esp + eax + 0xbc]
add eax, 4
cmp eax, 8
fsub dword [esp + eax + 0x240]
fstp dword [esp + eax + 0xb8]
jb 0x488520
fld dword [esp + 0xbc]
fcomp dword [ebp + 0x94]
fnstsw ax
test ah, 0x41
jne 0x488574
fld dword [esp + 0xbc]
fcomp dword [edi]
fnstsw ax
test ah, 5
jp 0x488574
mov edx, dword [esp + 0xbc]
mov dword [esi], edx
mov eax, dword [esp + 0xc0]
mov dword [esi + 4], eax
fld dword [ebp + 0x158]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 0x41
jne 0x48869a
mov eax, dword [esp + 0x6b0]
mov ecx, dword [esp + 0x6b4]
mov edx, dword [ebp + 0x128]
add eax, 1
adc ecx, 0
push ecx
mov ecx, dword [ebp + 0x12c]
push eax
push ecx
push edx
call fcn.004adf70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fdivr dword [ebp + 0x15c]
fsubr dword [ebp + 0x158]
fst dword [ebp + 0x158]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x4885e9
mov dword [ebp + 0x158], 0
fld dword [ebp + 0x90]
push 1
fcomp dword [0x4fc4b8]
fld dword [ebp + 0x84]
fsub dword [ebp + 0x158]
fnstsw ax
test ah, 0x41
jne 0x48864c
fadd dword [0x4f7038]
lea eax, [esp + 0x198]
push eax
fstp dword [esp + 0x19c]
mov ecx, dword [ebp + 0xa4]
call fcn.00424750
fld dword [ebp + 0x84]
fadd dword [ebp + 0x158]
lea edx, [esp + 0x19c]
fadd dword [0x4f7038]
fstp dword [esp + 0x19c]
jmp 0x48868c
fsub dword [0x4f7038]
lea eax, [esp + 0x1a8]
push eax
fstp dword [esp + 0x1ac]
mov ecx, dword [ebp + 0xa4]
call fcn.00424750
fld dword [ebp + 0x84]
fadd dword [ebp + 0x158]
lea edx, [esp + 0x1ac]
fsub dword [0x4f7038]
fstp dword [esp + 0x1ac]
mov ecx, dword [ebp + 0xa8]
push 1
push edx
call fcn.00424750
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebp + 0xf4]
test ecx, ecx
je 0x488b2f
mov eax, dword [ebp + 0xf8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x488b2f
fld dword [ebp + 0x84]
push 1
fsub dword [0x4f7038]
lea ecx, [esp + 0x1b8]
push ecx
fsub dword [0x4f7030]
fstp dword [esp + 0x1bc]
mov eax, dword [ebp + 0xf4]
mov edx, dword [eax + esi*4]
mov ecx, dword [edx + 0x14]
lea eax, [eax + esi*4]
call fcn.00424750
inc esi
jmp 0x4886a0
fld dword [esp + 0x6d0]
lea eax, [esp + 0x1bc]
fsub dword [ebp + 0x78]
push eax
fstp dword [esp + 0x20]
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 4
call fcn.00401110
mov bl, al
mov eax, dword [esp + 0x1bc]
neg bl
sbb bl, bl
inc bl
cmp eax, esi
mov byte [esp + 0x6a4], 1
je 0x48875c
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], esi
jne 0x48875c
mov edx, dword [ecx]
push 1
call dword [edx]
test bl, bl
je 0x488768
fld dword [0x4fc4b8]
jmp 0x48876c
fld dword [esp + 0x1c]
fabs
fst dword [esp + 0x1c]
fcomp dword [0x4f1a10]
fnstsw ax
test ah, 0x41
jne 0x488938
lea ecx, [esp + 0x34]
call fcn.004360a0
fstp st(0)
fld dword [esp + 0x6d0]
fcomp dword [ebp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4887fe
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], ecx
xor eax, eax
jmp 0x4887c0
fld dword [esp + eax*4 + 0x118]
inc eax
cmp eax, 2
fmul dword [0x4f3080]
fstp dword [esp + eax*4 + 0x114]
jb 0x4887c0
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x468], eax
mov dword [esp + 0x46c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea edx, [ebp + 0x74]
xor eax, eax
mov ecx, edx
mov edi, dword [ecx]
mov dword [esp + eax*4 + 0xc8], edi
inc eax
add ecx, 4
cmp eax, 2
jl 0x488805
fld dword [esp + 0x28]
fmul dword [ebp + 0x9c]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x48883f
mov eax, dword [esp + 0x6d0]
mov dword [esp + 0xcc], eax
jmp 0x4888fd
mov eax, dword [esp + 0x38]
fld dword [ebp + 0x9c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], ecx
xor eax, eax
lea ecx, [ecx]
fld st(0)
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0x120]
fstp dword [esp + eax*4 + 0x120]
jb 0x488860
mov eax, dword [esp + 0x124]
fstp st(0)
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x474], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x478], ecx
mov dword [esp + 0x138], ecx
xor eax, eax
fld dword [esp + 0x28]
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0x130]
fstp dword [esp + eax*4 + 0x130]
jb 0x4888a4
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x250], eax
mov dword [esp + 0x24c], ecx
xor eax, eax
lea ebx, [ebx]
fld dword [esp + eax + 0x24c]
add eax, 4
cmp eax, 8
fadd dword [esp + eax + 0xc4]
fstp dword [esp + eax + 0xc4]
jb 0x4888e0
fld dword [esp + 0xcc]
fcomp dword [ebp + 0x98]
fnstsw ax
test ah, 0x41
jne 0x488938
fld dword [esp + 0xcc]
fcomp dword [ebp + 0x90]
fnstsw ax
test ah, 5
jp 0x488938
mov ecx, dword [esp + 0xc8]
mov dword [edx], ecx
mov eax, dword [esp + 0xcc]
mov dword [edx + 4], eax
fld dword [ebp + 0x80]
fcomp dword [0x4fc4b8]
fld dword [ebp + 0x158]
fnstsw ax
fcomp dword [0x4fc4b8]
test ah, 0x41
fnstsw ax
jne 0x488a09
test ah, 0x41
jne 0x488ae1
mov eax, dword [esp + 0x6b0]
mov ecx, dword [esp + 0x6b4]
mov edx, dword [ebp + 0x128]
add eax, 1
adc ecx, esi
push ecx
mov ecx, dword [ebp + 0x12c]
push eax
push ecx
push edx
call fcn.004adf70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fdivr dword [ebp + 0x15c]
fsubr dword [ebp + 0x158]
fst dword [ebp + 0x158]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x4889bf
mov dword [ebp + 0x158], esi
fld dword [ebp + 0x84]
push 1
fsub dword [ebp + 0x158]
lea eax, [esp + 0x1c8]
push eax
fstp dword [esp + 0x1cc]
mov ecx, dword [ebp + 0xa4]
call fcn.00424750
fld dword [ebp + 0x84]
fadd dword [ebp + 0x158]
push 1
lea edx, [esp + 0x1d0]
push edx
fstp dword [esp + 0x1d4]
jmp 0x488ad6
test ah, 0x41
jne 0x488ae1
mov eax, dword [esp + 0x6b0]
mov ecx, dword [esp + 0x6b4]
add eax, 1
adc ecx, esi
push ecx
mov ecx, dword [ebp + 0x128]
push eax
mov eax, dword [ebp + 0x12c]
push eax
push ecx
call fcn.004adf70
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fdivr dword [ebp + 0x15c]
fsubr dword [ebp + 0x158]
fst dword [ebp + 0x158]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x488a6b
mov dword [ebp + 0x158], esi
fld dword [ebp + 0x84]
fadd dword [ebp + 0x158]
fadd dword [0x4f7030]
fstp dword [esp + 0x88]
fld dword [ebp + 0x74]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x488aa7
fld dword [ebp + 0x84]
fadd dword [ebp + 0x158]
fstp dword [esp + 0x88]
fld dword [esp + 0x88]
push 1
fchs
lea edx, [esp + 0x1d8]
fstp dword [esp + 0x1d8]
mov ecx, dword [ebp + 0xa4]
push edx
call fcn.00424750
push 1
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebp + 0xa8]
call fcn.00424750
xor esi, esi
mov ecx, dword [ebp + 0xf4]
test ecx, ecx
je 0x488b2f
mov eax, dword [ebp + 0xf8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x488b2f
fld dword [ebp + 0x84]
push 1
fsub dword [0x4f7038]
lea edx, [esp + 0x1e0]
push edx
fstp dword [esp + 0x1e4]
mov ecx, dword [ebp + 0xf4]
lea eax, [ecx + esi*4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
call fcn.00424750
inc esi
jmp 0x488ae3
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0xa0]
push 0xc3fa0000
push edx
push eax
call fcn.00424870
fld dword [0x4f7030]
fmul dword [0x4f2588]
push 1
lea edx, [esp + 0x1e8]
push edx
fadd dword [ebp + 0x84]
fstp dword [esp + 0x1ec]
mov ecx, dword [ebp + 0xa0]
call fcn.00424750
mov eax, dword [esp + 0x6dc]
test eax, eax
mov esi, 0xf
je 0x488b9c
cmp eax, 2
jne 0x488f22
cmp dword [esp + 0x6e0], 8
jne 0x488f22
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x488f22
lea eax, [esp + 0x1ec]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 5
call fcn.00401120
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x1ec]
test eax, eax
mov dword [esp + 0xdc], edx
mov byte [esp + 0x6a4], 1
je 0x488c01
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], 0
jne 0x488c01
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp + 0x140]
mov ebx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x144]
mov edi, dword [ebp + 0x13c]
mov edx, dword [esp + 0xdc]
add ecx, ebx
adc eax, edi
cmp edx, eax
jl 0x488f22
jg 0x488c3b
cmp dword [esp + 0xd8], ecx
jbe 0x488f22
mov eax, dword [ebp + 0x104]
test eax, eax
lea edi, [ebp + 0x104]
jne 0x488f22
xor ebx, ebx
mov eax, str._objects_catapult_plunged_arrow.xml
mov dword [esp + 0x408], esi
mov dword [esp + 0x404], ebx
mov byte [esp + 0x3f4], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x488c70
sub eax, ecx
push eax
push str._objects_catapult_plunged_arrow.xml
lea ecx, [esp + 0x3f8]
call fcn.00402cd0
push ebx
push ebx
lea eax, [esp + 0x3f8]
push eax
lea ecx, [esp + 0x200]
push ecx
mov byte [esp + 0x6b4], 6
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x6a4], 7
mov ecx, edi
mov dword [esp + 0x90], eax
je 0x488cd2
inc dword [eax + 4]
mov eax, dword [esp + 0x90]
mov edx, dword [ecx]
mov dword [esp + 0x90], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x488cfd
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], ebx
jne 0x488cfd
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x1f4]
cmp eax, ebx
mov byte [esp + 0x6a4], 6
je 0x488d25
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], ebx
jne 0x488d25
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x408], 0x10
mov byte [esp + 0x6a4], 1
jb 0x488d47
mov eax, dword [esp + 0x3f4]
push eax
call fcn.004ade5d
add esp, 4
push ecx
mov dword [esp + 0x40c], esi
mov dword [esp + 0x408], ebx
mov byte [esp + 0x3f8], 0
mov dword [esp + 0x18], esp
mov eax, dword [edi]
cmp eax, ebx
mov ecx, esp
mov dword [ecx], eax
je 0x488d6f
inc dword [eax + 4]
mov ecx, dword [ebp + 0xa0]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [edi]
push 0xbf800000
push ebx
push ebx
call fcn.00424870
mov ecx, dword [edi]
push 1
push 0x4f7030
call fcn.00424750
push 1
push 1
push ecx
mov dword [esp + 0x20], esp
mov eax, dword [edi]
cmp eax, ebx
mov ecx, esp
mov dword [ecx], eax
je 0x488dac
inc dword [eax + 4]
mov byte [esp + 0x6b0], 8
call fcn.0040e220
mov byte [esp + 0x6b0], 1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x6a4], 9
je 0x488df3
lea ecx, [esp + 0xd8]
push ecx
mov ecx, eax
call fcn.00423890
jmp 0x488df5
xor eax, eax
cmp eax, ebx
mov esi, eax
mov dword [esp + 0xa0], esi
je 0x488e0c
inc dword [eax + 4]
mov esi, dword [esp + 0xa0]
push 0xffffff
mov ecx, esi
mov byte [esp + 0x6a8], 0xa
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0xa4]
cmp eax, ebx
je 0x488e37
inc dword [eax + 4]
mov ecx, dword [edi]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x6a4], 0xb
je 0x488e8d
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
add edx, 0xc8
adc ecx, ebx
mov dword [esp + 0x25c], edx
lea edx, [esp + 0x25c]
mov dword [esp + 0x260], ecx
push edx
mov ecx, eax
call fcn.00423890
jmp 0x488e8f
xor eax, eax
cmp eax, ebx
mov esi, eax
mov dword [esp + 0x98], esi
je 0x488ea6
inc dword [eax + 4]
mov esi, dword [esp + 0x98]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x6a8], 0xc
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov esi, dword [esp + 0x9c]
cmp esi, ebx
je 0x488ed5
inc dword [esi + 4]
mov esi, dword [esp + 0x9c]
mov ecx, dword [edi]
call fcn.0042b080
cmp esi, ebx
mov byte [esp + 0x6a4], 0xa
je 0x488ef9
lea eax, [esi + 4]
mov ecx, esi
dec dword [eax]
cmp dword [eax], ebx
jne 0x488ef9
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0xa0]
cmp eax, ebx
mov byte [esp + 0x6a4], 1
je 0x488f22
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], 0
jne 0x488f22
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp + 0x104]
test ecx, ecx
je 0x48900e
call fcn.0040d980
push eax
lea ecx, [esp + 0x510]
call fcn.0040de60
mov eax, dword [esp + 0x6cc]
mov ecx, dword [esp + 0x6d0]
mov edx, eax
mov dword [esp + 0x170], eax
mov eax, ecx
mov dword [esp + 0x174], ecx
mov dword [esp + 0x144], eax
mov dword [esp + 0x140], edx
xor eax, eax
lea ecx, [ebp + 0x74]
fld dword [esp + eax*4 + 0x140]
inc eax
fsub dword [ecx]
add ecx, 4
cmp eax, 2
fstp dword [esp + eax*4 + 0x13c]
jb 0x488f75
mov ecx, dword [esp + 0x140]
fld dword [0x4fc4b8]
mov edx, dword [esp + 0x144]
mov dword [esp + 0x28c], ecx
mov dword [esp + 0x290], edx
xor eax, eax
fld dword [esp + eax*4 + 0x28c]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x488fb2
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x488fde
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x488fe0
fsqrt
fdiv dword [esp + 0x510]
push 1
lea eax, [esp + 0x270]
mov dword [esp + 0x270], 0x3f800000
push eax
fstp dword [esp + 0x278]
mov ecx, dword [ebp + 0x104]
call fcn.004247e0
mov al, byte [esp + 0x6d8]
test al, al
je 0x489025
mov byte [0x520b7c], 1
jmp 0x489393
mov al, byte [0x520b7c]
test al, al
je 0x489393
mov ecx, dword [ebp + 0xf4]
test ecx, ecx
lea edx, [ebp + 0xf0]
je 0x48938c
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x48938c
xor esi, esi
xor ebx, ebx
xor edi, edi
mov byte [esp + 0x6a4], 0xd
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], esi
mov ebp, edx
lea esp, [esp]
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x48908b
xor eax, eax
jmp 0x489093
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x489130
test ebx, ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xf4]
mov edx, dword [eax + esi*4]
mov dword [esp + 0x120], edx
je 0x4890fa
mov ecx, dword [esp + 0xb8]
mov eax, edi
sub eax, ebx
sub ecx, ebx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x4890fa
mov eax, dword [esp + 0xfc]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x128]
push edx
push 1
push edi
call fcn.0047b030
add edi, 4
add esp, 0x14
mov dword [esp + 0xb4], edi
inc esi
jmp 0x489080
lea eax, [esp + 0x120]
push eax
push 1
push ecx
mov eax, esp
mov dword [esp + 0x1e4], edi
lea ecx, [esp + 0xb8]
mov dword [eax], edi
call fcn.00485560
mov edi, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb0]
inc esi
jmp 0x489080
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xf4]
add esi, 0xf0
test eax, eax
je 0x48914d
push eax
call fcn.004ade5d
add esp, 4
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 4]
mov dword [esp + 0x130], edx
mov ecx, dword [esi + 4]
cmp ecx, eax
jne 0x489174
xor edx, edx
jmp 0x48917c
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x4891b3
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x4891b3
mov eax, dword [esp + 0x1d8]
mov edi, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x138]
push ecx
push 1
push edi
call fcn.0047b030
add esp, 0x14
add edi, 4
mov dword [esi + 8], edi
jmp 0x4891d3
mov eax, dword [esi + 8]
lea edx, [esp + 0x130]
push edx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x218], eax
mov dword [ecx], eax
mov ecx, esi
call fcn.00485560
mov ebp, 2
jmp 0x4891e0
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jne 0x4891ef
xor eax, eax
jmp 0x4891fb
mov eax, dword [esp + 0xb4]
sub eax, ecx
sar eax, 2
mov esi, dword [esp + 0x10]
add esi, 0xf0
cmp ebp, eax
jge 0x48926f
mov eax, dword [esi + 4]
test eax, eax
lea ebx, [ecx + ebp*4]
jne 0x489217
xor edx, edx
jmp 0x48921f
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x489250
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x489250
mov eax, dword [esp + 0x20c]
mov edi, dword [esi + 8]
push eax
push esi
push ebx
push 1
push edi
call fcn.0047b030
add edi, 4
add esp, 0x14
mov dword [esi + 8], edi
inc ebp
jmp 0x4891e0
mov eax, dword [esi + 8]
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x194], eax
mov dword [ecx], eax
mov ecx, esi
call fcn.00485560
inc ebp
jmp 0x4891e0
mov edi, dword [esi + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x48927c
xor edx, edx
jmp 0x489284
mov edx, dword [esi + 8]
sub edx, edi
sar edx, 2
cmp edi, ebx
je 0x4892b4
mov eax, dword [esi + 0xc]
sub eax, edi
sar eax, 2
cmp edx, eax
jae 0x4892b4
mov edx, dword [esp + 0x188]
mov edi, dword [esi + 8]
push edx
push esi
push ecx
push 1
push edi
call fcn.0047b030
add esp, 0x14
add edi, 4
mov dword [esi + 8], edi
jmp 0x4892cd
mov eax, dword [esi + 8]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x470], eax
mov dword [ecx], eax
mov ecx, esi
call fcn.00485560
mov esi, 0xf
mov eax, str._sound_balls_ball_change.ogg
mov dword [esp + 0x328], esi
mov dword [esp + 0x324], ebx
mov byte [esp + 0x314], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4892f0
sub eax, edx
push eax
push str._sound_balls_ball_change.ogg
lea ecx, [esp + 0x318]
call fcn.00402cd0
lea eax, [esp + 0x310]
push eax
mov byte [esp + 0x6a8], 0xe
call fcn.0040e1a0
mov ecx, eax
call fcn.00435ad0
cmp dword [esp + 0x328], 0x10
jb 0x489341
mov ecx, dword [esp + 0x314]
push ecx
call fcn.004ade5d
add esp, 4
mov eax, dword [esp + 0xb0]
cmp eax, ebx
mov dword [esp + 0x328], esi
mov dword [esp + 0x324], ebx
mov byte [esp + 0x314], 0
mov byte [esp + 0x6a4], 1
je 0x489373
push eax
call fcn.004ade5d
add esp, 4
mov ebp, dword [esp + 0x10]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov byte [0x520b7c], 0
mov ebx, dword [0x520b78]
mov esi, dword [esp + 0x6bc]
inc ebx
mov dword [0x520b78], ebx
xor edi, edi
mov ecx, dword [ebp + 0xf4]
test ecx, ecx
mov dword [esp + 0x28], edi
jne 0x4893bb
xor eax, eax
jmp 0x4893c6
mov eax, dword [ebp + 0xf8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x48965b
test esi, esi
je 0x48958a
mov edx, dword [esp + 0x6c0]
sub edx, esi
sar edx, 2
test edx, edx
jbe 0x48958a
and ebx, 0x80000001
jns 0x4893f7
dec ebx
or ebx, 0xfffffffe
inc ebx
jne 0x48958a
xor ecx, ecx
nop
cmp ecx, edx
jae 0x48941b
mov eax, dword [ebp + 0xf4]
mov eax, dword [eax + edi*4]
mov ebx, dword [esi + ecx*4]
cmp ebx, dword [eax]
je 0x48958a
inc ecx
jmp 0x489400
test edx, edx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
jge 0x48942d
fadd dword [0x4f15e0]
fstp dword [esp + 0x1c]
fld dword [0x4fc4b8]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x48944a
fld dword [0x4fc4b8]
jmp 0x489469
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x4f3088]
fmul dword [esp + 0x1c]
call fcn.004adeb4
lea eax, [esi + eax*4]
mov esi, dword [eax]
mov eax, dword [ebp + 0xf4]
mov edx, dword [eax + edi*4]
mov dword [edx], esi
mov eax, dword [ebp + 0xf4]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x14]
push 1
call fcn.004244f0
push esi
lea ecx, [esp + 0x244]
push ecx
mov ecx, ebp
call fcn.00485ce0
mov eax, dword [eax]
mov byte [esp + 0x6a4], 0xf
mov ecx, dword [ebp + 0xf4]
mov ecx, dword [ecx + edi*4]
add ecx, 0x14
test eax, eax
mov dword [esp + 0xa8], eax
je 0x4894cc
inc dword [eax + 4]
mov eax, dword [esp + 0xa8]
mov edx, dword [ecx]
mov dword [esp + 0xa8], edx
mov dword [ecx], eax
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4894f8
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], 0
jne 0x4894f8
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x240]
test eax, eax
mov byte [esp + 0x6a4], 1
je 0x489521
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], 0
jne 0x489521
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp + 0xf4]
mov edx, dword [eax + edi*4]
mov ecx, dword [eax + edi*4]
mov edx, dword [edx + 8]
mov eax, dword [eax + edi*4]
mov ecx, dword [ecx + 0x14]
push 0xc3fb0000
push edx
mov edx, dword [eax + 4]
push edx
call fcn.00424870
mov eax, dword [ebp + 0xf4]
mov eax, dword [eax + edi*4]
push 1
push 1
push ecx
add eax, 0x14
mov dword [esp + 0x20], esp
mov eax, dword [eax]
test eax, eax
mov ecx, esp
mov dword [ecx], eax
je 0x489567
inc dword [eax + 4]
mov byte [esp + 0x6b0], 0x10
call fcn.0040e220
mov byte [esp + 0x6b0], 1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov esi, dword [esp + 0x6bc]
mov ecx, dword [ebp + 0xf4]
test ecx, ecx
jne 0x489598
xor eax, eax
jmp 0x4895a3
mov eax, dword [ebp + 0xf8]
sub eax, ecx
sar eax, 2
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x4895b5
fadd dword [0x4f15e0]
fdivr dword [0x4f5880]
mov ecx, dword [ebp + 0xf4]
lea eax, [edi*4]
mov ecx, dword [eax + ecx]
fild dword [esp + 0x28]
fld dword [ebp + 0x7c]
fmul dword [0x4f2a20]
fsubr dword [ebp + 0x74]
fld st(2)
fmul dword [ebp + 0x7c]
fmul st(2)
fsubp st(1)
fstp dword [ecx + 4]
mov ecx, dword [ebp + 0xf4]
fld dword [ebp + 0x80]
mov edx, dword [ecx + eax]
fmul dword [0x4f2a20]
add ecx, eax
fsubr dword [ebp + 0x78]
fxch st(2)
fmul st(1)
fmul dword [ebp + 0x80]
fsubp st(2)
fxch st(1)
fstp dword [edx + 8]
mov ecx, dword [ebp + 0xf4]
mov edx, dword [eax + ecx]
mov ebx, dword [ebp + 0x100]
fstp st(0)
add eax, ecx
mov ecx, dword [edx + 0x14]
mov edx, edi
sub edx, ebx
sub edx, 0x1f6
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
push ecx
fstp dword [esp]
mov edx, dword [eax]
mov edx, dword [edx + 8]
mov eax, dword [eax]
push edx
mov edx, dword [eax + 4]
push edx
call fcn.00424870
mov ebx, dword [0x520b78]
inc edi
jmp 0x4893a9
mov ecx, dword [ebp + 0xd4]
test ecx, ecx
je 0x489722
mov eax, dword [ebp + 0xd8]
sub eax, ecx
sar eax, 2
test eax, eax
jbe 0x489722
xor esi, esi
mov edi, edi
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x4f3088]
fmul dword [0x4f5880]
fsub dword [0x4f2a18]
fadd dword [esp + 0x6cc]
fstp dword [esp + 0x28]
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x4f3088]
fmul dword [0x4f5880]
fsub dword [0x4f2a18]
fadd dword [esp + 0x6d0]
fstp dword [esp + 0x20]
mov eax, dword [ebp + 0xd4]
mov ecx, dword [esi + eax]
call fcn.00481fe0
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0xd4]
mov eax, dword [esi + eax]
mov ecx, edx
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
push edx
push ecx
mov ecx, eax
call fcn.00424870
add esi, 4
cmp esi, 0xc
jb 0x489680
mov ecx, dword [ebp + 0x14c]
lea esi, [ebp + 0x14c]
xor edi, edi
cmp ecx, edi
je 0x48974e
mov edx, dword [esp + 0x6d0]
mov eax, dword [esp + 0x6cc]
push 0xc4160000
push edx
push eax
call fcn.00424870
mov ecx, dword [ebp + 0xc0]
cmp ecx, dword [esp + 0x6dc]
jne 0x489776
mov edx, dword [esp + 0x6e0]
cmp dword [ebp + 0xc4], edx
je 0x48b4a1
mov ebp, dword [esp + 0x10]
xor edi, edi
mov eax, dword [ebp + 0xbc]
cmp eax, edi
je 0x4897e0
push 1
push ecx
mov dword [esp + 0x1c], esp
mov ecx, esp
mov dword [ecx], eax
inc dword [eax + 4]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 0xbc]
push 1
call fcn.004244f0
mov dword [esp + 0x13c], edi
mov ecx, dword [ebp + 0xbc]
mov dword [esp + 0x13c], ecx
mov dword [ebp + 0xbc], edi
mov eax, dword [esp + 0x13c]
cmp eax, edi
je 0x4897e0
mov ebx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec ebx
mov dword [eax], ebx
cmp dword [eax], edi
jne 0x4897e0
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi]
cmp ecx, edi
je 0x48981f
push 1
call fcn.004244f0
mov dword [esp + 0xe8], edi
mov eax, dword [esi]
mov dword [esp + 0xe8], eax
mov dword [esi], edi
mov eax, dword [esp + 0xe8]
cmp eax, edi
je 0x48981f
mov ebx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec ebx
mov dword [eax], ebx
cmp dword [eax], edi
jne 0x48981f
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x6dc]
mov ecx, dword [esp + 0x6e0]
mov dword [ebp + 0xc0], eax
lea edx, [esp + 0x1e0]
mov dword [ebp + 0xc4], ecx
push edx
mov ecx, ebp
call fcn.00486130
mov eax, dword [eax]
cmp eax, edi
mov byte [esp + 0x6a4], 0x11
mov dword [esp + 0x80], eax
je 0x489867
inc dword [eax + 4]
mov eax, dword [esp + 0x80]
mov ecx, dword [esi]
mov dword [esp + 0x80], ecx
mov dword [esi], eax
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x489892
mov ebx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec ebx
mov dword [eax], ebx
cmp dword [eax], edi
jne 0x489892
mov edx, dword [ecx]
push 1
call dword [edx]
mov edx, dword [esi]
mov eax, dword [esp + 0x1e0]
cmp edx, edi
setne bl
cmp eax, edi
mov byte [esp + 0x6a4], 1
je 0x4898c1
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], edi
jne 0x4898c1
mov eax, dword [ecx]
push 1
call dword [eax]
test bl, bl
je 0x48995b
call fcn.0040f790
mov ecx, eax
call fcn.0041e270
mov ecx, dword [eax]
call fcn.00421f90
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fsub dword [0x4f2a10]
fstp dword [esp + 0x1c]
call fcn.0040f790
mov ecx, eax
call fcn.0041e270
mov ecx, dword [eax]
call fcn.00421fc0
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0xc4160000
fsub dword [0x4f2a08]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov ecx, dword [esi]
push edx
push eax
call fcn.00424870
push 1
push 1
push ecx
mov dword [esp + 0x20], esp
mov eax, dword [esi]
cmp eax, edi
mov ecx, esp
mov dword [ecx], eax
je 0x48993f
inc dword [eax + 4]
mov byte [esp + 0x6b0], 0x12
call fcn.0040e220
mov byte [esp + 0x6b0], 1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
xor edi, edi
lea ebx, [ebp + 0xd0]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4899c0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x4899c0
mov eax, dword [ebp + 0xd4]
lea esi, [edi*4]
mov ecx, dword [esi + eax]
push 1
call fcn.004244f0
mov eax, dword [ebp + 0xd4]
mov ecx, dword [eax + esi]
add eax, esi
test ecx, ecx
mov dword [esp + 0x470], ecx
mov dword [eax], 0
je 0x4899bd
mov esi, dword [ecx + 4]
lea eax, [ecx + 4]
dec esi
mov dword [eax], esi
cmp dword [eax], 0
jne 0x4899bd
mov eax, dword [ecx]
push 1
call dword [eax]
inc edi
jmp 0x489963
mov edi, dword [ebp + 0xd4]
test edi, edi
lea esi, [ebp + 0xd0]
je 0x4899f1
mov ebx, dword [esi + 8]
cmp edi, ebx
je 0x4899e5
mov ecx, edi
call fcn.004224e0
add edi, 4
cmp edi, ebx
jne 0x4899d7
mov eax, dword [esi + 4]
push eax
call fcn.004ade5d
add esp, 4
xor ebp, ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xe4]
add eax, 0xe0
test ecx, ecx
je 0x489b5f
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x489b5f
lea ecx, [esp + 0x210]
push ecx
call fcn.0040d4d0
mov ecx, eax
call fcn.00401650
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 0x13
call fcn.00401120
mov esi, eax
mov eax, dword [esp + 0x210]
test eax, eax
mov ebx, edx
mov byte [esp + 0x6a4], 1
je 0x489a77
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], 0
jne 0x489a77
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xe4]
mov ecx, dword [eax + ebp*4]
lea edi, [eax + ebp*4]
call fcn.00426810
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x6a4], 0x14
je 0x489ace
add esi, 0x1f4
lea ecx, [esp + 0x2ac]
adc ebx, 0
push ecx
mov ecx, eax
mov dword [esp + 0x2b0], esi
mov dword [esp + 0x2b4], ebx
call fcn.00423890
jmp 0x489ad0
xor eax, eax
test eax, eax
mov esi, eax
mov dword [esp + 0x5c], esi
je 0x489ae1
inc dword [eax + 4]
mov esi, dword [esp + 0x5c]
push 0xffffff
mov ecx, esi
mov byte [esp + 0x6a8], 0x15
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov esi, dword [esp + 0x60]
test esi, esi
je 0x489b0d
inc dword [esi + 4]
mov esi, dword [esp + 0x60]
mov ecx, dword [edi]
call fcn.0042b080
mov edi, dword [edi]
lea edx, [esp + 0x27c]
push edx
mov ecx, edi
mov dword [esp + 0x280], 0x1f4
mov dword [esp + 0x284], 0
call fcn.00422c20
test esi, esi
mov byte [esp + 0x6a4], 1
je 0x489b59
lea eax, [esi + 4]
mov ecx, esi
dec dword [eax]
cmp dword [eax], 0
jne 0x489b59
mov eax, dword [ecx]
push 1
call dword [eax]
inc ebp
jmp 0x489a00
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0xe4]
add edi, 0xe0
xor ebp, ebp
cmp esi, ebp
je 0x489b9a
mov ebx, dword [edi + 8]
cmp esi, ebx
je 0x489b8e
lea esp, [esp]
mov ecx, esi
call fcn.004224e0
add esi, 4
cmp esi, ebx
jne 0x489b80
mov eax, dword [edi + 4]
push eax
call fcn.004ade5d
add esp, 4
cmp dword [esp + 0x6dc], 2
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
jne 0x48b464
mov eax, dword [esp + 0x6e0]
cmp eax, 6
jne 0x48a429
mov esi, 3
mov bl, 0x17
mov edi, 0xf
lea ecx, [ecx]
push 0x1e8
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x16
je 0x489bf6
mov ecx, eax
call fcn.0042dd20
jmp 0x489bf8
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x3c], eax
je 0x489c03
inc dword [eax + 4]
mov eax, str.data_objects_bonus_on_catapult_fireball.xml
mov byte [esp + 0x6a4], bl
mov dword [esp + 0x3d0], edi
mov dword [esp + 0x3cc], ebp
mov byte [esp + 0x3bc], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489c28
sub eax, edx
push eax
push str.data_objects_bonus_on_catapult_fireball.xml
lea ecx, [esp + 0x3c0]
call fcn.00402cd0
push ebp
push ebp
lea ecx, [esp + 0x3c0]
push ecx
lea edx, [esp + 0x184]
push edx
mov byte [esp + 0x6b4], 0x18
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov eax, dword [eax]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x19
mov dword [esp + 0x108], eax
je 0x489c88
inc dword [eax + 4]
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x3c]
cmp ecx, ebp
mov dword [esp + 0x108], ecx
mov dword [esp + 0x3c], eax
je 0x489cae
mov edx, dword [ecx + 4]
lea eax, [ecx + 4]
dec edx
mov dword [eax], edx
cmp dword [eax], ebp
jne 0x489cae
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x178]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x18
je 0x489cd6
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], ebp
jne 0x489cd6
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x3d0], 0x10
mov byte [esp + 0x6a4], bl
jb 0x489cf7
mov eax, dword [esp + 0x3bc]
push eax
call fcn.004ade5d
add esp, 4
mov ecx, dword [esp + 0x3c]
push 1
push 1
push ebp
mov dword [esp + 0x3dc], edi
mov dword [esp + 0x3d8], ebp
mov byte [esp + 0x3c8], 0
call fcn.00424960
push 1
push 1
push ecx
mov ecx, dword [esp + 0x48]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ecx
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x489d37
inc dword [eax + 4]
mov byte [esp + 0x6b0], 0x1a
call fcn.0040e220
mov byte [esp + 0x6b0], bl
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
add ecx, 0xd0
call fcn.00452e80
mov eax, dword [esp + 0x3c]
cmp eax, ebp
mov byte [esp + 0x6a4], 1
je 0x489d8b
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], ebp
jne 0x489d8b
mov edx, dword [ecx]
push 1
call dword [edx]
dec esi
jne 0x489bd0
call fcn.0040f790
mov ecx, eax
call fcn.0041e270
mov ecx, dword [eax]
call fcn.00421f90
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fsub dword [0x4f2a10]
fstp dword [esp + 0x14]
call fcn.0040f790
mov ecx, eax
call fcn.0041e270
mov ecx, dword [eax]
call fcn.00421fc0
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
xor edi, edi
mov ebx, 0xf
fsub dword [0x4f2a08]
fstp dword [esp + 0x1c]
push 0x1e8
mov esi, 0x10
call fcn.004ad909
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x1b
je 0x489e0e
mov ecx, eax
call fcn.0042dd20
jmp 0x489e10
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x489e1b
inc dword [eax + 4]
mov eax, str._objects_bonus_on_catapult_fly.xml
mov byte [esp + 0x6a4], 0x1c
mov dword [esp + 0x360], ebx
mov dword [esp + 0x35c], ebp
mov byte [esp + 0x34c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489e41
sub eax, edx
push eax
push str._objects_bonus_on_catapult_fly.xml
lea ecx, [esp + 0x350]
call fcn.00402cd0
push ebp
push ebp
lea eax, [esp + 0x350]
push eax
lea ecx, [esp + 0x224]
push ecx
mov byte [esp + 0x6b4], 0x1d
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov eax, dword [eax]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x1e
mov dword [esp + 0x12c], eax
je 0x489ea1
inc dword [eax + 4]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x2c]
cmp ecx, ebp
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x2c], eax
je 0x489ec7
mov edx, dword [ecx + 4]
lea eax, [ecx + 4]
dec edx
mov dword [eax], edx
cmp dword [eax], ebp
jne 0x489ec7
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x218]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x1d
je 0x489eef
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], ebp
jne 0x489eef
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x360], esi
mov byte [esp + 0x6a4], 0x1c
jb 0x489f10
mov ecx, dword [esp + 0x34c]
push ecx
call fcn.004ade5d
add esp, 4
mov eax, 0x4f724c
mov dword [esp + 0x360], ebx
mov dword [esp + 0x35c], ebp
mov byte [esp + 0x34c], 0
mov dword [esp + 0x440], ebx
mov dword [esp + 0x43c], ebp
mov byte [esp + 0x42c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489f44
sub eax, edx
push eax
push 0x4f724c
lea ecx, [esp + 0x430]
call fcn.00402cd0
push ebp
push ebp
lea edx, [esp + 0x430]
push edx
lea eax, [esp + 0x234]
push eax
mov byte [esp + 0x6b4], 0x1f
call fcn.00415620
mov ecx, eax
call fcn.00431b90
cmp dword [esp + 0x440], esi
mov byte [esp + 0x6a4], 0x21
jb 0x489fa6
mov ecx, dword [esp + 0x42c]
push ecx
call fcn.004ade5d
add esp, 4
push 1
push 1
mov dword [esp + 0x448], ebx
mov dword [esp + 0x444], ebp
mov byte [esp + 0x434], 0
call fcn.0040d4d0
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov ecx, eax
call fcn.004016d0
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00425c90
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x4f3088]
fmul dword [0x4f7248]
fstp dword [esp + 0x28]
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
push 0xc4168000
sub esp, 8
mov ecx, esi
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fmul dword [0x4f3088]
fmul dword [0x4f7248]
fld dword [esp + 0x28]
fadd dword [esp + 0x34]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fadd st(1)
fstp dword [esp]
fstp st(0)
call fcn.00424870
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x4f3088]
fadd st(0), st(0)
fsub dword [0x4f1a10]
fstp dword [esp + 0x28]
call fcn.004af0f4
cdq
mov ecx, 0x2710
idiv ecx
push 0x43fa0000
lea ecx, [esp + 0x234]
mov dword [esp + 0x23c], 0
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x238], edx
fmul dword [0x4f3088]
fadd st(0), st(0)
fsub dword [0x4f1a10]
fstp dword [esp + 0x234]
call fcn.00423490
lea eax, [esp + 0x230]
fstp st(0)
push eax
mov ecx, esi
call fcn.00422480
mov dword [esp + 0x460], ebp
mov dword [esp + 0x154], ebp
mov dword [esp + 0x158], 0x42c80000
mov dword [esp + 0x160], 0xffffffff
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x6a4], 0x22
mov byte [esp + 0x15c], 1
mov eax, dword [ecx + 0xd4]
mov eax, dword [edi + eax]
cmp eax, ebp
mov dword [esp + 0x114], eax
je 0x48a12a
inc dword [eax + 4]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x154]
cmp ecx, ebp
mov dword [esp + 0x114], ecx
mov dword [esp + 0x154], eax
je 0x48a156
mov esi, dword [ecx + 4]
lea eax, [ecx + 4]
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48a156
mov edx, dword [ecx]
push 1
call dword [edx]
fld dword [0x4fc4b8]
xor eax, eax
mov edi, edi
fld dword [esp + eax*4 + 0x230]
inc eax
cmp eax, 3
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x48a160
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x48a18c
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x48a18e
fsqrt
fmul dword [0x4f7244]
lea eax, [esp + 0x220]
push eax
fstp dword [esp + 0x15c]
call fcn.0040d4d0
mov ecx, eax
call fcn.00401650
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 0x23
call fcn.00401120
mov ecx, dword [esp + 0x220]
cmp ecx, ebp
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], edx
mov byte [esp + 0x6a4], 0x22
je 0x48a200
mov esi, dword [ecx + 4]
lea eax, [ecx + 4]
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48a1f2
mov edx, dword [ecx]
push 1
call dword [edx]
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xe0]
add eax, 0x1f4
adc edx, ebp
push 0x40
mov dword [esp + 0x2a0], eax
mov dword [esp + 0x2a4], edx
call fcn.004ad909
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x24
je 0x48a240
lea ecx, [esp + 0xe0]
push ecx
mov ecx, eax
call fcn.00423890
jmp 0x48a242
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x64], esi
je 0x48a253
inc dword [eax + 4]
mov esi, dword [esp + 0x64]
push 0xffffff
mov ecx, esi
mov byte [esp + 0x6a8], 0x25
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], esi
mov eax, dword [esp + 0x68]
cmp eax, ebp
je 0x48a27b
inc dword [eax + 4]
mov ecx, dword [esp + 0x30]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x26
je 0x48a2af
lea edx, [esp + 0x29c]
push edx
mov ecx, eax
call fcn.00423890
jmp 0x48a2b1
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x94], esi
je 0x48a2c8
inc dword [eax + 4]
mov esi, dword [esp + 0x94]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x6a8], 0x27
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], esi
mov eax, dword [esp + 0x98]
cmp eax, ebp
je 0x48a2f0
inc dword [eax + 4]
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.0042b080
lea eax, [esp + 0x154]
push eax
lea ecx, [esi + 0x1a8]
call fcn.00485c70
push 1
push 1
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], esi
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x48a326
inc dword [eax + 4]
mov byte [esp + 0x6b0], 0x28
call fcn.0040e220
mov byte [esp + 0x6b0], 0x27
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
add ecx, 0xe0
call fcn.00452e80
mov eax, dword [esp + 0x94]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x25
je 0x48a37e
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48a37e
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x64]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x22
je 0x48a3a3
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48a3a3
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x154]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x21
je 0x48a3cb
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48a3cb
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x228]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x1c
je 0x48a3f3
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48a3f3
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov byte [esp + 0x6a4], 1
je 0x48a418
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48a418
mov edx, dword [ecx]
push 1
call dword [edx]
add edi, 4
cmp edi, 0xc
jb 0x489de3
jmp 0x48b464
cmp eax, ebp
jne 0x48a54e
mov esi, 0xf
mov eax, str._objects_bonus_on_catapult_fireball.xml
mov dword [esp + 0x398], esi
mov dword [esp + 0x394], ebp
mov byte [esp + 0x384], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48a454
sub eax, edx
push eax
push str._objects_bonus_on_catapult_fireball.xml
lea ecx, [esp + 0x388]
call fcn.00402cd0
push ebp
push ebp
lea eax, [esp + 0x388]
push eax
lea ecx, [esp + 0x19c]
mov bl, 0x29
push ecx
mov byte [esp + 0x6b4], bl
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xbc
cmp eax, ebp
mov byte [esp + 0x6a4], 0x2a
mov dword [esp + 0xd0], eax
je 0x48a4bf
inc dword [eax + 4]
mov eax, dword [esp + 0xd0]
mov edx, dword [ecx]
mov dword [esp + 0xd0], edx
mov dword [ecx], eax
mov eax, dword [esp + 0xd0]
cmp eax, ebp
je 0x48a4ea
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a4ea
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x190]
cmp eax, ebp
mov byte [esp + 0x6a4], bl
je 0x48a511
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a511
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x398], 0x10
mov byte [esp + 0x6a4], 1
jb 0x48a533
mov eax, dword [esp + 0x384]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x398], esi
mov dword [esp + 0x394], ebp
mov byte [esp + 0x384], 0
jmp 0x48b464
cmp eax, 1
jne 0x48a66e
mov esi, 0xf
mov eax, str._objects_bonus_on_catapult_fireball3.xml
mov dword [esp + 0x2f0], esi
mov dword [esp + 0x2ec], ebp
mov byte [esp + 0x2dc], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48a580
sub eax, edx
push eax
push str._objects_bonus_on_catapult_fireball3.xml
lea ecx, [esp + 0x2e0]
call fcn.00402cd0
push ebp
push ebp
lea ecx, [esp + 0x2e0]
push ecx
lea edx, [esp + 0x230]
mov bl, 0x2b
push edx
mov byte [esp + 0x6b4], bl
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xbc
cmp eax, ebp
mov byte [esp + 0x6a4], 0x2c
mov dword [esp + 0x6c], eax
je 0x48a5e5
inc dword [eax + 4]
mov eax, dword [esp + 0x6c]
mov edx, dword [ecx]
mov dword [esp + 0x6c], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x6c]
cmp eax, ebp
je 0x48a60a
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a60a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x224]
cmp eax, ebp
mov byte [esp + 0x6a4], bl
je 0x48a631
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a631
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x2f0], 0x10
mov byte [esp + 0x6a4], 1
jb 0x48a653
mov eax, dword [esp + 0x2dc]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x2f0], esi
mov dword [esp + 0x2ec], ebp
mov byte [esp + 0x2dc], 0
jmp 0x48b464
cmp eax, 2
jne 0x48a79a
mov esi, 0xf
mov eax, str._objects_bonus_on_catapult_plasma.xml
mov dword [esp + 0x30c], esi
mov dword [esp + 0x308], ebp
mov byte [esp + 0x2f8], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48a6a0
sub eax, edx
push eax
push str._objects_bonus_on_catapult_plasma.xml
lea ecx, [esp + 0x2fc]
call fcn.00402cd0
push ebp
push ebp
lea ecx, [esp + 0x2fc]
push ecx
lea edx, [esp + 0x1a4]
mov bl, 0x2d
push edx
mov byte [esp + 0x6b4], bl
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xbc
cmp eax, ebp
mov byte [esp + 0x6a4], 0x2e
mov dword [esp + 0x9c], eax
je 0x48a70b
inc dword [eax + 4]
mov eax, dword [esp + 0x9c]
mov edx, dword [ecx]
mov dword [esp + 0x9c], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x9c]
cmp eax, ebp
je 0x48a736
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a736
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x198]
cmp eax, ebp
mov byte [esp + 0x6a4], bl
je 0x48a75d
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a75d
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x30c], 0x10
mov byte [esp + 0x6a4], 1
jb 0x48a77f
mov eax, dword [esp + 0x2f8]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x30c], esi
mov dword [esp + 0x308], ebp
mov byte [esp + 0x2f8], 0
jmp 0x48b464
cmp eax, 3
jne 0x48a8b4
mov esi, 0xf
mov eax, str._objects_bonus_on_catapult_salute.xml
mov dword [esp + 0x344], esi
mov dword [esp + 0x340], ebp
mov byte [esp + 0x330], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48a7c6
sub eax, edx
push eax
push str._objects_bonus_on_catapult_salute.xml
lea ecx, [esp + 0x334]
call fcn.00402cd0
push ebp
push ebp
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x1f4]
mov bl, 0x2f
push edx
mov byte [esp + 0x6b4], bl
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xbc
cmp eax, ebp
mov byte [esp + 0x6a4], 0x30
mov dword [esp + 0x74], eax
je 0x48a82b
inc dword [eax + 4]
mov eax, dword [esp + 0x74]
mov edx, dword [ecx]
mov dword [esp + 0x74], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x74]
cmp eax, ebp
je 0x48a850
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a850
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x1e8]
cmp eax, ebp
mov byte [esp + 0x6a4], bl
je 0x48a877
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a877
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x344], 0x10
mov byte [esp + 0x6a4], 1
jb 0x48a899
mov eax, dword [esp + 0x330]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x344], esi
mov dword [esp + 0x340], ebp
mov byte [esp + 0x330], 0
jmp 0x48b464
cmp eax, 8
jne 0x48a9da
mov esi, 0xf
mov eax, str._objects_bonus_on_catapult_rainbow_ball.xml
mov dword [esp + 0x37c], esi
mov dword [esp + 0x378], ebp
mov byte [esp + 0x368], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48a8e0
sub eax, edx
push eax
push str._objects_bonus_on_catapult_rainbow_ball.xml
lea ecx, [esp + 0x36c]
call fcn.00402cd0
push ebp
push ebp
lea ecx, [esp + 0x36c]
push ecx
lea edx, [esp + 0x1ac]
mov bl, 0x31
push edx
mov byte [esp + 0x6b4], bl
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xbc
cmp eax, ebp
mov byte [esp + 0x6a4], 0x32
mov dword [esp + 0xc4], eax
je 0x48a94b
inc dword [eax + 4]
mov eax, dword [esp + 0xc4]
mov edx, dword [ecx]
mov dword [esp + 0xc4], edx
mov dword [ecx], eax
mov eax, dword [esp + 0xc4]
cmp eax, ebp
je 0x48a976
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a976
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x1a0]
cmp eax, ebp
mov byte [esp + 0x6a4], bl
je 0x48a99d
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48a99d
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x37c], 0x10
mov byte [esp + 0x6a4], 1
jb 0x48a9bf
mov eax, dword [esp + 0x368]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x37c], esi
mov dword [esp + 0x378], ebp
mov byte [esp + 0x368], 0
jmp 0x48b464
cmp eax, 5
jne 0x48aaf4
mov esi, 0xf
mov eax, str._objects_shot_bonuses_ice_magic.xml
mov dword [esp + 0x3b4], esi
mov dword [esp + 0x3b0], ebp
mov byte [esp + 0x3a0], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48aa06
sub eax, edx
push eax
push str._objects_shot_bonuses_ice_magic.xml
lea ecx, [esp + 0x3a4]
call fcn.00402cd0
push ebp
push ebp
lea ecx, [esp + 0x3a4]
push ecx
lea edx, [esp + 0x220]
mov bl, 0x33
push edx
mov byte [esp + 0x6b4], bl
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xbc
cmp eax, ebp
mov byte [esp + 0x6a4], 0x34
mov dword [esp + 0x7c], eax
je 0x48aa6b
inc dword [eax + 4]
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
mov dword [esp + 0x7c], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x7c]
cmp eax, ebp
je 0x48aa90
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48aa90
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x214]
cmp eax, ebp
mov byte [esp + 0x6a4], bl
je 0x48aab7
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48aab7
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x3b4], 0x10
mov byte [esp + 0x6a4], 1
jb 0x48aad9
mov eax, dword [esp + 0x3a0]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x3b4], esi
mov dword [esp + 0x3b0], ebp
mov byte [esp + 0x3a0], 0
jmp 0x48b464
cmp eax, 7
jne 0x48b464
lea ecx, [esp + 0x1a8]
push ecx
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 0x35
call fcn.00401120
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1a8]
cmp eax, ebp
mov dword [esp + 0x4c], edx
mov byte [esp + 0x6a4], 1
je 0x48ab50
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48ab50
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x1e8
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x36
je 0x48ab76
mov ecx, eax
call fcn.0042dd20
jmp 0x48ab78
xor eax, eax
mov esi, dword [esp + 0x10]
add esi, 0xbc
cmp eax, ebp
mov byte [esp + 0x6a4], 1
mov ecx, esi
mov dword [esp + 0xa4], eax
je 0x48ab9a
inc dword [eax + 4]
mov eax, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp + 0xa4], edx
mov dword [ecx], eax
mov eax, dword [esp + 0xa4]
cmp eax, ebp
je 0x48abcc
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48abcc
mov eax, dword [ecx]
push 1
call dword [eax]
push 1
push 1
call fcn.0040d4d0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, eax
call fcn.004016d0
mov ecx, dword [esi]
call fcn.00425c90
mov edi, 0xf
mov eax, 0x4f712c
mov dword [esp + 0x3ec], edi
mov dword [esp + 0x3e8], ebp
mov byte [esp + 0x3d8], 0
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48ac10
sub eax, ecx
push eax
push 0x4f712c
lea ecx, [esp + 0x3dc]
call fcn.00402cd0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3d4]
mov byte [esp + 0x6a4], 0x37
mov ecx, dword [edx + 0xbc]
push eax
call fcn.0042c070
mov eax, dword [esp + 0x3ec]
mov ebx, 0x10
cmp eax, ebx
mov byte [esp + 0x6a4], 1
jb 0x48ac72
mov ecx, dword [esp + 0x3d8]
push ecx
call fcn.004ade5d
add esp, 4
mov edx, dword [esp + 0x10]
push 0xbf800000
push 0xbf800000
push 0x43800000
mov dword [esp + 0x3f8], edi
mov dword [esp + 0x3f4], ebp
mov byte [esp + 0x3e4], 0
mov esi, dword [edx + 0xbc]
push 0x43800000
lea ecx, [esp + 0x5e4]
call fcn.00422f90
push eax
mov ecx, esi
call fcn.0042adf0
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0xbc]
push ebp
push 0xa
push 2
push ebp
lea ecx, [esp + 0x4d4]
call fcn.00422250
push eax
mov ecx, esi
call fcn.0042aff0
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0xbc]
call fcn.00422300
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x38
je 0x48ad15
lea edx, [esp + 0x48]
push edx
mov ecx, eax
call fcn.00423890
jmp 0x48ad17
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x60], esi
je 0x48ad28
inc dword [eax + 4]
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x1f0]
push eax
mov ecx, esi
mov byte [esp + 0x6a8], 0x39
mov dword [esp + 0x1f4], 0
call fcn.00422370
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x64]
cmp eax, ebp
je 0x48ad5e
inc dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xbc]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x3a
je 0x48adb6
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add edx, 0x1c9c380
adc ecx, ebp
mov dword [esp + 0x254], edx
lea edx, [esp + 0x254]
mov dword [esp + 0x258], ecx
push edx
mov ecx, eax
call fcn.00423890
jmp 0x48adb8
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x58], esi
je 0x48adc9
inc dword [eax + 4]
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x1b0]
push eax
mov ecx, esi
mov byte [esp + 0x6a8], 0x3b
mov dword [esp + 0x1b4], 0x459c4000
call fcn.00422370
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
cmp eax, ebp
je 0x48adff
inc dword [eax + 4]
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0xbc]
call fcn.0042b080
mov ecx, dword [esi + 0xbc]
push 0x3f333333
call fcn.004248d0
push 0x1e8
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x3c
je 0x48ae44
mov ecx, eax
call fcn.0042dd20
jmp 0x48ae46
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x44], esi
je 0x48ae57
inc dword [eax + 4]
mov esi, dword [esp + 0x44]
push 1
push 1
mov byte [esp + 0x6ac], 0x3d
call fcn.0040d4d0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, eax
call fcn.004016d0
mov ecx, esi
call fcn.00425c90
mov eax, 0x4f712c
mov dword [esp + 0x424], edi
mov dword [esp + 0x420], ebp
mov byte [esp + 0x410], 0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48aea0
sub eax, ecx
push eax
push 0x4f712c
lea ecx, [esp + 0x414]
call fcn.00402cd0
lea edx, [esp + 0x40c]
push edx
mov ecx, esi
mov byte [esp + 0x6a8], 0x3e
call fcn.0042c070
cmp dword [esp + 0x424], ebx
mov byte [esp + 0x6a4], 0x3d
jb 0x48aef3
mov eax, dword [esp + 0x410]
push eax
call fcn.004ade5d
add esp, 4
push 0xbf800000
push 0xbf800000
push 0x43800000
push 0x43800000
lea ecx, [esp + 0x580]
mov dword [esp + 0x434], edi
mov dword [esp + 0x430], ebp
mov byte [esp + 0x420], 0
call fcn.00422f90
push eax
mov ecx, esi
call fcn.0042adf0
push ebp
push 0xa
push 2
push ebp
lea ecx, [esp + 0x4ec]
call fcn.00422250
push eax
mov ecx, esi
call fcn.0042aff0
mov ecx, esi
call fcn.00422300
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x3f
je 0x48af7a
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call fcn.00423890
jmp 0x48af7c
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x54], esi
je 0x48af8d
inc dword [eax + 4]
mov esi, dword [esp + 0x54]
lea edx, [esp + 0x164]
push edx
mov ecx, esi
mov byte [esp + 0x6a8], 0x40
mov dword [esp + 0x168], 0x40400000
call fcn.00422370
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x58]
cmp eax, ebp
je 0x48afc3
inc dword [eax + 4]
mov ecx, dword [esp + 0x48]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x41
je 0x48b015
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add ecx, 0x1c9c380
mov dword [esp + 0x264], ecx
lea ecx, [esp + 0x264]
adc edx, ebp
push ecx
mov ecx, eax
mov dword [esp + 0x26c], edx
call fcn.00423890
jmp 0x48b017
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x8c], esi
je 0x48b02e
inc dword [eax + 4]
mov esi, dword [esp + 0x8c]
lea edx, [esp + 0x1b8]
push edx
mov ecx, esi
mov byte [esp + 0x6a8], 0x42
mov dword [esp + 0x1bc], 0xc58ca000
call fcn.00422370
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x90]
cmp eax, ebp
je 0x48b067
inc dword [eax + 4]
mov esi, dword [esp + 0x48]
mov ecx, esi
call fcn.0042b080
push 0x3f333333
mov ecx, esi
call fcn.004248d0
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x48b092
inc dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xbc]
add eax, 0xbc
mov eax, dword [ecx]
call dword [eax + 8]
push 0x1e8
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x43
je 0x48b0cc
mov ecx, eax
call fcn.0042dd20
jmp 0x48b0ce
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x40], esi
je 0x48b0df
inc dword [eax + 4]
mov esi, dword [esp + 0x40]
push 1
push 1
mov byte [esp + 0x6ac], 0x44
call fcn.0040d4d0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, eax
call fcn.004016d0
mov ecx, esi
call fcn.00425c90
mov eax, 0x4f712c
mov dword [esp + 0x45c], edi
mov dword [esp + 0x458], ebp
mov byte [esp + 0x448], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48b124
sub eax, ecx
push eax
push 0x4f712c
lea ecx, [esp + 0x44c]
call fcn.00402cd0
lea edx, [esp + 0x444]
push edx
mov ecx, esi
mov byte [esp + 0x6a8], 0x45
call fcn.0042c070
cmp dword [esp + 0x45c], ebx
mov byte [esp + 0x6a4], 0x44
jb 0x48b177
mov eax, dword [esp + 0x448]
push eax
call fcn.004ade5d
add esp, 4
push 0xbf800000
push 0xbf800000
push 0x43800000
push 0x43800000
lea ecx, [esp + 0x648]
mov dword [esp + 0x46c], edi
mov dword [esp + 0x468], ebp
mov byte [esp + 0x458], 0
call fcn.00422f90
push eax
mov ecx, esi
call fcn.0042adf0
push ebp
push 0xa
push 2
push ebp
lea ecx, [esp + 0x504]
call fcn.00422250
push eax
mov ecx, esi
call fcn.0042aff0
mov ecx, esi
call fcn.00422300
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x46
je 0x48b1fe
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call fcn.00423890
jmp 0x48b200
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0xd4], esi
je 0x48b217
inc dword [eax + 4]
mov esi, dword [esp + 0xd4]
lea edx, [esp + 0x1f8]
mov bl, 0x47
push edx
mov ecx, esi
mov byte [esp + 0x6a8], bl
mov dword [esp + 0x1fc], 0x40a00000
call fcn.00422370
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0xd8]
cmp eax, ebp
je 0x48b251
inc dword [eax + 4]
mov ecx, dword [esp + 0x44]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x48
je 0x48b2a3
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add ecx, 0x1c9c380
mov dword [esp + 0x274], ecx
lea ecx, [esp + 0x274]
adc edx, ebp
push ecx
mov ecx, eax
mov dword [esp + 0x27c], edx
call fcn.00423890
jmp 0x48b2a5
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x84], esi
je 0x48b2bc
inc dword [eax + 4]
mov esi, dword [esp + 0x84]
lea edx, [esp + 0x1c0]
push edx
mov ecx, esi
mov byte [esp + 0x6a8], 0x49
mov dword [esp + 0x1c4], 0xc51c4000
call fcn.00422370
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x88]
cmp eax, ebp
je 0x48b2f5
inc dword [eax + 4]
mov esi, dword [esp + 0x44]
mov ecx, esi
call fcn.0042b080
push 0x3f333333
mov ecx, esi
call fcn.004248d0
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x48b320
inc dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xbc]
add eax, 0xbc
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esp + 0x84]
cmp eax, ebp
mov byte [esp + 0x6a4], bl
je 0x48b35b
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b35b
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0xd4]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x44
je 0x48b383
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b383
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x40]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x42
je 0x48b3a8
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b3a8
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x8c]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x40
je 0x48b3d0
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b3d0
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x54]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x3d
je 0x48b3f5
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b3f5
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x44]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x3b
je 0x48b41a
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b41a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x58]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x39
je 0x48b43f
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b43f
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x60]
cmp eax, ebp
mov byte [esp + 0x6a4], 1
je 0x48b464
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b464
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xbc]
add esi, 0xbc
cmp eax, ebp
je 0x48b4a1
push ecx
mov dword [esp + 0x18], esp
mov ecx, esp
mov dword [ecx], eax
inc dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xa0]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi]
push 0xc2480000
push ebp
push ebp
call fcn.00424870
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xc0]
xor ebp, ebp
xor esi, esi
cmp eax, 2
jne 0x48b4e5
mov ecx, dword [ebx + 0xf4]
cmp ecx, ebp
je 0x48b516
mov eax, dword [ebx + 0xf8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x48b516
mov eax, ecx
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx + 0x14]
push 1
lea eax, [eax + esi*4]
push 1
push ebp
call fcn.00424960
inc esi
jmp 0x48b4b4
mov ecx, dword [ebx + 0xf4]
cmp ecx, ebp
je 0x48b516
mov eax, dword [ebx + 0xf8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x48b516
mov edx, ecx
lea eax, [edx + esi*4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
push 1
push 1
push 1
call fcn.00424960
inc esi
jmp 0x48b4e5
xor eax, eax
jmp 0x48b520
mov dword [esp + eax*4 + 0x490], ebp
inc eax
cmp eax, 2
jl 0x48b520
xor eax, eax
nop
mov dword [esp + eax*4 + 0x498], ebp
inc eax
cmp eax, 2
jl 0x48b530
mov dword [esp + 0x4a0], ebp
xor eax, eax
jmp 0x48b550
mov dword [esp + eax*4 + 0x4a8], ebp
inc eax
cmp eax, 2
jl 0x48b550
xor eax, eax
nop
mov dword [esp + eax*4 + 0x4bc], ebp
inc eax
cmp eax, 2
jl 0x48b560
mov al, byte [esp + 0x6c8]
test al, al
mov dword [esp + 0x17c], 0x461c4000
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0x180], 0x461c4000
mov edx, dword [esp + 0x180]
mov byte [esp + 0x6a4], 0x4a
mov dword [esp + 0x490], ecx
mov dword [esp + 0x494], edx
je 0x48bbd5
fild qword [ebx + 0x110]
fcomp dword [0x4f1a10]
fnstsw ax
test ah, 5
jnp 0x48bbd5
mov al, byte [esp + 0x6d4]
test al, al
je 0x48b9a8
lea eax, [ebx + 0x130]
mov dword [esp + 0x14], eax
cmp byte [eax], 0
jne 0x48b984
lea eax, [esp + 0x21c]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 0x4b
call fcn.00401120
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x13c], edx
mov eax, dword [esp + 0x21c]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x4a
je 0x48b646
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48b646
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x6dc]
cmp eax, ebp
je 0x48b668
cmp eax, 2
jne 0x48b984
cmp dword [esp + 0x6e0], 8
jne 0x48b984
cmp dword [ebx + 0x44], ebp
je 0x48b984
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x108]
add ebp, 0x108
test eax, eax
jne 0x48b984
mov edi, 0xf
xor esi, esi
mov eax, str._objects_bonus_on_catapult_magic_green.xml
mov dword [esp + 0x2d4], edi
mov dword [esp + 0x2d0], esi
mov byte [esp + 0x2c0], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48b6b0
sub eax, edx
push eax
push str._objects_bonus_on_catapult_magic_green.xml
lea ecx, [esp + 0x2c4]
call fcn.00402cd0
push esi
push esi
lea eax, [esp + 0x2c4]
push eax
lea ecx, [esp + 0x1d4]
mov bl, 0x4c
push ecx
mov byte [esp + 0x6b4], bl
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov eax, dword [eax]
cmp eax, esi
mov byte [esp + 0x6a4], 0x4d
mov ecx, ebp
mov dword [esp + 0x50], eax
je 0x48b70d
inc dword [eax + 4]
mov eax, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x48b732
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], esi
jne 0x48b732
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x1c8]
cmp eax, esi
mov byte [esp + 0x6a4], bl
je 0x48b759
mov ebx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec ebx
mov dword [eax], ebx
cmp dword [eax], esi
jne 0x48b759
mov edx, dword [ecx]
push 1
call dword [edx]
cmp dword [esp + 0x2d4], 0x10
mov byte [esp + 0x6a4], 0x4a
jb 0x48b77b
mov eax, dword [esp + 0x2c0]
push eax
call fcn.004ade5d
add esp, 4
push 0x3f800000
push esi
mov dword [esp + 0x2dc], edi
mov dword [esp + 0x2d8], esi
mov byte [esp + 0x2c8], 0
mov ecx, dword [ebp]
push esi
call fcn.00424870
push ecx
mov dword [esp + 0x24], esp
mov eax, dword [ebp]
cmp eax, esi
mov ecx, esp
mov dword [ecx], eax
je 0x48b7b3
inc dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xa0]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp]
push esi
call fcn.00424c80
lea eax, [esp + 0x200]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 0x4e
call fcn.00401120
mov edi, eax
mov eax, dword [esp + 0x200]
cmp eax, esi
mov ebx, edx
mov byte [esp + 0x6a4], 0x4a
je 0x48b81a
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], esi
jne 0x48b81a
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov byte [esp + 0x6a4], 0x4f
je 0x48b85f
mov ecx, edi
add ecx, 0x1f4
mov dword [esp + 0x284], ecx
lea ecx, [esp + 0x284]
mov edx, ebx
adc edx, esi
push ecx
mov ecx, eax
mov dword [esp + 0x28c], edx
call fcn.00423890
jmp 0x48b861
xor eax, eax
test eax, eax
mov esi, eax
mov dword [esp + 0x70], esi
je 0x48b872
inc dword [eax + 4]
mov esi, dword [esp + 0x70]
push 0x3f800000
mov ecx, esi
mov byte [esp + 0x6a8], 0x50
call fcn.00423160
push 0xffffff
mov ecx, esi
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], esi
mov eax, dword [esp + 0x74]
test eax, eax
je 0x48b8a6
inc dword [eax + 4]
mov ecx, dword [ebp]
call fcn.0042b080
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x6a4], 0x51
je 0x48b8f0
add edi, 0x3e8
lea edx, [esp + 0x294]
adc ebx, 0
push edx
mov ecx, eax
mov dword [esp + 0x298], edi
mov dword [esp + 0x29c], ebx
call fcn.00423890
jmp 0x48b8f2
xor eax, eax
test eax, eax
mov esi, eax
mov dword [esp + 0x68], esi
je 0x48b903
inc dword [eax + 4]
mov esi, dword [esp + 0x68]
push 0x3f000000
mov ecx, esi
mov byte [esp + 0x6a8], 0x52
call fcn.00423160
push 0xffffffffffffffff
mov ecx, esi
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], esi
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x48b938
inc dword [esi + 4]
mov esi, dword [esp + 0x6c]
mov ecx, dword [ebp]
call fcn.0042b080
test esi, esi
mov byte [esp + 0x6a4], 0x50
je 0x48b95e
lea eax, [esi + 4]
mov ecx, esi
dec dword [eax]
cmp dword [eax], 0
jne 0x48b95e
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x70]
test eax, eax
mov byte [esp + 0x6a4], 0x4a
je 0x48b984
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], 0
jne 0x48b984
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x14]
mov byte [eax], 1
xor ebp, ebp
mov esi, dword [esp + 0x6ac]
lea eax, [esp + 0x48c]
push eax
mov ecx, esi
call fcn.004845c0
jmp 0x48bbeb
mov al, byte [ebx + 0x130]
test al, al
je 0x48b98d
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 0x53
call fcn.00401120
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1d0]
cmp eax, ebp
mov dword [esp + 0x24], edx
mov byte [esp + 0x6a4], 0x4a
je 0x48ba05
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48ba05
mov edx, dword [ecx]
push 1
call dword [edx]
mov byte [ebx + 0x130], 0
cmp dword [ebx + 0x108], ebp
je 0x48bb7e
lea eax, [esp + 0x2a4]
mov dword [esp + 0x2a4], 0x1f4
mov dword [esp + 0x2a8], ebp
mov ecx, dword [ebx + 0x108]
push eax
call fcn.00422c20
lea ecx, [esp + 0xfc]
push ecx
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov byte [esp + 0x6a4], 0x54
call fcn.00401120
mov esi, eax
mov eax, dword [esp + 0xfc]
cmp eax, ebp
mov edi, edx
mov byte [esp + 0x6a4], 0x4a
je 0x48ba8c
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
cmp dword [eax], ebp
jne 0x48ba8c
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x40
call fcn.004ad909
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x6a4], 0x55
je 0x48bacd
add esi, 0x1f4
lea ecx, [esp + 0x2b4]
adc edi, ebp
push ecx
mov ecx, eax
mov dword [esp + 0x2b8], esi
mov dword [esp + 0x2bc], edi
call fcn.00423890
jmp 0x48bacf
xor eax, eax
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x78], esi
je 0x48bae0
inc dword [eax + 4]
mov esi, dword [esp + 0x78]
push 0x3f800000
mov ecx, esi
mov byte [esp + 0x6a8], 0x56
call fcn.00423160
push 0xffffff
mov ecx, esi
call fcn.00422400
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], esi
mov eax, dword [esp + 0x7c]
cmp eax, ebp
je 0x48bb14
inc dword [eax + 4]
mov ecx, dword [ebx + 0x108]
call fcn.0042b080
mov dword [esp + 0x148], ebp
mov edx, dword [ebx + 0x108]
mov dword [esp + 0x148], edx
mov dword [ebx + 0x108], ebp
mov eax, dword [esp + 0x148]
cmp eax, ebp
je 0x48bb59
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48bb59
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x78]
cmp eax, ebp
mov byte [esp + 0x6a4], 0x4a
je 0x48bb7e
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov dword [eax], esi
cmp dword [eax], ebp
jne 0x48bb7e
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebx + 0x140]
mov edi, dword [ebx + 0x138]
mov eax, dword [ebx + 0x144]
mov esi, dword [ebx + 0x13c]
mov edx, dword [esp + 0x24]
add ecx, edi
adc eax, esi
cmp edx, eax
jl 0x48bbb2
jg 0x48bbaa
cmp dword [esp + 0x20], ecx
jbe 0x48bbb2
cmp dword [ebx + 0x44], ebp
je 0x48bbb2
push ebp
jmp 0x48bbb4
push 1
mov eax, dword [esp + 0x6d4]
mov ecx, dword [esp + 0x6d0]
mov esi, dword [esp + 0x6b0]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00487830
jmp 0x48bbeb
mov esi, dword [esp + 0x6ac]
lea eax, [esp + 0x48c]
push eax
mov ecx, esi
call fcn.004845c0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x4a0]
or edx, 1
cmp eax, ebp
mov dword [esp + 0x30], edx
mov byte [esp + 0x6a4], 1
je 0x48bc1e
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov dword [eax], edi
cmp dword [eax], ebp
jne 0x48bc1e
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x6bc]
cmp eax, ebp
je 0x48bc32
push eax
call fcn.004ade5d
add esp, 4
mov ecx, dword [esp + 0x69c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x698
ret 0x40