Function at 0x46dd00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557acb
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x58829c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
add eax, 2
cmp byte [esi + 0x128], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
je 0x46e3f6
push dword [esi + 0x124]
movaps xmm2, xmm1
mov ecx, esi
call fcn.0046dba0
mov ecx, dword [0x58d464]
push fcn.00472f30
push 0x42fc50
push 4
mov ecx, dword [ecx + 0x14238]
mov byte [ebp - 0x63], al
lea eax, [ebp - 0x60]
push 0xc
push eax
mov ecx, dword [ecx + 0xc3cc]
movss xmm0, dword [ecx + 0x280]
mulss xmm0, xmm0
mulss xmm0, dword [0x577514]
sqrtss xmm0, xmm0
movss dword [ebp - 0x6c], xmm0
call fcn.00551e94
mov dword [ebp - 4], 0
movss xmm0, dword [esi + 0x118]
mulss xmm0, dword [0x577494]
movss dword [ebp - 0x68], xmm0
call sub.msvcr120.dll___libm_sse2_sinf
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [ebp - 0x68]
call sub.msvcr120.dll___libm_sse2_cosf
movss dword [ebp - 0x70], xmm0
lea ebx, [ebp - 0x58]
mov edi, 0x2d
jmp 0x46de00
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x577494]
movss dword [ebp - 0x68], xmm0
call sub.msvcr120.dll___libm_sse2_cosf
movss dword [ebp - 0x74], xmm0
movss xmm0, dword [ebp - 0x68]
call sub.msvcr120.dll___libm_sse2_sinf
movss xmm3, dword [ebp - 0x74]
movaps xmm1, xmm0
mulss xmm0, dword [0x577570]
movaps xmm2, xmm3
add edi, 0x5a
mulss xmm2, dword [0x577c44]
xorps xmm4, xmm4
mulss xmm1, xmm4
mulss xmm3, xmm4
subss xmm2, xmm1
subss xmm3, xmm0
movaps xmm1, xmm2
mulss xmm2, dword [ebp - 0x78]
mulss xmm1, dword [ebp - 0x70]
movaps xmm0, xmm3
mulss xmm3, dword [ebp - 0x70]
mulss xmm0, dword [ebp - 0x78]
addss xmm3, xmm2
subss xmm1, xmm0
mulss xmm3, dword [ebp - 0x6c]
mulss xmm1, dword [ebp - 0x6c]
movss dword [ebx], xmm3
movss dword [ebx - 4], xmm1
add ebx, 0xc
cmp edi, 0x195
jl 0x46de00
xor edi, edi
cmp dword [esi + 0xf0], edi
jle 0x46e074
cmp byte [ebp - 0x63], 0
sete byte [ebp - 0x61]
jmp 0x46dec0
mov eax, dword [esi + 0xf8]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebx + 0x80]
cmp eax, dword [esi + 0x30]
jne 0x46df23
mov eax, dword [ebx + 0x88]
cmp eax, dword [esi + 0x34]
jne 0x46df23
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x60]
call fcn.00441d60
lea edx, [ebp - 0x62]
mov byte [ebp - 4], 1
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x158]
push edx
push eax
mov byte [ebp - 0x62], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0xa8], vtable.phVector2d.0
mov eax, dword [esi + 0xf8]
mov ebx, dword [eax + edi*4]
mov eax, dword [esi + 0x30]
add eax, 2
cmp dword [ebx + 0x80], eax
jne 0x46df89
mov eax, dword [ebx + 0x88]
cmp eax, dword [esi + 0x34]
jne 0x46df89
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00441d60
lea edx, [ebp - 0x62]
mov byte [ebp - 4], 2
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x158]
push edx
push eax
mov byte [ebp - 0x62], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0x9c], vtable.phVector2d.0
mov eax, dword [esi + 0xf8]
mov ebx, dword [eax + edi*4]
mov eax, dword [esi + 0x30]
add eax, 2
cmp dword [ebx + 0x80], eax
jne 0x46dff2
mov eax, dword [esi + 0x34]
add eax, 2
cmp dword [ebx + 0x88], eax
jne 0x46dff2
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x48]
call fcn.00441d60
lea edx, [ebp - 0x62]
mov byte [ebp - 4], 3
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x158]
push edx
push eax
mov byte [ebp - 0x62], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0x90], vtable.phVector2d.0
mov eax, dword [esi + 0xf8]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebx + 0x80]
cmp eax, dword [esi + 0x30]
jne 0x46e058
mov eax, dword [esi + 0x34]
add eax, 2
cmp dword [ebx + 0x88], eax
jne 0x46e058
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00441d60
lea edx, [ebp - 0x62]
mov byte [ebp - 4], 4
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x158]
push edx
push eax
mov byte [ebp - 0x62], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0x84], vtable.phVector2d.0
mov eax, dword [esi + 0xf8]
mov cl, byte [ebp - 0x61]
mov eax, dword [eax + edi*4]
inc edi
mov byte [eax + 0x24], cl
cmp edi, dword [esi + 0xf0]
jl 0x46dec0
xor edi, edi
cmp dword [esi + 0x10c], edi
jle 0x46e203
mov eax, dword [esi + 0x114]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebx + 0x30]
cmp eax, dword [esi + 0x30]
jne 0x46e0dc
mov eax, dword [ebx + 0x34]
cmp eax, dword [esi + 0x34]
jne 0x46e0dc
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x60]
call fcn.00441d60
lea edx, [ebp - 0x61]
mov byte [ebp - 4], 5
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x3c]
push edx
push eax
mov byte [ebp - 0x61], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0x84], vtable.phVector2d.0
mov eax, dword [esi + 0x114]
mov ebx, dword [eax + edi*4]
mov eax, dword [esi + 0x30]
add eax, 2
cmp dword [ebx + 0x30], eax
jne 0x46e139
mov eax, dword [ebx + 0x34]
cmp eax, dword [esi + 0x34]
jne 0x46e139
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x54]
call fcn.00441d60
lea edx, [ebp - 0x61]
mov byte [ebp - 4], 6
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x3c]
push edx
push eax
mov byte [ebp - 0x61], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0x90], vtable.phVector2d.0
mov eax, dword [esi + 0x114]
mov ebx, dword [eax + edi*4]
mov eax, dword [esi + 0x30]
add eax, 2
cmp dword [ebx + 0x30], eax
jne 0x46e199
mov eax, dword [esi + 0x34]
add eax, 2
cmp dword [ebx + 0x34], eax
jne 0x46e199
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00441d60
lea edx, [ebp - 0x61]
mov byte [ebp - 4], 7
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x3c]
push edx
push eax
mov byte [ebp - 0x61], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0x9c], vtable.phVector2d.0
mov eax, dword [esi + 0x114]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebx + 0x30]
cmp eax, dword [esi + 0x30]
jne 0x46e1f6
mov eax, dword [esi + 0x34]
add eax, 2
cmp dword [ebx + 0x34], eax
jne 0x46e1f6
lea eax, [esi + 0x130]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00441d60
lea edx, [ebp - 0x61]
mov byte [ebp - 4], 8
movss xmm2, dword [0x577b8c]
lea ecx, [ebx + 0x3c]
push edx
push eax
mov byte [ebp - 0x61], 1
call fcn.004592a0
mov byte [ebp - 4], 0
mov dword [ebp - 0xa8], vtable.phVector2d.0
inc edi
cmp edi, dword [esi + 0x10c]
jl 0x46e082
cmp byte [ebp - 0x63], 0
je 0x46e3dd
mov eax, dword [esi + 0x124]
add dword [esi + 0x120], eax
jns 0x46e222
add dword [esi + 0x120], 4
mov eax, dword [esi + 0x120]
cmp eax, 3
jle 0x46e236
add eax, 0xfffffffc
mov dword [esi + 0x120], eax
mov ecx, esi
call fcn.0046e5b0
movss xmm0, dword [esi + 0x118]
mov ecx, esi
addss xmm0, dword [esi + 0x11c]
mov byte [esi + 0x128], 0
mov byte [esi + 0x12a], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0xf0], 0
movss dword [esi + 0x11c], xmm0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x124], 1
call fcn.0046da80
mov eax, dword [esi + 0x140]
cmp eax, 0xffffffff
jne 0x46e2b5
cmp dword [esi + 0x144], eax
jne 0x46e2b5
cmp dword [esi + 0x148], eax
jne 0x46e2b5
cmp dword [esi + 0x14c], eax
je 0x46e2f9
cmp byte [esi + 0x164], 0
jne 0x46e2c3
cmp eax, 0xffffffff
jne 0x46e2f9
cmp byte [esi + 0x165], 0
jne 0x46e2d5
cmp dword [esi + 0x144], 0xffffffff
jne 0x46e2f9
cmp byte [esi + 0x166], 0
jne 0x46e2e7
cmp dword [esi + 0x148], 0xffffffff
jne 0x46e2f9
cmp byte [esi + 0x167], 0
jne 0x46e345
cmp dword [esi + 0x14c], 0xffffffff
je 0x46e345
mov ecx, esi
call fcn.0046e420
xor esi, esi
mov eax, dword [0x58d464]
push 0
push dword [ebp + esi - 0x30]
mov eax, dword [eax + 0x14238]
push dword [ebp + esi - 0x20]
mov edi, dword [eax + 0xc3cc]
mov ecx, edi
call fcn.004e0000
test eax, eax
je 0x46e338
push 0
push 0
push 0
push 0
push eax
mov ecx, edi
call fcn.005132e0
add esi, 4
cmp esi, 0x10
jl 0x46e302
jmp 0x46e3dd
mov ecx, esi
mov word [esi + 0x129], 0x101
call fcn.0046e420
mov eax, dword [0x58d464]
push str.sm_TileCarouselMetal
mov ecx, dword [eax + 0x14b90]
call fcn.00535e30
mov edi, eax
test edi, edi
je 0x46e3dd
mov ecx, dword [edi + 0x14]
test ecx, ecx
jg 0x46e3dd
inc ecx
cmp byte [0x58d45c], 0
mov dword [edi + 0x14], ecx
je 0x46e3dd
mov esi, dword [edi + 0xc]
mov ecx, esi
call fcn.005332b0
push 0
push dword [esi + 0x18]
push 0
push dword [edi]
call dword [sym.imp.Squall.dll_SQUALL_Sample_Play]
mov ebx, eax
add esp, 0x10
mov dword [edi + 4], ebx
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x46e3c2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
call sub.msvcr120.dll___libm_sse2_log10f
mulss xmm0, dword [0x577790]
jmp 0x46e3c5
xorps xmm0, xmm0
cvttss2si eax, xmm0
push eax
push ebx
call dword [sym.imp.Squall.dll_SQUALL_Channel_SetVolume]
push dword [edi + 4]
call dword [sym.imp.Squall.dll_SQUALL_Channel_Start]
add esp, 0xc
push fcn.00472f30
push 4
push 0xc
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00551c40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551c1f
mov esp, ebp
pop ebp
ret