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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510c1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
push ecx
mov dword [esp + 0x44], esp
mov edi, esp
push ecx
mov esi, ecx
mov dword [esp + 0x48], esp
mov dword [eax], 0x40400000
mov eax, dword [esi + 0x308]
mov ebx, esp
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Wave__d
call fcn.00402110
mov ecx, dword [0x55cd0c]
push ebx
push ecx
call fcn.004a7680
add esp, 0x10
mov ecx, edi
call fcn.00456810
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
xor ebx, ebx
mov dword [eax], ebx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x4c], esp
mov dword [eax], 1
call fcn.00456ba0
push ecx
mov dword [esp + 0x40], esp
mov eax, esp
push ecx
mov dword [esp + 0x44], esp
mov edi, esp
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Chicken_Square_Dancing
mov dword [eax], 0x40400000
call fcn.00402110
mov ecx, edi
call fcn.00456810
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov dword [eax], ebx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x4c], esp
mov dword [eax], 2
call fcn.00456ba0
push 0x350
call fcn.004fd765
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov dword [esp + 0x94], ebx
je 0x45bff3
mov ecx, eax
call fcn.0046e930
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x45bff9
mov dword [esp + 0x1c], ebx
mov edi, ebx
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push ebx
push edi
mov dword [esp + 0x9c], 0xffffffff
call fcn.00486190
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
mov ecx, edi
mov dword [esp + 0x40], esp
call fcn.0046ea30
mov ecx, edi
call fcn.004ab460
cmp dword [ebp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
jle 0x45c5b4
mov dword [esp + 0x54], 0
jmp 0x45c050
xor ebx, ebx
mov edi, edi
push 0x368
call fcn.004fd765
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov dword [esp + 0x94], 1
je 0x45c07f
mov ecx, eax
call fcn.0046edf0
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x45c085
mov dword [esp + 0x10], ebx
mov esi, ebx
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push ebx
push esi
mov dword [esp + 0x9c], 0xffffffff
call fcn.00486190
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
push ecx
fild dword [esp + 0x30]
mov eax, esp
mov dword [esp + 0x40], esp
push ecx
fmul qword [0x51fc70]
mov dword [esp + 0x44], esp
fstp dword [eax]
mov edx, dword [0x55cd0c]
mov eax, dword [edx + 0x868]
mov eax, dword [eax + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
mov eax, esp
fild dword [esp + 0x34]
fmul qword [0x5274b0]
fstp dword [eax]
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x868]
mov eax, dword [edx + 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
push ecx
fild dword [esp + 0x38]
mov eax, esp
mov dword [esp + 0x48], esp
fmul qword [0x529928]
fstp dword [eax]
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x38]
cdq
sub eax, edx
mov edx, dword [ebp + 0x10]
sar eax, 1
mov dword [esp + 0x38], eax
push ecx
fild dword [esp + 0x3c]
mov eax, esp
mov dword [esp + 0x4c], esp
push ecx
fmul qword [0x52b828]
mov dword [esp + 0x50], esp
fstp dword [eax]
mov eax, esp
push ecx
mov dword [eax], 0x43480000
mov eax, esp
mov dword [esp + 0x54], esp
push ecx
mov byte [eax], 0
mov eax, esp
mov ecx, esi
mov dword [esp + 0x58], esp
mov dword [eax], edx
call fcn.0046ef40
mov ecx, esi
call fcn.004ab460
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
fild dword [esp + 0x2c]
cdq
fld qword [0x5281c0]
mov ebx, 3
idiv ebx
fmul st(1)
fxch st(1)
fmul qword [0x51fc70]
fsub st(1)
mov eax, dword [ecx + 0x3c]
push ecx
mov dword [esp + 0x40], esp
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
cdq
sub eax, edx
fmulp st(1)
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, esp
fmul dword [0x51f8dc]
mov dword [eax], 0
mov ecx, dword [0x55b9cc]
mov ecx, dword [ecx + 0xcb0]
fadd st(1)
push 0x40c90fdb
add ecx, 0x268
fstp dword [esp + 0x2c]
fstp st(0)
fild dword [esp + 0x34]
fmul qword [0x51f670]
fstp dword [esp + 0x34]
call fcn.00483eb0
mov edx, dword [esp + 0x28]
push ecx
mov eax, esp
fstp dword [eax]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], esp
sub esp, 0xc
mov dword [esp + 0x64], eax
mov eax, esp
mov ecx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x290]
mov dword [esp + 0x50], esp
call fcn.0047f310
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [esp + 0x20], 0
jle 0x45c578
mov ecx, eax
imul ecx, ecx, 0x64
mov dword [esp + 0x24], ecx
lea ecx, [ecx]
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x18], ebx
jle 0x45c55c
lea edx, [ecx - 1]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
lea edx, [eax - 1]
mov dword [esp + 0x2c], edx
lea ecx, [ecx + ecx*4]
fstp dword [esp + 0x34]
shl ecx, 2
fild dword [esp + 0x20]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x2c]
lea edx, [eax + eax*4]
shl edx, 2
fdivp st(1)
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], ebx
fadd st(0), st(0)
fsubr dword [0x51f66c]
fstp dword [esp + 0x2c]
fild dword [esp + 0x24]
fstp qword [esp + 0x40]
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
fstp dword [esp + 0x38]
fild dword [esp + 0x30]
fstp dword [esp + 0x3c]
jmp 0x45c300
fild dword [esp + 0x18]
push 0x7a0
fdiv dword [esp + 0x38]
fadd st(0), st(0)
fsub dword [0x51f66c]
fstp dword [esp + 0x1c]
call fcn.004fd765
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x94], 2
je 0x45c33f
mov ecx, eax
call fcn.004192b0
mov edi, eax
jmp 0x45c341
xor edi, edi
mov eax, dword [0x55b9cc]
mov ecx, dword [eax + 0xcb0]
push 0
push edi
mov dword [esp + 0x9c], 0xffffffff
call fcn.00486190
mov ecx, edi
call fcn.00418b10
mov ecx, edi
call fcn.004ab460
push ecx
mov eax, esp
mov ecx, edi
mov dword [esp + 0x34], esp
mov byte [eax], 1
call fcn.00418cc0
push ecx
mov ecx, dword [esp + 0x18]
mov eax, esp
mov dword [eax], ecx
mov ecx, edi
mov dword [esp + 0x34], esp
call fcn.00418e90
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x34], esp
mov dword [eax], edi
call fcn.0044cca0
push 0x1c0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x94], 3
je 0x45c3cd
mov ecx, eax
call fcn.0047dae0
mov esi, eax
jmp 0x45c3cf
xor esi, esi
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push 0
push esi
mov dword [esp + 0x9c], 0xffffffff
call fcn.00486190
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
push ecx
mov byte [eax], 1
mov eax, esp
mov ecx, esi
mov dword [esp + 0x38], esp
mov dword [eax], 0x3eb33333
call fcn.0047d9b0
mov ecx, esi
call fcn.004ab460
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [0x55cd0c]
mov ecx, dword [edx + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], esp
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x38]
fild dword [esp + 0x3c]
cdq
sub eax, edx
fmul qword [0x527a98]
sar eax, 1
cdq
fadd qword [esp + 0x4c]
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
sub esp, 0xc
fild dword [esp + 0x48]
mov eax, esp
fld dword [esp + 0x44]
mov dword [esp + 0x48], esp
fadd dword [esp + 0x30]
fmulp st(1)
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
fstp dword [esp + 0x80]
mov edx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
fld dword [esp + 0x18]
fmul dword [0x52b8b0]
mov ecx, dword [esp + 0x74]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
fld dword [esp + 0x44]
mov dword [eax], edx
fmul dword [esp + 0x24]
mov edx, dword [esp + 0x84]
mov dword [eax + 4], ecx
mov dword [esp + 0x3c], esp
fstp dword [esp + 0x88]
mov dword [eax + 8], edx
fld dword [esp + 0x48]
fmul dword [esp + 0x38]
fstp dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [esp + 0x48], esp
call fcn.0047dc40
push ecx
mov dword [esi + 0x94], 0x3f800000
mov eax, esp
mov dword [eax], esi
mov ecx, dword [edi + 0x290]
mov dword [esp + 0x34], esp
call fcn.004ab980
mov eax, dword [ebp + 0x14]
mov esi, dword [esp + 0x10]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x45c300
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
inc ecx
sub ebx, 0x64
cmp ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
jl 0x45c270
push ecx
mov eax, esp
mov ecx, edi
mov dword [esp + 0x40], esp
mov dword [eax], esi
call fcn.0046ed30
mov eax, dword [esp + 0x14]
add eax, 3
cmp eax, 0x18
mov dword [esp + 0x14], eax
jl 0x45c5a0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x45c04c
mov ecx, dword [esp + 0x8c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14