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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4f2f76
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x5df8]
xor ebx, ebx
cmp eax, ebx
jne 0x495156
call fcn.004c2c61
cdq
mov ecx, 0x96
idiv ecx
cmp edx, 1
jne 0x495156
mov edx, dword [edi + 0x538]
mov esi, dword [edx]
call fcn.004c2c61
cdq
mov ecx, 0x2bc
idiv ecx
mov ecx, dword [edi + 0x538]
push edx
call dword [esi + 0x24]
mov edx, dword [edi + 0x538]
mov esi, dword [edx]
call fcn.004c2c61
cdq
mov ecx, 0x1f4
idiv ecx
mov ecx, dword [edi + 0x538]
add edx, 0x3c
push edx
call dword [esi + 0x2c]
mov ecx, dword [edi + 0x538]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, eax
add ecx, 5
mov eax, 0x66666667
imul ecx
mov ecx, dword [edi + 0x538]
mov eax, dword [ecx]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
call dword [eax + 0x28]
imul esi, esi, 0x3c
mov ecx, eax
add ecx, 5
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, eax
cmp dword [edi + esi*4 + 0x12f8], ebx
jne 0x495156
call fcn.004c2c61
and eax, 0x80000003
jns 0x49503d
dec eax
or eax, 0xfffffffc
inc eax
mov dword [edi + 0x5df8], eax
cmp dword [edi + 0x1c4], ebx
jle 0x495053
cmp dword [edi + 0x200], ebx
jg 0x49506b
call fcn.004c2c61
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x3c
jge 0x49506b
mov dword [edi + 0x5df8], ebx
mov ecx, dword [edi + 0x538]
mov edx, dword [ecx]
push 1
call dword [edx + 0x34]
mov eax, dword [edi + 0x5df8]
sub eax, ebx
mov ecx, dword [edi + 0x538]
je 0x4950a8
dec eax
je 0x4950a0
dec eax
mov eax, dword [ecx]
je 0x495098
mov edx, dword [edi + 0x454]
jmp 0x4950b0
mov edx, dword [edi + 0x450]
jmp 0x4950b0
mov edx, dword [edi + 0x44c]
jmp 0x4950ae
mov edx, dword [edi + 0x448]
mov eax, dword [ecx]
push edx
call dword [eax + 0x54]
push 0x50a3e8
lea ecx, [esp + 0x78]
call fcn.00402330
push str.DIFFERENCE_NOT_FOUND
lea ecx, [esp + 0x5c]
mov dword [esp + 0x9c], ebx
call fcn.00402330
push ebx
push 0x80
push 0xff
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0xac], 1
call fcn.00409d30
mov ecx, eax
call fcn.0040ac80
mov ecx, eax
call fcn.00409790
mov eax, dword [esp + 0x70]
mov esi, 0x10
cmp eax, esi
jb 0x495124
mov edx, dword [esp + 0x5c]
push edx
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
mov dword [esp + 0x98], 0xffffffff
jb 0x495156
mov eax, dword [esp + 0x78]
push eax
call fcn.004c2c15
add esp, 4
mov ecx, dword [edi + 0x12d4]
mov edx, dword [ecx]
push ebx
call dword [edx + 0x34]
mov ecx, dword [edi + 0x12d8]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x34]
mov eax, dword [0x5456f8]
add eax, 0x1e
cmp eax, 0xff
mov dword [0x5456f8], eax
jl 0x49518c
mov dword [0x5456f8], 0x20
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x16
lea ebp, [edi + 0x528]
lea esi, [edi + 0x1d0]
jmp 0x4951b0
xor ebx, ebx
jmp 0x4951b0
mov eax, dword [esi]
cmp eax, ebx
jle 0x4952b8
cmp eax, 0xbb8
jne 0x495297
push 5
push 0x50a408
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
call fcn.00401eb0
push 0x10
push str.DISTORTION_SOUND
lea ecx, [esp + 0x28]
mov dword [esp + 0xa0], 2
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], 0
call fcn.00401eb0
push ebx
push 0x80
push 0xff
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0xac], 3
call fcn.00409d30
mov ecx, eax
call fcn.0040ac80
mov ecx, eax
call fcn.00409790
cmp dword [esp + 0x38], 0x10
jb 0x495256
mov eax, dword [esp + 0x24]
push eax
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], 0
mov dword [esp + 0x98], 0xffffffff
jb 0x495286
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004c2c15
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
mov ecx, dword [ebp]
mov eax, dword [0x5456f8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x58]
mov eax, dword [esi]
mov ecx, dword [esp + 0xa0]
sub eax, ecx
mov dword [esi], eax
jns 0x4952c5
mov dword [esi], ebx
jmp 0x4952c5
mov ecx, dword [ebp]
mov edx, dword [ecx]
push 0xff
call dword [edx + 0x58]
mov eax, dword [ebp]
fld dword [esi - 0x1c]
mov ebx, dword [eax]
call fcn.004c2ba0
mov ecx, dword [ebp]
push eax
call dword [ebx + 0x24]
fld dword [esi - 0x18]
mov eax, dword [ebp]
mov ebx, dword [eax]
call fcn.004c2ba0
mov ecx, dword [ebp]
push eax
call dword [ebx + 0x2c]
mov eax, dword [esi + 0x10]
cmp dword [esi + 0xc], eax
je 0x495308
mov ecx, dword [ebp]
mov dword [esi + 0xc], eax
mov eax, dword [edi + eax*4 + 0x394]
mov edx, dword [ecx]
push eax
call dword [edx + 0x54]
fld dword [esi - 0x14]
mov ecx, dword [esi - 0x14]
fsin
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [esp + 0x18], ecx
fmul dword [0x5012d4]
fadd dword [esi - 0x1c]
call fcn.004c2ba0
mov ecx, dword [ebp + 8]
push eax
call dword [ebx + 0x24]
fld dword [esp + 0x18]
fcos
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
fmul dword [0x500218]
fadd dword [esi - 0x18]
call fcn.004c2ba0
mov ecx, dword [ebp + 8]
push eax
call dword [ebx + 0x2c]
fld dword [esi - 0x14]
fmul dword [0x50a604]
fmul dword [0x50a600]
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push edx
call fcn.00402720
add esp, 4
cmp eax, 8
jne 0x495375
xor eax, eax
mov ecx, dword [esi + 8]
add ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea edx, [eax + ecx*8]
mov eax, dword [esi - 0x10]
mov ecx, dword [ebp - 0x2f4]
push 0x14
push eax
push 7
push ebx
mov dword [esi + 0x10], edx
call fcn.00404730
mov ecx, dword [esi - 0xc]
push 0x14
push ecx
mov ecx, dword [ebp - 0x2ec]
push 0x20
push ebx
call fcn.00404730
mov eax, dword [esi - 4]
mov edx, dword [esp + 0xa0]
sub eax, edx
mov dword [esi - 4], eax
jns 0x4953c6
mov dword [esi - 4], 0
mov eax, dword [esp + 0x10]
add ebx, 0x190
add eax, 2
add ebp, 4
add esi, 0x3c
cmp ebx, 0x336
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jl 0x4951a6
mov esi, dword [esp + 0xa0]
push esi
mov ecx, edi
call fcn.00494ed0
mov ecx, edi
call fcn.0048fc30
push esi
mov ecx, edi
call fcn.00492700
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 4