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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5109e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push ecx
mov dword [esp + 0x18], esp
mov edi, esp
push ecx
mov esi, ecx
mov dword [esp + 0x1c], esp
mov dword [eax], 0x40400000
mov eax, dword [esi + 0x308]
mov ebx, esp
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], 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 + 0x1c], esp
push ecx
xor edi, edi
mov dword [eax], edi
mov eax, esp
mov ecx, esi
mov dword [esp + 0x20], esp
mov dword [eax], 1
call fcn.00456ba0
push ecx
mov dword [esp + 0x14], esp
mov eax, esp
push ecx
mov dword [esp + 0x18], esp
mov ebx, esp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Chicken_Carousel
mov dword [eax], 0x40400000
call fcn.00402110
mov ecx, ebx
call fcn.00456810
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], edi
mov eax, esp
mov ecx, esi
mov dword [esp + 0x20], esp
mov dword [eax], 2
call fcn.00456ba0
push 0x348
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xe4], edi
je 0x4582e3
mov ecx, eax
call fcn.0044c800
mov ebx, eax
mov dword [esp + 0x50], ebx
jmp 0x4582e9
mov dword [esp + 0x50], edi
mov ebx, edi
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push edi
push ebx
mov dword [esp + 0xec], 0xffffffff
call fcn.00486190
mov ecx, ebx
call fcn.0044c910
mov ecx, ebx
call fcn.004ab460
push ecx
mov eax, esp
mov dword [eax], edi
mov dword [esp + 0x14], esp
push ecx
mov eax, esp
mov dword [eax], edi
mov dword [esp + 0x18], esp
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov dword [esp + 0x5c], 0x42480000
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x290]
mov dword [esp + 0x24], esp
call fcn.0047f310
push 0xa0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xe4], 1
je 0x458392
mov ecx, eax
call fcn.0047edc0
mov esi, eax
jmp 0x458394
xor esi, esi
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push edi
push esi
mov dword [esp + 0xec], 0xffffffff
call fcn.00486190
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push ecx
mov dword [eax], 0xbf800000
mov eax, esp
mov ecx, esi
mov dword [esp + 0x18], esp
mov dword [eax], edi
call fcn.0047ef70
mov ecx, esi
call fcn.004ab460
push ecx
mov eax, esp
mov dword [eax], esi
mov ecx, dword [ebx + 0x290]
mov dword [esp + 0x14], esp
call fcn.004ab980
mov esi, dword [ebp + 8]
cmp esi, 4
jle 0x458430
push 0x349
push str.gameGameController.cpp
push str.GameController::createGreatBall
push str.circles_4
push str.Assertion_failed.
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x51fa70
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x860]
push ecx
call fcn.0044ce20
add esp, 0x1c
cmp esi, edi
mov dword [esp + 0x40], edi
jle 0x4589db
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0xc3480000
mov dword [esp + 0xa0], 0x43480000
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0x43480000
mov dword [esp + 0xac], 0x43480000
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0xc3480000
mov dword [esp + 0xb8], 0x43480000
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0x43480000
mov dword [esp + 0xc4], 0x43480000
mov dword [esp + 0xc8], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], 0x64
mov dword [esp + 0x24], 8
mov dword [esp + 0x2c], edi
jmp 0x458520
xor edi, edi
jmp 0x458520
mov edx, dword [0x55cd0c]
fild dword [esp + 0x40]
mov ecx, dword [edx + 0x868]
mov eax, dword [ecx + 0x38]
fadd st(0), st(0)
cdq
sub eax, edx
sar eax, 1
fstp dword [esp + 0x68]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x3c]
fild dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
fst qword [esp + 0x10]
mov dword [esp + 0x20], eax
fmul qword [0x527a98]
push 0x350
fst dword [esp + 0x70]
fld qword [esp + 0x14]
fmul qword [0x52b5d8]
fstp dword [esp + 0x7c]
fild dword [esp + 0x24]
fmul qword [0x527a98]
fld st(0)
fld st(2)
fstp dword [esp + 0x88]
fstp dword [esp + 0x8c]
fxch st(1)
fstp dword [esp + 0x94]
fstp dword [esp + 0x98]
fild dword [esp + 0x40]
fstp dword [esp + 0x2c]
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xe4], 2
je 0x4585d1
mov ecx, eax
call fcn.0046e930
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x4585d5
mov dword [esp + 0x38], edi
mov eax, dword [0x55b9cc]
mov ecx, dword [eax + 0xcb0]
push 0
push edi
mov dword [esp + 0xec], 0xffffffff
call fcn.00486190
push ecx
mov eax, esp
mov ecx, edi
mov dword [esp + 0x14], esp
mov dword [eax], 1
call fcn.0046ea30
mov ecx, edi
call fcn.004ab460
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x14], esp
mov dword [eax], edi
call fcn.0044cca0
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x45899e
mov dword [esp + 0x20], eax
lea ecx, [ecx]
push 0x368
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xe4], 3
je 0x45865f
mov ecx, eax
call fcn.0046e3d0
mov esi, eax
mov dword [esp + 0x34], esi
jmp 0x45866b
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x34]
mov ecx, dword [0x55b9cc]
mov ecx, dword [ecx + 0xcb0]
push 0
push esi
mov dword [esp + 0xec], 0xffffffff
call fcn.00486190
fld dword [esp + 0x68]
sub esp, 8
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], 0
mov ecx, 0x3fd00000
mov dword [eax + 4], ecx
sub esp, 8
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax + 4], ecx
sub esp, 8
mov dword [eax], 0
mov eax, esp
mov ecx, esi
fstp qword [eax]
mov dword [esp + 0x28], esp
call fcn.0046e4d0
mov ecx, esi
call fcn.004ab460
push ecx
mov eax, esp
mov ecx, edi
mov dword [esp + 0x14], esp
mov dword [eax], esi
call fcn.0046ed30
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], ebx
jle 0x45898d
fild dword [esp + 0x24]
fstp dword [esp + 0x64]
fld dword [esp + 0x28]
fmul dword [0x5448bc]
fst dword [esp + 0x54]
fstp dword [esp + 0x60]
jmp 0x458712
mov esi, dword [esp + 0x34]
fild dword [esp + 0x1c]
fdiv dword [esp + 0x64]
fmul dword [0x520830]
fcom dword [0x5448bc]
fst dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x458748
fadd qword [0x51f770]
fcom dword [0x5448bc]
fnstsw ax
test ah, 5
jnp 0x458731
fst dword [esp + 0x1c]
fcom qword [0x51f770]
fnstsw ax
test ah, 1
jne 0x458779
jmp 0x458760
fsub qword [0x51f770]
fcom qword [0x51f770]
fnstsw ax
test ah, 1
je 0x458760
fstp dword [esp + 0x1c]
jmp 0x45877b
fstp st(0)
push 0x7a0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xe4], 4
je 0x4587a6
mov ecx, eax
call fcn.004192b0
mov edi, eax
jmp 0x4587a8
xor edi, edi
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push 0
push edi
mov dword [esp + 0xec], 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 + 0x14], esp
mov byte [eax], 1
call fcn.00418cc0
push ecx
mov ecx, dword [esp + 0x34]
mov eax, esp
mov dword [eax], ecx
mov ecx, edi
mov dword [esp + 0x14], esp
call fcn.00418e90
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x14], esp
mov dword [eax], edi
call fcn.0046e8c0
push 0x1c0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xe4], 5
je 0x458835
mov ecx, eax
call fcn.0047dae0
mov esi, eax
jmp 0x458837
xor esi, esi
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push 0
push esi
mov dword [esp + 0xec], 0xffffffff
call fcn.00486190
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push ecx
mov byte [eax], 1
mov eax, esp
mov ecx, esi
mov dword [esp + 0x18], esp
mov dword [eax], 0x3f000000
call fcn.0047d9b0
mov ecx, esi
call fcn.004ab460
mov ecx, dword [esp + 0x2c]
lea ecx, [esp + ecx + 0x9c]
mov edx, dword [ecx]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
lea ecx, [esp + ecx + 0x78]
mov edx, dword [ecx]
mov dword [esp + 0x1c], esp
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [esp + 0x28], esp
call fcn.0047dc40
fld dword [esp + 0x1c]
fsin
sub esp, 0xc
mov eax, esp
fst dword [esp + 0x1c]
fld dword [esp + 0x28]
fcos
fst dword [esp + 0xd8]
fld dword [esp + 0x60]
fld dword [esp + 0x1c]
fmul dword [esp + 0x34]
fld dword [esp + 0xd8]
mov dword [esp + 0x1c], esp
fmul dword [esp + 0x34]
sub esp, 0xc
fstp dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
mov dword [eax], edx
fstp dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
fstp dword [esp + 0x64]
mov edx, dword [esp + 0x64]
fxch st(1)
mov dword [eax + 8], edx
fst dword [esp + 0x28]
mov eax, esp
fmul dword [esp + 0x40]
mov dword [esp + 0x28], esp
fxch st(1)
fmul dword [esp + 0x40]
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
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 + 0x14], esp
call fcn.004ab980
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
mov dword [esp + 0x1c], ebx
jl 0x45870e
mov edi, dword [esp + 0x38]
dec dword [esp + 0x20]
jne 0x458630
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
add edx, 4
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
inc eax
add ecx, 0x32
add edi, 3
add edx, 0xc
cmp eax, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edx
jl 0x458513
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8