Function at 0x10043040
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1009a66c
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b8070]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x597c4]
cmp ecx, 2
je 0x1004309e
xor eax, eax
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x9c], eax
xor eax, eax
jmp 0x1004452c
mov ebp, dword [eax + 0x5975c]
test ebp, ebp
je 0x10043097
mov eax, dword [eax + 0x597c8]
cmp eax, 4
jne 0x100430cd
mov ecx, dword [0x100bb2cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ecx, dword [0x100bb2cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebx + 0x14]
push eax
call fcn.1001ad10
push ebx
call fcn.10003bc0
mov ecx, dword [ebx + 0x14]
cmp dword [ecx + 0x59798], 0
ja 0x10043124
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp + 0xec], 0
mov ebx, dword [ebx + 0x14]
lea eax, [ebx + 0x597d0]
lea ebx, [esp + 0x40]
mov dword [esp + 0x40], 2
call fcn.1001d970
mov dword [eax], 0
jmp 0x10044527
mov eax, ebx
call fcn.100015c0
cmp dword [ebp + 0x94], 0
jne 0x10044527
cmp dword [ebp + 0x98], 0
jne 0x10044527
mov eax, dword [ebx + 0x14]
add eax, 0x59790
cmp dword [eax + 8], 0
mov dword [esp + 0x38], eax
jne 0x10043162
push ebp
call fcn.10021900
jmp 0x10044527
call fcn.10004a40
mov esi, eax
mov dword [esp + 0x30], esi
call fcn.1006f5f0
fld dword [esi + 0xc]
fstp dword [esp + 0x60]
lea eax, [esp + 0x70]
fld dword [esi + 8]
lea ecx, [esp + 0x5c]
fstp dword [esp + 0x5c]
fld dword [esi + 0x10]
fstp dword [esp + 0x64]
fld dword [esi + 0x14]
fstp dword [esp + 0x68]
fld dword [ebp + 0x34]
fstp dword [esp + 0x74]
fld dword [ebp + 0x30]
fstp dword [esp + 0x70]
fld dword [ebp + 0x38]
fstp dword [esp + 0x78]
fld dword [ebp + 0x3c]
fstp dword [esp + 0x7c]
call fcn.10003a50
fst qword [esp + 0x44]
fcomp qword [0x100a9868]
fnstsw ax
test ah, 5
jp 0x10043269
fld dword [esp + 0x5c]
sub esp, 0x10
fsub dword [esp + 0x80]
fstp qword [esp + 8]
fld dword [esp + 0x70]
fsub dword [esp + 0x84]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x44]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x88]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x10043233
push ebp
call fcn.10021900
fld dword [esp + 0x34]
push ecx
fstp dword [esp]
call fcn.10021920
mov edi, dword [esp + 0x30]
call fcn.10055280
test eax, eax
jne 0x10043269
mov eax, edi
call fcn.10003b20
cmp eax, 0x64
jne 0x10044527
mov ecx, dword [ebx + 0x14]
push ecx
mov eax, edi
call fcn.1001b910
mov eax, dword [esp + 0x38]
call fcn.10004a60
jmp 0x10044527
call fcn.1007e120
test eax, eax
mov esi, dword [esp + 0x30]
je 0x1004329f
mov eax, esi
call fcn.10003ac0
test eax, eax
jne 0x1004329f
mov al, 0
mov ecx, dword [0x100bb500]
mov byte [ecx], al
mov edx, dword [ebx + 0x14]
push edx
mov eax, esi
call fcn.1001b910
mov eax, dword [esp + 0x38]
call fcn.10004a60
call fcn.1007ec20
test eax, eax
mov edi, 1
je 0x100432bd
mov al, 0
mov ecx, dword [0x100bb500]
mov byte [ecx], al
add dword [ebx + 0x94], edi
cmp dword [ebx + 0x94], edi
jle 0x100432d4
call fcn.10024010
mov dword [ebx + 0x94], 0
cmp dword [ebx + 0x38], 0
jne 0x100432f6
fld dword [ebp + 0x34]
fstp dword [ebx + 0x28]
fld dword [ebp + 0x30]
fstp dword [ebx + 0x24]
fld dword [ebp + 0x38]
fstp dword [ebx + 0x2c]
mov dword [ebx + 0x34], 0x211
mov dword [ebx + 0x38], edi
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
push ecx
push eax
mov eax, ebp
call fcn.10003b80
test eax, eax
je 0x10043391
fld qword [0x100a9870]
fld qword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x1004338f
fld dword [esp + 0x60]
lea eax, [ebx + 0x24]
fld dword [esp + 0x74]
mov edx, 0x211
fsubr st(1)
mov ecx, 2
fld qword [0x100a9920]
mov esi, ebp
mov dword [ebx + 0x34], edx
fmul st(1), st(0)
mov dword [ebx + 0x38], edi
fxch st(1)
fdiv st(3)
fsubp st(2)
fxch st(1)
fstp dword [ebx + 0x28]
fld dword [esp + 0x5c]
fld dword [esp + 0x70]
fsubr st(1)
fmulp st(2)
fxch st(1)
fdivrp st(2)
fsubrp st(1)
fstp dword [eax]
call fcn.10056b10
cmp eax, 2
jne 0x10043388
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [esp + 0x34]
call fcn.1001b910
mov eax, dword [esp + 0x38]
call fcn.10004a60
mov eax, edi
jmp 0x1004452c
fstp st(0)
push ebp
call fcn.10021900
fld dword [esp + 0x5c]
fsub dword [esp + 0x70]
sub esp, 0x10
xor esi, esi
mov dword [ebx + 0x38], esi
fst qword [esp + 0x64]
fld dword [esp + 0x70]
fsub dword [esp + 0x84]
fst qword [esp + 0x5c]
fxch st(1)
fstp qword [esp + 8]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x44]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x88]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x1004340a
push ebp
call fcn.10021900
fld dword [esp + 0x34]
push ecx
fstp dword [esp]
call fcn.10021920
push 0x11
call fcn.100579d0
test eax, eax
je 0x10043442
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp]
add eax, 0xc
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
test eax, eax
je 0x10043442
mov edx, dword [ebp]
mov eax, dword [edx + 0x4c]
mov ecx, ebp
call eax
test eax, eax
jle 0x10043442
mov edx, dword [ebp]
mov eax, dword [edx + 0x58]
mov ecx, ebp
call eax
push 0x12
call fcn.100579d0
test eax, eax
je 0x1004347a
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp]
add eax, 0xc
push eax
mov eax, dword [edx + 0x3c]
mov ecx, ebp
call eax
test eax, eax
je 0x1004347a
mov edx, dword [ebp]
mov eax, dword [edx + 0x50]
mov ecx, ebp
call eax
test eax, eax
jle 0x1004347a
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
mov ecx, ebp
call eax
push 0x19
call fcn.100579d0
test eax, eax
je 0x100434a1
mov edx, dword [ebp]
mov eax, dword [edx + 0x54]
push 0x19
mov ecx, ebp
call eax
test eax, eax
jle 0x100434a1
mov edx, dword [ebp]
mov eax, dword [edx + 0x64]
push 0x19
mov ecx, ebp
call eax
push 0x1a
call fcn.100579d0
test eax, eax
je 0x100434c8
mov edx, dword [ebp]
mov eax, dword [edx + 0x54]
push 0x1a
mov ecx, ebp
call eax
test eax, eax
jle 0x100434c8
mov edx, dword [ebp]
mov eax, dword [edx + 0x64]
push 0x1a
mov ecx, ebp
call eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, str.SummonWaterElemental
call fcn.10003700
lea edx, [esp + 0x34]
lea edi, [ebx + 0x80]
push edx
mov ecx, edi
mov dword [esp + 0xc4], esi
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10043646
cmp dword [esi + 0x10], 0
jne 0x1004359d
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x1004359d
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x1004359d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x90]
cmp eax, 0xabe0
jbe 0x1004359d
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x3e8
mov dword [ebx + 0x90], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x8c]
call eax
jmp 0x10043646
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x10], 0
je 0x10043646
lea edx, [esp + 0x34]
push edx
mov ecx, str.ColdSnap
call fcn.10003700
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov dword [esp + 0xc4], 1
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10043646
cmp dword [esi + 0x10], 0
jne 0x10043646
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10043646
mov ecx, esi
mov esi, dword [ecx]
call fcn.1007e040
test eax, eax
je 0x10043646
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebp
call fcn.10003b60
mov ecx, dword [ebx + 0x14]
cmp eax, dword [ecx + 0x2a8]
jae 0x1004388e
lea edx, [esp + 0x34]
push edx
mov ecx, str.IceBarrier
call fcn.10003700
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov dword [esp + 0xc4], 2
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10043707
cmp dword [esi + 0x10], 0
jne 0x10043707
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10043707
mov ecx, esi
mov esi, dword [ecx]
call fcn.1007e040
test eax, eax
je 0x10043707
mov edx, dword [esp + 0x2c]
mov esi, dword [edx]
mov eax, ebp
call fcn.10056f10
test eax, eax
jne 0x10043707
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [ebp]
mov eax, dword [eax + 0x14]
push edx
mov ecx, ebp
call eax
push 0xc8
jmp 0x10044521
lea ecx, [esp + 0x3c]
push ecx
mov ecx, str.ManaShield
call fcn.10003700
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 3
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
lea eax, [esp + 0x40]
push eax
mov ecx, str.IceBarrier
call fcn.10003700
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 4
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
mov eax, dword [esp + 0x34]
je 0x10043833
test eax, eax
je 0x1004388e
cmp dword [eax + 0x10], 0
jne 0x1004388e
call fcn.10023fd0
test eax, eax
jne 0x1004388e
mov edx, dword [esp + 0x34]
mov esi, dword [edx]
call fcn.1007e040
test eax, eax
je 0x1004388e
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov eax, ebp
call fcn.10056f10
test eax, eax
jne 0x1004388e
mov eax, ebp
call fcn.1002ec10
cmp eax, 0x14
jbe 0x1004388e
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx]
mov eax, ebp
call fcn.10056f10
test eax, eax
jne 0x1004388e
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
jmp 0x10043878
test eax, eax
je 0x1004388e
cmp dword [eax + 0x10], 0
jne 0x1004388e
call fcn.10023fd0
test eax, eax
jne 0x1004388e
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx]
call fcn.1007e040
test eax, eax
je 0x1004388e
mov edx, dword [esp + 0x34]
mov esi, dword [edx]
mov eax, ebp
call fcn.10056f10
test eax, eax
jne 0x1004388e
mov eax, ebp
call fcn.1002ec10
cmp eax, 0x14
jbe 0x1004388e
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebp
call fcn.1002ec10
mov ecx, dword [ebx + 0x14]
cmp eax, dword [ecx + 0x2ac]
jae 0x100438bf
call fcn.1003dac0
cmp eax, 1
jl 0x100438bf
mov edx, dword [ebp]
mov eax, dword [edx + 0x60]
mov ecx, ebp
call eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld qword [0x100a9870]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
jne 0x10044188
mov esi, dword [ebx + 0x14]
cmp dword [esi + 0x2d4], 0
je 0x10043ab4
mov eax, dword [esp + 0x30]
call fcn.10003b20
cmp eax, dword [esi + 0x2d0]
jae 0x10043ab4
cmp dword [esi + 0x2b4], 0
je 0x100439bc
lea ecx, [esp + 0x40]
push ecx
mov ecx, str.Shoot
call fcn.10003700
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 5
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x100439bc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x3c]
cmp eax, 0x3e8
jbe 0x100439bc
cmp dword [esi + 0x10], 0
jne 0x100439bc
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x100439bc
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x100439bc
mov eax, dword [esp + 0x2c]
call fcn.1002ebf0
test eax, eax
jne 0x100439bc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebx + 0x14]
cmp dword [ecx + 0x2b8], 0
je 0x10044527
fld qword [0x100a98b0]
fld qword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x10043a55
fld dword [esp + 0x60]
lea eax, [ebx + 0x24]
fld qword [esp + 0x4c]
mov edx, 0x211
fld qword [0x100a9840]
mov ecx, 2
fmul st(1), st(0)
mov esi, ebp
fxch st(1)
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], 1
fdiv st(3)
fsubp st(2)
fxch st(1)
fstp dword [ebx + 0x28]
fld qword [esp + 0x54]
fmulp st(1)
fdivrp st(1)
fsubr dword [esp + 0x5c]
fstp dword [eax]
call fcn.10056b10
cmp eax, 2
jne 0x10043a45
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x30]
push edx
call fcn.1001b910
mov eax, dword [esp + 0x38]
call fcn.10004a60
jmp 0x10043a4a
cmp eax, 1
jne 0x10043a51
mov dword [ebx + 0x38], 0
fld qword [esp + 0x44]
fcomp qword [0x100a98b0]
fnstsw ax
test ah, 5
jp 0x10044527
lea eax, [esp + 0x40]
push eax
mov ecx, str.Attack
call fcn.10003700
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 6
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov edi, eax
lea eax, [esp + 0x40]
jmp 0x100444c8
lea eax, [esp + 0x40]
push eax
mov ecx, str.Fireball
call fcn.10003700
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 7
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10043b6a
cmp dword [esi + 0x10], 0
jne 0x10043b6a
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10043b6a
mov edx, esi
mov esi, dword [edx]
call fcn.1007e040
test eax, eax
je 0x10043b6a
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov eax, dword [esp + 0x30]
call fcn.1006f6d0
test eax, eax
je 0x10043b6a
mov eax, ebp
call fcn.1002ec10
cmp eax, 2
jbe 0x10043b6a
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, ebp
call edx
push 0xa
jmp 0x10044521
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x2cc], 0
je 0x10043c1d
lea ecx, [esp + 0x40]
push ecx
mov ecx, str.MirrorImage
call fcn.10003700
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 8
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10043c1d
cmp dword [esi + 0x10], 0
jne 0x10043c1d
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10043c1d
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x10043c1d
mov eax, ebp
call fcn.1002ec10
cmp eax, 2
jbe 0x10043c1d
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, ebp
call edx
push 0x64
jmp 0x10044521
fld qword [0x100a9918]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
jne 0x10043e62
lea eax, [esp + 0x40]
push eax
mov ecx, str.FrostNova
call fcn.10003700
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 9
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10043cec
cmp dword [esi + 0x10], 0
jne 0x10043cec
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10043cec
mov edx, esi
mov esi, dword [edx]
call fcn.1007e040
test eax, eax
je 0x10043cec
mov eax, dword [esp + 0x30]
call fcn.10003b20
cmp eax, 8
jbe 0x10043cec
mov eax, ebp
call fcn.1002ec10
cmp eax, 3
jbe 0x10043cec
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1003db00
lea ecx, [esp + 0x40]
push ecx
mov ecx, str.Fireball
call fcn.10003700
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 0xa
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10043da1
cmp dword [esi + 0x10], 0
jne 0x10043da1
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10043da1
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x10043da1
mov eax, dword [esp + 0x30]
call fcn.10003b20
cmp eax, 0x19
jbe 0x10043da1
mov eax, ebp
call fcn.1002ec10
cmp eax, 6
jbe 0x10043da1
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
push 0xa28
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, str.IceLance
call fcn.10003700
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 0xb
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10043e62
test esi, esi
je 0x10043e62
cmp dword [eax + 0x10], 0
jne 0x10043e62
call fcn.10023fd0
test eax, eax
jne 0x10043e62
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x10043e62
mov eax, ebp
call fcn.1002ec10
cmp eax, 2
jbe 0x10043e62
mov esi, dword [esp + 0x34]
mov edx, dword [ebp]
mov eax, dword [esi]
mov edx, dword [edx + 0x14]
push eax
mov ecx, ebp
call edx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi]
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebp
call edx
jmp 0x10044527
lea eax, [esp + 0x40]
push eax
mov ecx, str.FrostNova
call fcn.10003700
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0xc
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
lea edx, [esp + 0x3c]
push edx
mov ecx, str.IceLance
call fcn.10003700
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov dword [esp + 0xc4], 0xd
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
cmp dword [esp + 0x2c], 0
je 0x10043f99
test esi, esi
je 0x10043f99
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x3c]
cmp eax, 0x3e8
jbe 0x10043f99
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x10], 0
jne 0x10043f99
call fcn.10023fd0
test eax, eax
jne 0x10043f99
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
call fcn.1007e040
test eax, eax
je 0x10043f99
mov edx, dword [esp + 0x2c]
mov esi, dword [edx]
mov eax, dword [esp + 0x30]
call fcn.1006f6d0
test eax, eax
jne 0x10043f78
mov eax, dword [esp + 0x30]
call fcn.10003b20
cmp eax, 6
jae 0x10043f99
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [ebp]
mov eax, dword [eax + 0x14]
push edx
mov ecx, ebp
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xc8
jmp 0x1004451e
fld qword [0x100a9910]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
jne 0x1004405e
lea ecx, [esp + 0x40]
push ecx
mov ecx, str.FireBlast
call fcn.10003700
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 0xe
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x1004405e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x3c]
cmp eax, 0x3e8
jbe 0x1004405e
cmp dword [esi + 0x10], 0
jne 0x1004405e
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x1004405e
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x1004405e
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, ebp
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xc8
jmp 0x1004451e
lea eax, [esp + 0x40]
push eax
mov ecx, str.Fireball
call fcn.10003700
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0xf
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x100440f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x3c]
cmp eax, 0x3e8
jbe 0x100440f3
mov edx, esi
cmp dword [edx + 0x10], 0
jne 0x100440f3
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x100440f3
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
jne 0x1004403d
lea eax, [esp + 0x40]
push eax
mov ecx, str.FrostfireBolt
call fcn.10003700
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x10
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10044188
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x3c]
cmp eax, 0x3e8
jbe 0x10044188
mov edx, esi
cmp dword [edx + 0x10], 0
jne 0x10044188
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10044188
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
jne 0x1004403d
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x2b4], 0
je 0x10044279
mov eax, ebp
call fcn.1002ec10
cmp eax, 7
jae 0x10044279
lea ecx, [esp + 0x40]
push ecx
mov ecx, str.Shoot
call fcn.10003700
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 0x11
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x10044279
cmp dword [esi + 0x10], 0
jne 0x10044279
mov eax, esi
call fcn.10023fd0
test eax, eax
jne 0x10044279
mov eax, esi
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x10044279
mov eax, dword [esp + 0x2c]
call fcn.1002ebf0
test eax, eax
jne 0x10044279
mov eax, ebp
call fcn.1002ec10
cmp eax, 5
jae 0x10044279
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x3c]
cmp eax, 0x5dc
jbe 0x10044279
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, ebp
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x3c], eax
jmp 0x10044527
mov esi, dword [ebx + 0x14]
cmp dword [esi + 0x2b8], 0
je 0x100443e4
mov eax, dword [esp + 0x30]
call fcn.10003b20
cmp eax, dword [esi + 0x2d0]
jae 0x100443e4
fld qword [0x100a98b0]
fld qword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x1004433a
fstp st(1)
lea eax, [ebx + 0x24]
fld dword [esp + 0x60]
mov edx, 0x211
fld qword [esp + 0x4c]
mov ecx, 2
fld qword [0x100a9840]
mov esi, ebp
fmul st(1), st(0)
mov dword [ebx + 0x34], edx
fxch st(1)
mov dword [ebx + 0x38], 1
fdiv st(3)
fsubp st(2)
fxch st(1)
fstp dword [ebx + 0x28]
fld qword [esp + 0x54]
fmulp st(1)
fdivrp st(1)
fsubr dword [esp + 0x5c]
fstp dword [eax]
call fcn.10056b10
cmp eax, 2
jne 0x10044325
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [esp + 0x34]
call fcn.1001b910
mov eax, dword [esp + 0x38]
call fcn.10004a60
mov dword [ebx + 0x38], 0
jmp 0x10044527
cmp eax, 1
jne 0x10044527
mov dword [ebx + 0x38], 0
jmp 0x10044527
fcompp
fnstsw ax
test ah, 5
jp 0x100443e4
lea ecx, [esp + 0x40]
push ecx
mov ecx, str.Attack
call fcn.10003700
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 0x12
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test esi, esi
je 0x100443e4
mov ecx, dword [0x100bb2cc]
mov esi, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
push esi
call edx
test eax, eax
jne 0x100443e4
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
call fcn.1007e040
test eax, eax
je 0x100443e4
mov eax, dword [esp + 0x2c]
call fcn.1002ebf0
test eax, eax
jne 0x100443e4
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ecx
jmp 0x10044509
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x2b8], 0
je 0x10044527
mov eax, ebp
call fcn.1002ec10
cmp eax, 0xa
ja 0x10044527
fld qword [0x100a98b0]
fld qword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x10044472
fstp st(1)
lea eax, [ebx + 0x24]
fld dword [esp + 0x60]
mov edx, 0x211
fld qword [esp + 0x4c]
mov ecx, 2
fld qword [0x100a9840]
mov esi, ebp
fmul st(1), st(0)
mov dword [ebx + 0x34], edx
fxch st(1)
mov dword [ebx + 0x38], 1
fdiv st(3)
fsubp st(2)
fxch st(1)
fstp dword [ebx + 0x28]
fld qword [esp + 0x54]
fmulp st(1)
fdivrp st(1)
fsubr dword [esp + 0x5c]
fstp dword [eax]
call fcn.10056b10
cmp eax, 2
jne 0x10044325
mov ecx, dword [ebx + 0x14]
push ecx
jmp 0x10044307
fcompp
fnstsw ax
test ah, 5
jp 0x10044527
lea edx, [esp + 0x38]
push edx
mov ecx, str.Attack
call fcn.10003700
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov dword [esp + 0xc4], 0x13
call fcn.100048e0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.10001420
mov edi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001660
test edi, edi
je 0x10044527
mov eax, dword [edi]
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x64]
call eax
test eax, eax
jne 0x10044527
mov esi, dword [edi]
call fcn.1007e040
test eax, eax
je 0x10044527
mov eax, edi
call fcn.1002ebf0
test eax, eax
jne 0x10044527
mov eax, dword [edi]
push eax
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
mov ecx, ebp
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1f4
mov dword [ebx + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4