; ; sub_1800252C0 from 0x1800252c0 to 0x1800258cc (1548 bytes) ; ; 3 xrefs: ; > sub_180021100 @ 0x1800217c1 ; > sub_1800250E0 @ 0x1800251ab ; > @ 0x1801f7578 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x1800252c0 sub rsp, 80h ; +0x2, 0x1800252c2 movaps [rsp+88h+var_18], xmm6 ; +0x9, 0x1800252c9 xor r10d, r10d ; +0xe, 0x1800252ce mov rbx, rcx ; +0x11, 0x1800252d1 movaps [rsp+88h+var_28], xmm7 ; +0x14, 0x1800252d4 xorps xmm6, xmm6 ; +0x19, 0x1800252d9 movaps [rsp+88h+var_38], xmm8 ; +0x1c, 0x1800252dc xorps xmm8, xmm8 ; +0x22, 0x1800252e2 movaps [rsp+88h+var_48], xmm9 ; +0x26, 0x1800252e6 movaps [rsp+88h+var_58], xmm10 ; +0x2c, 0x1800252ec movaps [rsp+88h+var_68], xmm11 ; +0x32, 0x1800252f2 cmp [rcx+2D0h], r10b ; +0x38, 0x1800252f8 jz loc_180025518 ; +0x3f, 0x1800252ff movzx r9d, byte ptr [rcx+304h] ; +0x45, 0x180025305 test r9b, r9b ; +0x4d, 0x18002530d jz loc_18002540E ; +0x50, 0x180025310 mov rax, [rcx+318h] ; +0x56, 0x180025316 cmp [rax+364h], r10b ; +0x5d, 0x18002531d jnz loc_18002540E ; +0x64, 0x180025324 movsxd rcx, dword ptr [rcx+2C0h] ; +0x6a, 0x18002532a cmp ecx, 2 ; +0x71, 0x180025331 jz loc_18002540E ; +0x74, 0x180025334 movss xmm2, dword ptr [rbx+2C4h] ; +0x7a, 0x18002533a lea rdx, ds:0A7h[rcx*2] ; +0x82, 0x180025342 add rdx, rcx ; +0x8a, 0x18002534a mov r8, rcx ; +0x8d, 0x18002534d movss xmm3, dword ptr [rbx+rdx*4] ; +0x90, 0x180025350 lea rdx, [rbx+rdx*4] ; +0x95, 0x180025355 comiss xmm2, xmm3 ; +0x99, 0x180025359 jb short loc_180025382 ; +0x9c, 0x18002535c inc ecx ; +0x9e, 0x18002535e mov [rbx+2C0h], ecx ; +0xa0, 0x180025360 subss xmm2, dword ptr [rdx] ; +0xa6, 0x180025366 lea rdx, [r8+55h] ; +0xaa, 0x18002536a lea rdx, [r8+rdx*2] ; +0xae, 0x18002536e lea rdx, [rbx+rdx*4] ; +0xb2, 0x180025372 movss dword ptr [rbx+2C4h], xmm2 ; +0xb6, 0x180025376 movss xmm3, dword ptr [rdx] ; +0xbe, 0x18002537e comiss xmm3, xmm8 ; +0xc2, 0x180025382 jbe short loc_1800253A6 ; +0xc6, 0x180025386 comiss xmm2, xmm3 ; +0xc8, 0x180025388 ja short loc_1800253A6 ; +0xcb, 0x18002538b movss xmm1, dword ptr [rdx+8] ; +0xcd, 0x18002538d subss xmm1, dword ptr [rdx+4] ; +0xd2, 0x180025392 divss xmm1, xmm3 ; +0xd7, 0x180025397 mulss xmm1, xmm2 ; +0xdb, 0x18002539b addss xmm1, dword ptr [rdx+4] ; +0xdf, 0x18002539f jmp short loc_1800253AB ; +0xe4, 0x1800253a4 movss xmm1, dword ptr [rdx+4] ; +0xe6, 0x1800253a6 cmp ecx, 1 ; +0xeb, 0x1800253ab jnz short loc_1800253BF ; +0xee, 0x1800253ae movss xmm0, dword ptr [rbx+2C8h] ; +0xf0, 0x1800253b0 maxss xmm0, xmm1 ; +0xf8, 0x1800253b8 movaps xmm1, xmm0 ; +0xfc, 0x1800253bc mov dword ptr [rbx+2C0h], 2 ; +0xff, 0x1800253bf movss xmm3, dword ptr [rbx+2B8h] ; +0x109, 0x1800253c9 movss xmm0, dword ptr [rbx+2BCh] ; +0x111, 0x1800253d1 subss xmm0, xmm3 ; +0x119, 0x1800253d9 ucomiss xmm0, xmm8 ; +0x11d, 0x1800253dd jz short loc_180025407 ; +0x121, 0x1800253e1 movss xmm2, dword ptr [rbx+2B4h] ; +0x123, 0x1800253e3 ucomiss xmm2, xmm8 ; +0x12b, 0x1800253eb jz short loc_180025407 ; +0x12f, 0x1800253ef subss xmm1, xmm3 ; +0x131, 0x1800253f1 mulss xmm1, xmm2 ; +0x135, 0x1800253f5 divss xmm1, xmm0 ; +0x139, 0x1800253f9 movss dword ptr [rbx+2C4h], xmm1 ; +0x13d, 0x1800253fd jmp short loc_18002540E ; +0x145, 0x180025405 mov [rbx+2C4h], r10d ; +0x147, 0x180025407 movsxd rdx, dword ptr [rbx+2C0h] ; +0x14e, 0x18002540e movss xmm0, dword ptr [rbx+2C4h] ; +0x155, 0x180025415 lea rcx, [rdx+rdx*2] ; +0x15d, 0x18002541d comiss xmm0, dword ptr [rbx+rcx*4+29Ch] ; +0x161, 0x180025421 jb loc_1800254AD ; +0x169, 0x180025429 mov r8d, edx ; +0x16f, 0x18002542f cmp r8d, 3 ; +0x172, 0x180025432 jge short loc_1800254AD ; +0x176, 0x180025436 cmp r8d, 1 ; +0x178, 0x180025438 jnz short loc_18002545D ; +0x17c, 0x18002543c comiss xmm8, dword ptr [rbx+2C8h] ; +0x17e, 0x18002543e jnb short loc_18002545D ; +0x186, 0x180025446 test r9b, r9b ; +0x188, 0x180025448 jz short loc_18002549D ; +0x18b, 0x18002544b mov rax, [rbx+318h] ; +0x18d, 0x18002544d cmp [rax+364h], r10b ; +0x194, 0x180025454 jnz short loc_18002549D ; +0x19b, 0x18002545b movss xmm0, dword ptr [rbx+2C4h] ; +0x19d, 0x18002545d lea edx, [r8+1] ; +0x1a5, 0x180025465 movsxd rax, r8d ; +0x1a9, 0x180025469 mov r8d, edx ; +0x1ac, 0x18002546c lea rcx, [rax+rax*2] ; +0x1af, 0x18002546f movsxd rax, edx ; +0x1b3, 0x180025473 subss xmm0, dword ptr [rbx+rcx*4+29Ch] ; +0x1b6, 0x180025476 mov [rbx+2C0h], edx ; +0x1bf, 0x18002547f lea rcx, [rax+rax*2] ; +0x1c5, 0x180025485 movss dword ptr [rbx+2C4h], xmm0 ; +0x1c9, 0x180025489 comiss xmm0, dword ptr [rbx+rcx*4+29Ch] ; +0x1d1, 0x180025491 jnb short loc_180025432 ; +0x1d9, 0x180025499 jmp short loc_1800254AD ; +0x1db, 0x18002549b movss xmm0, dword ptr [rbx+2A8h] ; +0x1dd, 0x18002549d movss dword ptr [rbx+2C4h], xmm0 ; +0x1e5, 0x1800254a5 cmp edx, 3 ; +0x1ed, 0x1800254ad jl short loc_1800254BF ; +0x1f0, 0x1800254b0 movaps xmm6, xmm8 ; +0x1f2, 0x1800254b2 mov [rbx+2D0h], r10b ; +0x1f6, 0x1800254b6 jmp short loc_180025518 ; +0x1fd, 0x1800254bd movsxd rax, edx ; +0x1ff, 0x1800254bf lea rcx, [rax+rax*2] ; +0x202, 0x1800254c2 movss xmm2, dword ptr [rbx+rcx*4+29Ch] ; +0x206, 0x1800254c6 comiss xmm2, xmm8 ; +0x20f, 0x1800254cf movss xmm1, dword ptr [rbx+rcx*4+2A0h] ; +0x213, 0x1800254d3 jbe short loc_1800254F9 ; +0x21c, 0x1800254dc movss xmm6, dword ptr [rbx+rcx*4+2A4h] ; +0x21e, 0x1800254de subss xmm6, xmm1 ; +0x227, 0x1800254e7 divss xmm6, xmm2 ; +0x22b, 0x1800254eb mulss xmm6, xmm0 ; +0x22f, 0x1800254ef addss xmm6, xmm1 ; +0x233, 0x1800254f3 jmp short loc_1800254FC ; +0x237, 0x1800254f7 movaps xmm6, xmm1 ; +0x239, 0x1800254f9 cmp edx, 1 ; +0x23c, 0x1800254fc jnz short loc_180025510 ; +0x23f, 0x1800254ff movss xmm0, dword ptr [rbx+2C8h] ; +0x241, 0x180025501 maxss xmm0, xmm6 ; +0x249, 0x180025509 movaps xmm6, xmm0 ; +0x24d, 0x18002550d mulss xmm6, dword ptr [rbx+2CCh] ; +0x250, 0x180025510 mov eax, [rbx+2ECh] ; +0x258, 0x180025518 xor r8b, r8b ; +0x25e, 0x18002551e movss xmm2, cs:dword_180164A10 ; +0x261, 0x180025521 test eax, eax ; +0x269, 0x180025529 jle loc_18002564F ; +0x26b, 0x18002552b mov rdx, [rbx+2F0h] ; +0x271, 0x180025531 lea r11, cs:180000000h ; +0x278, 0x180025538 movss xmm3, cs:dword_180145744 ; +0x27f, 0x18002553f mov r9d, eax ; +0x287, 0x180025547 nop word ptr [rax+rax+00h] ; +0x28a, 0x18002554a cmp word ptr [rdx+4], 3 ; +0x290, 0x180025550 movaps xmm1, xmm3 ; +0x295, 0x180025555 jnz loc_180025624; jumptable 000000018002557C cases 0,2-6,129,135,138,139 ; +0x298, 0x180025558 movzx eax, word ptr [rdx] ; +0x29e, 0x18002555e cmp eax, 8Bh; switch 140 cases ; +0x2a1, 0x180025561 ja short def_18002557C; jumptable 000000018002557C default case, cases 1,7-128,130-134,136,137 ; +0x2a6, 0x180025566 movzx eax, ds:(byte_180025794 - 180000000h)[r11+rax] ; +0x2a8, 0x180025568 mov ecx, ds:(jpt_18002557C - 180000000h)[r11+rax*4] ; +0x2b1, 0x180025571 add rcx, r11 ; +0x2b9, 0x180025579 jmp rcx; switch jump ; +0x2bc, 0x18002557c movzx eax, word ptr [rdx+2]; jumptable 000000018002557C default case, cases 1,7-128,130-134,136,137 ; +0x2be, 0x18002557e cmp eax, 8Bh; switch 140 cases ; +0x2c2, 0x180025582 ja short def_18002559D; jumptable 000000018002559D default case, cases 4-128,130-134,136,137 ; +0x2c7, 0x180025587 movzx eax, ds:(byte_180025840 - 180000000h)[r11+rax] ; +0x2c9, 0x180025589 mov ecx, ds:(jpt_18002559D - 180000000h)[r11+rax*4] ; +0x2d2, 0x180025592 add rcx, r11 ; +0x2da, 0x18002559a jmp rcx; switch jump ; +0x2dd, 0x18002559d movaps xmm1, xmm3; jumptable 000000018002559D cases 0,1 ; +0x2df, 0x18002559f jmp short def_18002559D; jumptable 000000018002559D default case, cases 4-128,130-134,136,137 ; +0x2e2, 0x1800255a2 movzx eax, byte ptr [rbx+2E8h]; jumptable 000000018002559D case 2 ; +0x2e4, 0x1800255a4 movd xmm1, eax ; +0x2eb, 0x1800255ab jmp short loc_180025600 ; +0x2ef, 0x1800255af movzx eax, byte ptr [rbx+2E0h]; jumptable 000000018002559D case 3 ; +0x2f1, 0x1800255b1 movd xmm1, eax ; +0x2f8, 0x1800255b8 jmp short loc_180025600 ; +0x2fc, 0x1800255bc mov rax, [rbx+318h]; jumptable 000000018002559D case 129 ; +0x2fe, 0x1800255be movd xmm1, dword ptr [rax+368h] ; +0x305, 0x1800255c5 jmp short loc_180025600 ; +0x30d, 0x1800255cd mov rax, [rbx+318h]; jumptable 000000018002559D case 135 ; +0x30f, 0x1800255cf movd xmm1, dword ptr [rax+36Ch] ; +0x316, 0x1800255d6 jmp short loc_180025600 ; +0x31e, 0x1800255de mov rax, [rbx+318h]; jumptable 000000018002559D case 138 ; +0x320, 0x1800255e0 movd xmm1, dword ptr [rax+370h] ; +0x327, 0x1800255e7 jmp short loc_180025600 ; +0x32f, 0x1800255ef mov rax, [rbx+318h]; jumptable 000000018002559D case 139 ; +0x331, 0x1800255f1 movd xmm1, dword ptr [rax+374h] ; +0x338, 0x1800255f8 cvtdq2ps xmm1, xmm1 ; +0x340, 0x180025600 mulss xmm1, xmm2 ; +0x343, 0x180025603 cmp word ptr [rdx+6], 1; jumptable 000000018002559D default case, cases 4-128,130-134,136,137 ; +0x347, 0x180025607 jz short loc_180025621 ; +0x34c, 0x18002560c movd xmm0, dword ptr [rdx+8] ; +0x34e, 0x18002560e cvtdq2ps xmm0, xmm0 ; +0x353, 0x180025613 mulss xmm0, xmm1 ; +0x356, 0x180025616 cvttss2si eax, xmm0 ; +0x35a, 0x18002561a add r10d, eax ; +0x35e, 0x18002561e mov r8b, 1 ; +0x361, 0x180025621 add rdx, 0Ch; jumptable 000000018002557C cases 0,2-6,129,135,138,139 ; +0x364, 0x180025624 sub r9, 1 ; +0x368, 0x180025628 jnz loc_180025550 ; +0x36c, 0x18002562c test r8b, r8b ; +0x372, 0x180025632 jz short loc_18002564F ; +0x375, 0x180025635 movd xmm0, r10d ; +0x377, 0x180025637 cvtdq2ps xmm0, xmm0 ; +0x37c, 0x18002563c mulss xmm0, cs:dword_1801649FC ; +0x37f, 0x18002563f movss dword ptr [rbx+2FCh], xmm0 ; +0x387, 0x180025647 mov rax, [rbx+318h] ; +0x38f, 0x18002564f xorps xmm0, xmm0 ; +0x396, 0x180025656 movss xmm1, dword ptr [rbx+258h] ; +0x399, 0x180025659 xorps xmm7, xmm7 ; +0x3a1, 0x180025661 xorps xmm9, xmm9 ; +0x3a4, 0x180025664 xorps xmm10, xmm10 ; +0x3a8, 0x180025668 cvtsi2ss xmm9, dword ptr [rbx+308h] ; +0x3ac, 0x18002566c cvtsi2ss xmm0, dword ptr [rax+35Ch] ; +0x3b5, 0x180025675 cvtsi2ss xmm7, dword ptr [rax+360h] ; +0x3bd, 0x18002567d movzx eax, byte ptr [rbx+2E0h] ; +0x3c5, 0x180025685 xorps xmm11, xmm11 ; +0x3cc, 0x18002568c cvtsi2ss xmm11, dword ptr [rbx+2E4h] ; +0x3d0, 0x180025690 mulss xmm7, xmm0 ; +0x3d9, 0x180025699 xorps xmm0, xmm0 ; +0x3dd, 0x18002569d cvtsi2ss xmm0, eax ; +0x3e0, 0x1800256a0 movzx eax, byte ptr [rbx+2E1h] ; +0x3e4, 0x1800256a4 mulss xmm7, cs:dword_180164A00 ; +0x3eb, 0x1800256ab mulss xmm9, xmm0 ; +0x3f3, 0x1800256b3 movss xmm0, dword ptr [rbx+25Ch] ; +0x3f8, 0x1800256b8 comiss xmm0, xmm1 ; +0x400, 0x1800256c0 cvtsi2ss xmm10, eax ; +0x403, 0x1800256c3 mulss xmm9, xmm2 ; +0x408, 0x1800256c8 mulss xmm10, cs:dword_180164634 ; +0x40d, 0x1800256cd jb short loc_1800256FE ; +0x416, 0x1800256d6 subss xmm0, xmm1 ; +0x418, 0x1800256d8 mulss xmm0, cs:dword_180164A0C ; +0x41c, 0x1800256dc mulss xmm0, dword ptr [rbx+260h]; X ; +0x424, 0x1800256e4 call sinf ; +0x42c, 0x1800256ec movaps xmm8, xmm0 ; +0x431, 0x1800256f1 mulss xmm8, dword ptr [rbx+2FCh] ; +0x435, 0x1800256f5 mov rcx, [rbx+2D8h] ; +0x43e, 0x1800256fe lea rdx, [rsp+88h+arg_0] ; +0x445, 0x180025705 xor r8d, r8d ; +0x44d, 0x18002570d mov rax, [rcx] ; +0x450, 0x180025710 call qword ptr [rax+40h] ; +0x453, 0x180025713 movss xmm0, cs:flt_180145750; X ; +0x456, 0x180025716 addss xmm7, xmm6 ; +0x45e, 0x18002571e addss xmm7, xmm9 ; +0x462, 0x180025722 addss xmm7, xmm11 ; +0x467, 0x180025727 subss xmm7, xmm10 ; +0x46c, 0x18002572c addss xmm7, xmm8 ; +0x471, 0x180025731 mulss xmm7, cs:dword_180164A04 ; +0x476, 0x180025736 movaps xmm1, xmm7; Y ; +0x47e, 0x18002573e call powf ; +0x481, 0x180025741 mulss xmm0, [rsp+88h+arg_0] ; +0x486, 0x180025746 lea rcx, [rbx+20h] ; +0x48f, 0x18002574f movaps xmm1, xmm0 ; +0x493, 0x180025753 call sub_1800CEE10 ; +0x496, 0x180025756 movaps xmm6, [rsp+88h+var_18] ; +0x49b, 0x18002575b xor eax, eax ; +0x4a0, 0x180025760 movaps xmm7, [rsp+88h+var_28] ; +0x4a2, 0x180025762 movaps xmm8, [rsp+88h+var_38] ; +0x4a7, 0x180025767 movaps xmm9, [rsp+88h+var_48] ; +0x4ad, 0x18002576d movaps xmm10, [rsp+88h+var_58] ; +0x4b3, 0x180025773 movaps xmm11, [rsp+88h+var_68] ; +0x4b9, 0x180025779 add rsp, 80h ; +0x4bf, 0x18002577f pop rbx ; +0x4c6, 0x180025786 retn ; +0x4c7, 0x180025787 dd offset loc_180025624 - 180000000h; jump table for switch statement ; +0x4c8, 0x180025788 db 0, 1, 0, 0; indirect table for switch statement ; +0x4d4, 0x180025794 dd offset loc_18002559F - 180000000h; jump table for switch statement ; +0x560, 0x180025820 db 0, 0, 1, 2; indirect table for switch statement ; +0x580, 0x180025840