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

Disassembly:
push 0xffffffffffffffff
push 0x510a6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push ecx
mov dword [esp + 0x28], esp
mov edi, esp
push ecx
mov esi, ecx
mov dword [esp + 0x2c], esp
mov dword [eax], 0x40400000
mov eax, dword [esi + 0x308]
mov ebx, esp
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], 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 + 0x2c], esp
push ecx
xor ebp, ebp
mov dword [eax], ebp
mov eax, esp
mov ecx, esi
mov dword [esp + 0x30], esp
mov dword [eax], 1
call fcn.00456ba0
push ecx
mov dword [esp + 0x24], esp
mov eax, esp
push ecx
mov dword [esp + 0x28], esp
mov edi, esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x52b800
mov dword [eax], 0x40400000
call fcn.00402110
mov ecx, edi
call fcn.00456810
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
mov dword [eax], ebp
mov eax, esp
mov ecx, esi
mov dword [esp + 0x30], esp
mov dword [eax], 2
call fcn.00456ba0
push 0x368
call fcn.004fd765
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov dword [esp + 0x54], ebp
je 0x459338
mov ecx, eax
call fcn.0046e3d0
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x45933e
mov dword [esp + 0x10], ebp
mov esi, ebp
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push ebp
or ebx, 0xffffffff
push esi
mov dword [esp + 0x5c], ebx
call fcn.00486190
fld dword [esp + 0x60]
sub esp, 8
mov eax, esp
fstp qword [eax]
mov dword [esp + 0x28], esp
fld dword [esp + 0x68]
sub esp, 8
mov eax, esp
fstp qword [eax]
mov dword [esp + 0x30], esp
sub esp, 8
mov eax, esp
mov ecx, esi
mov dword [esp + 0x78], esp
mov dword [eax], ebp
mov dword [eax + 4], ebp
call fcn.0046e4d0
mov ecx, esi
call fcn.004ab460
mov eax, dword [esp + 0x5c]
cmp eax, ebp
mov dword [esp + 0x14], ebp
jle 0x4596fb
dec eax
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x1c]
jmp 0x4593d0
xor ebp, ebp
or ebx, 0xffffffff
jmp 0x4593d0
fild dword [esp + 0x14]
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x38]
fdiv dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
push 0x348
fmul dword [esp + 0x6c]
fst dword [esp + 0x64]
fcos
fild dword [esp + 0x1c]
fmul qword [0x529928]
fmulp st(1)
fstp dword [esp + 0x1c]
call fcn.004fd765
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov dword [esp + 0x54], 1
je 0x459431
mov ecx, eax
call fcn.0044c800
mov edi, eax
jmp 0x459433
xor edi, edi
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push ebp
push edi
mov dword [esp + 0x5c], ebx
call fcn.00486190
mov ecx, edi
call fcn.0044c910
mov ecx, edi
call fcn.004ab460
push ecx
mov eax, esp
mov dword [eax], ebp
mov dword [esp + 0x24], esp
push ecx
mov eax, esp
mov dword [eax], ebp
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
mov dword [esp + 0x28], esp
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
sub esp, 0xc
mov eax, esp
mov ecx, edx
fmul qword [0x527a98]
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x290]
mov dword [esp + 0x34], esp
call fcn.0047f310
push ecx
mov eax, esp
mov byte [eax], 1
mov ecx, dword [edi + 0x290]
mov dword [esp + 0x24], esp
call fcn.0047f4b0
push 0xc0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov dword [esp + 0x54], 2
je 0x4594fa
mov ecx, eax
call fcn.0047e170
mov esi, eax
jmp 0x4594fc
xor esi, esi
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push ebp
push esi
mov dword [esp + 0x5c], ebx
call fcn.00486190
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
sub esp, 0xc
mov eax, esp
mov ecx, edx
fmul qword [0x52b5d8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], esp
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
push ecx
mov byte [eax], 0
mov eax, esp
mov ecx, esi
mov dword [esp + 0x34], esp
mov dword [eax], edx
call fcn.0047e2b0
mov ecx, esi
call fcn.004ab460
push ecx
mov eax, esp
mov dword [eax], esi
mov ecx, dword [edi + 0x290]
mov dword [esp + 0x24], esp
call fcn.004ab980
fld dword [esp + 0x60]
fsin
fabs
fmul qword [0x52b7f8]
fadd qword [0x51f760]
call fcn.004ed8c0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebp
jle 0x4596ce
lea eax, [ebx - 1]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
fmul dword [0x51f8dc]
fstp dword [esp + 0x20]
fld dword [esp + 0x60]
fadd dword [0x51fb04]
fstp dword [esp + 0x60]
mov edi, edi
fild dword [esp + 0x18]
push 0x7a0
fsub dword [esp + 0x24]
fmul qword [0x527918]
fstp dword [esp + 0x1c]
call fcn.004fd765
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x54], 3
je 0x45962a
mov ecx, eax
call fcn.004192b0
mov esi, eax
jmp 0x45962c
xor esi, esi
mov ecx, dword [0x55b9cc]
mov ecx, dword [ecx + 0xcb0]
push 0
push esi
mov dword [esp + 0x5c], 0xffffffff
call fcn.00486190
mov ecx, esi
call fcn.00418b10
mov ecx, esi
call fcn.004ab460
push ecx
mov eax, esp
mov ecx, edi
mov dword [esp + 0x28], esp
mov dword [eax], esi
call fcn.0044cca0
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x28], esp
mov byte [eax], 1
call fcn.00418cc0
mov edx, dword [esp + 0x60]
push ecx
mov eax, esp
mov dword [eax], 0x3f800000
mov dword [esp + 0x28], esp
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], esp
sub esp, 0xc
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x54]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x290]
mov dword [esp + 0x38], esp
call fcn.0047f310
inc ebp
cmp ebp, ebx
mov dword [esp + 0x18], ebp
jl 0x4595f0
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [esp + 0x64], esp
mov dword [eax], edi
call fcn.0046e8c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4593c1
mov eax, dword [esp + 0x10]
jmp 0x4596fd
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 0x10