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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64747c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0xc], ecx
fld dword [esp + 0xc]
push ebp
fchs
push esi
fsub dword [0x64ff20]
push edi
sub esp, 8
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp qword [esp]
call fcn.00616f24
fstp dword [esp + 0x20]
xor esi, esi
fld dword [esp + 0x20]
mov dword [esp + 0x54], esi
fstp dword [esp + 0x50]
fld dword [esp + 0x28]
fstp qword [esp]
call fcn.00616fd4
fstp dword [esp + 0x20]
add esp, 8
fld dword [esp + 0x18]
lea ecx, [esp + 0x178]
fstp dword [esp + 0x50]
call fcn.005770ff
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov edx, dword [ecx + 0x1278]
mov dword [esp + 0x1a8], edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x1280]
mov eax, dword [ebx + 0x18]
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
jle 0x52d805
nop
cmp ebp, dword [ebx + 0x2c]
je 0x52d7f5
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + ebp*4]
cmp dword [eax + 0xc], esi
je 0x52d7f5
cmp dword [eax + 0x1558], esi
jne 0x52d7f5
mov eax, dword [eax + 0x1288]
push eax
call dword [0x8bd314]
add esp, 4
cmp eax, 2
jne 0x52d069
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x1288]
push esi
push 1
push eax
mov ecx, ebx
call fcn.0052cd90
cmp eax, 2
jne 0x52d7f5
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ecx + ebp*4]
fld dword [ecx + 0x1280]
add ecx, 0x1278
fsub dword [eax + 0x1280]
add eax, 0x1278
fstp dword [esp + 0x14]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x10]
fld dword [ecx]
mov ecx, dword [esp + 0x14]
fsub dword [eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
fstp dword [esp + 0xa8]
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], esi
call fcn.00418170
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [0x65ebec]
fnstsw ax
test ah, 0x41
jp 0x52d7f5
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x34]
mov dword [esp + 0x80], eax
fld dword [esp + 0x80]
sub esp, 8
fsub dword [0x650044]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp qword [esp]
call fcn.00616f24
fstp st(0)
fld dword [esp + 0x18]
fstp qword [esp]
call fcn.00616fd4
fstp st(0)
fld dword [esp + 0x28]
fstp qword [esp]
call fcn.00616f24
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x8c]
fld dword [esp + 0x28]
fstp qword [esp]
call fcn.00616fd4
fstp dword [esp + 0x1c]
mov ecx, 0x10
fld dword [esp + 0x1c]
lea esi, [esp + 0x180]
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
add esp, 8
fstp dword [esp + 0x8c]
push ecx
fld dword [esp + 0xf4]
lea ecx, [esp + 0x1bc]
fadd dword [esp + 0x88]
fstp dword [esp + 0xf4]
fld dword [esp + 0xfc]
fadd dword [esp + 0x90]
fstp dword [esp + 0xfc]
call fcn.005773b5
mov edx, dword [ebx + 0x14]
mov ecx, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
mov edx, dword [ecx + 0x1278]
mov dword [esp + 0x1e8], edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x1280]
lea edx, [esp + 0x1b8]
mov dword [esp + 0x1f0], ecx
push edx
lea ecx, [esp + 0x23c]
call fcn.00577541
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x2a8]
push edx
call fcn.00577826
mov esi, eax
mov ecx, 0x10
lea edi, [esp + 0x204]
lea eax, [esp + 0x244]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x2f4]
push edx
call fcn.00577826
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0xd8]
add esp, 0x18
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x1fc]
call fcn.0057772c
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0xc4]
mov esi, eax
call fcn.0057772c
fld dword [eax + 8]
fsub dword [esi + 8]
xor edi, edi
mov dword [esp + 0x24], 0xc20c0000
mov dword [esp + 0x28], edi
fstp dword [esp + 0x10]
mov dword [esp + 0x2c], 0xc25c0000
fld dword [eax + 4]
mov ebp, 0x42820000
fsub dword [esi + 4]
fstp dword [esp + 0x14]
fld dword [eax]
mov eax, dword [0x8bd2ec]
test eax, eax
fsub dword [esi]
mov esi, 0x420c0000
fstp dword [esp + 0xb4]
je 0x52d2ec
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [edx + 0x1288]
push ecx
lea edx, [esp + 0x128]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add esp, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov eax, dword [0x8bd2f0]
test eax, eax
je 0x52d31b
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx + 0x1288]
push edx
lea ecx, [esp + 0x140]
push ecx
call eax
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, dword [eax + 8]
add esp, 8
lea edx, [esp + 0x130]
push edx
lea ecx, [esp + 0x1fc]
call fcn.0057772c
mov edx, dword [esp + 0x24]
push 0x43480000
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov ecx, dword [esp + 0xd0]
push 0x3f860a92
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.00527340
add esp, 0x38
test al, al
je 0x52d7ef
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x52d3cc
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + edx*4]
mov eax, dword [eax + 0xc]
add eax, 0x1c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005250b0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x44], edx
fld dword [esp + 0x44]
fmul dword [esp + 0x50]
mov dword [esp + 0x40], ecx
fld dword [esp + 0x3c]
sub esp, 8
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x48]
fmul dword [0x64fe74]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp qword [esp]
call fcn.00619164
fstp dword [esp + 0x1c]
add esp, 8
fld dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp dword [0x65ebc0]
fnstsw ax
test ah, 0x41
je 0x52d7ef
call fcn.006167ae
cdq
mov ecx, 6
idiv ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x65eb20]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [0x65eb1c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp dword [0x64fe4c]
fnstsw ax
test ah, 0x41
jne 0x52d494
mov dword [esp + 0x10], 0x3f000000
mov edx, dword [ebx + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
mov edi, dword [eax + 0xc]
push 1
mov ecx, edi
call fcn.00525140
xor ebp, ebp
test al, al
je 0x52d4c4
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push 3
push 0x65eb10
mov ecx, edi
call fcn.00595020
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + esi*4]
cmp dword [eax + 0x13ec], 8
lea edi, [edx + esi*4]
je 0x52d517
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x150]
push eax
mov dword [esp + 0x7c], 0x42480000
call fcn.00525020
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
push 0xa
push edx
call fcn.00578b10
add esp, 0x14
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [eax + ecx*4]
mov eax, dword [eax + esi*4]
add edx, 0x1278
push edx
add eax, 0x1278
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040bce0
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.004181c0
mov edx, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x14]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
lea edi, [esi + edx*4]
push ecx
lea edx, [esp + 0x168]
push edx
mov dword [esp + 0x6c], 0x42700000
call fcn.00525020
push eax
mov eax, dword [edi]
add eax, 0x1278
push eax
lea ecx, [esp + 0x114]
push ecx
call fcn.0044cdb0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
lea eax, [esp + 0xa8]
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], 0x42c80000
mov dword [esp + 0xbc], ebp
call fcn.0044cdb0
mov edx, dword [eax]
add esp, 0x24
push 6
push 0x43c80000
push 0xffff2200
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + ecx*4]
mov eax, dword [edx + 0xc]
push eax
call fcn.00578a80
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], 0x42f00000
mov dword [esp + 0xcc], ebp
call fcn.0044cdb0
add esp, 0x28
push 0x388
mov ecx, 0xb21d88
call fcn.0057d900
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x32c], ebp
je 0x52d65b
mov ecx, eax
call fcn.00584210
mov esi, eax
jmp 0x52d65d
xor esi, esi
push esi
mov dword [esp + 0x330], 0xffffffff
call fcn.00578ac0
mov eax, dword [ebx + 0xc0]
add esp, 4
cmp eax, ebp
mov ecx, esi
push 1
je 0x52d686
push str.attack2.esf
jmp 0x52d68b
push str.attack1.esf
call fcn.0058b7a0
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 0x1280]
mov edx, dword [eax + 0x127c]
mov eax, dword [eax + 0x1278]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00583a00
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push edi
push ecx
push edx
mov ecx, esi
call fcn.00582550
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebx + 0x2c]
push edx
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, esi
call fcn.0057f180
push 0xb4
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x32c], 1
je 0x52d711
mov ecx, eax
call fcn.005a57a0
mov esi, eax
jmp 0x52d713
xor esi, esi
push esi
mov dword [esp + 0x330], 0xffffffff
call fcn.005793f0
mov eax, dword [ebx + 0xc0]
add esp, 4
cmp eax, ebp
mov ecx, esi
push 1
je 0x52d757
push str.attack2_particle.eff
push 0x68b938
call fcn.005a53a0
mov eax, dword [ebx + 0xc0]
cmp eax, ebp
jle 0x52d766
dec eax
mov dword [ebx + 0xc0], eax
jmp 0x52d766
push 0x65eae8
push 0x68b938
call fcn.005a53a0
push ebp
mov ecx, esi
call fcn.005a4e70
fld dword [esp + 0x20]
fmul dword [0x65800c]
push ebp
push ecx
mov ecx, esi
fdiv dword [0x65eb24]
fsubr dword [0x64fe74]
fadd dword [0x657ffc]
fstp dword [esp]
push ebp
call fcn.005a4c30
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push edi
push ecx
push edx
mov ecx, esi
call fcn.00525180
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x1288]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
mov dword [esp + esi*4 + 0x284], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
inc esi
push ebp
mov ecx, ebx
mov dword [esp + 0x28], esi
call fcn.005276b0
cmp esi, 0xa
jge 0x52d805
mov ebp, dword [esp + 0x1c]
xor esi, esi
mov eax, dword [ebx + 0x18]
inc ebp
cmp ebp, eax
mov dword [esp + 0x1c], ebp
jl 0x52d010
mov ecx, dword [esp + 0x324]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret