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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x84
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xc4]
mov esi, dword [esp + 0xc8]
movss xmm6, dword [0x46110c]
movss xmm0, dword [0x4610dc]
movss xmm5, dword [0x4610d8]
mov edi, dword [ebp]
pxor xmm1, xmm1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xc0]
movss xmm4, dword [ecx]
comiss xmm4, xmm6
ja 0x408f21
movaps xmm5, xmm0
ucomiss xmm4, xmm1
mov dword [esp + 0x10], edi
mov edi, dword [esi]
mov dword [esp + 0x14], edi
jp 0x408f36
je 0x409940
mov edi, dword [esp + 0xb4]
movss xmm0, dword [0x4610e4]
movss xmm3, dword [0x4610e0]
movss xmm7, dword [0x4610e8]
movss dword [esp + 0x54], xmm4
comiss xmm6, xmm4
mov dword [esp + 0x78], eax
jae 0x408f67
movaps xmm3, xmm0
movss dword [esp + 8], xmm3
mov dword [esp + 0x38], edx
pxor xmm1, xmm1
subss xmm5, xmm1
movss dword [esp + 0xc], xmm5
movss xmm0, dword [esp + 0x54]
addss xmm0, dword [0x4610e8]
movss xmm1, dword [esp + 8]
divss xmm1, xmm0
movss xmm2, dword [0x46110c]
subss xmm2, xmm1
movss dword [esp], xmm2
call sub.libmmd.dll_acosf
fstp dword [esp + 0x4c]
movss xmm0, dword [esp + 0x4c]
mulss xmm0, dword [0x4610ec]
divss xmm0, dword [0x4610f0]
movss xmm2, dword [0x4610f4]
movss xmm1, dword [esp + 0xc]
mov ebp, dword [edi]
minss xmm2, xmm0
movss xmm0, dword [esp + 0x54]
addss xmm1, xmm2
divss xmm1, xmm2
cvttss2si eax, xmm1
xor ebx, ebx
test eax, eax
jle 0x409113
movss dword [esp + 4], xmm0
movss dword [esp + 0x60], xmm2
mov edi, eax
pxor xmm1, xmm1
movss dword [esp + 0x68], xmm1
movss xmm0, dword [esp + 0x68]
mulss xmm0, dword [0x4610f0]
divss xmm0, dword [0x4610f8]
movss dword [esp], xmm0
movss dword [esp + 0x64], xmm0
call sub.libmmd.dll_cosf
movss xmm0, dword [esp + 0x64]
fstp dword [esp + 0x4c]
movss xmm5, dword [esp + 0x4c]
movss dword [esp + 0x6c], xmm5
movss dword [esp], xmm0
call sub.libmmd.dll_sinf
movss xmm5, dword [esp + 0x6c]
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
movss xmm4, dword [edx]
movss xmm1, dword [ecx]
subss xmm1, dword [esi]
mov ecx, dword [esp + 0xc4]
subss xmm4, dword [ecx]
mov edx, dword [esp + 0xbc]
cvtsi2ss xmm2, dword [edx]
fstp dword [esp + 0x4c]
movaps xmm6, xmm5
movaps xmm0, xmm1
mulss xmm5, xmm1
mulss xmm6, xmm4
mulss xmm0, xmm2
mulss xmm4, xmm2
addss xmm6, dword [ecx]
addss xmm5, dword [esi]
movss xmm3, dword [esp + 0x4c]
mulss xmm0, xmm3
mulss xmm4, xmm3
cmp ebp, 1
subss xmm6, xmm0
movss dword [esp + 0x58], xmm6
addss xmm5, xmm4
movss dword [esp + 0x5c], xmm5
je 0x409902
movss xmm0, dword [esp + 0x68]
addss xmm0, dword [esp + 0x60]
movss dword [esp + 0x68], xmm0
inc ebx
movss dword [ebx*4 + 0x4d301c], xmm6
movss dword [ebx*4 + 0x4d7e3c], xmm5
dec edi
test edi, edi
jg 0x40900f
movss xmm0, dword [esp + 4]
mov edi, dword [esp + 0xb4]
cmp ebp, 1
je 0x4098ef
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test ecx, ecx
jle 0x4098a9
movss dword [esp + 4], xmm0
lea edx, [ebx*4 + 0x4d7e3c]
mov ebp, 1
lea eax, [edx - 0x4e20]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
lea edi, [ebx + ebp*4]
lea ebx, [edi - 4]
lea edx, [eax + ebp*4]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edx
push ecx
lea edi, [edx - 4]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x30]
mov ecx, 0x4608a4
push edx
push ecx
push esi
push dword [esp + 0xd8]
push ecx
push dword [esp + 0x58]
push dword [esp + 0x60]
push ecx
push edi
push ebx
lea eax, [esp + 0x54]
push eax
call fcn.00431950
cmp dword [esp + 0x24], 0
je 0x4091e0
mov eax, dword [esp + 0x38]
movss xmm0, dword [0x461108]
comiss xmm0, dword [eax + ebp*4 - 4]
jbe 0x4091e0
lea eax, [esp + 0x30]
push eax
mov eax, 0x4608a4
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
push ebx
call fcn.00431460
movss xmm1, dword [esp + 0x30]
jmp 0x409228
lea eax, [esp + 0x30]
push eax
mov edx, 0x4608a4
push edx
push dword [esp + 0x44]
push dword [esp + 0x4c]
push edx
push edi
push ebx
call fcn.00431460
lea eax, [esp + 0x18]
push eax
mov edx, 0x4608a4
push edx
push esi
push dword [esp + 0xd0]
push edx
push edi
push ebx
call fcn.00431460
movss xmm1, dword [esp + 0x30]
minss xmm1, dword [esp + 0x18]
movss dword [esp + 0x30], xmm1
mov eax, dword [esp + 0xb0]
movss xmm0, dword [eax]
subss xmm0, dword [0x4610fc]
comiss xmm0, xmm1
jbe 0x409253
movss xmm0, dword [esp + 0x54]
comiss xmm0, dword [0x4610fc]
ja 0x409698
cmp dword [esp + 0x70], 3
jl 0x409386
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
mov eax, 3
mov ebx, eax
lea esi, [ebx*4 + 0x4d7e3c]
lea edx, [esp + 0x74]
push edx
lea ebp, [esi - 0x4e20]
mov ecx, 0x4608a4
push ecx
push esi
push ebp
push ecx
push edi
push dword [esp + 0x98]
call fcn.00431460
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
cmp edx, dword [ecx]
jl 0x4092af
movss xmm1, dword [esp + 0x74]
jmp 0x409345
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, 0x4608a4
push edx
push dword [esp + 0x54]
push dword [esp + 0x5c]
push edx
push edi
push dword [esp + 0xa0]
push edx
push esi
push ebp
lea edx, [esp + 0x54]
push edx
call fcn.00431950
cmp dword [esp + 0x24], 0
je 0x4092a4
mov edx, dword [esp + 0x38]
movss xmm0, dword [0x461108]
mov ecx, dword [esp + 0x7c]
comiss xmm0, dword [edx + ecx*4 - 4]
jbe 0x4092a4
movss xmm0, dword [0x461108]
comiss xmm0, dword [edx + ecx*4]
ja 0x409316
movss xmm1, dword [esp + 0x74]
jmp 0x409345
lea edx, [esp + 0x20]
push edx
mov ecx, 0x4608a4
push ecx
push esi
push ebp
push ecx
lea ebp, [esp + 0x40]
push ebp
lea esi, [esp + 0x40]
push esi
call fcn.00431460
movss xmm1, dword [esp + 0x74]
minss xmm1, dword [esp + 0x20]
movss dword [esp + 0x74], xmm1
mov edx, dword [esp + 0xb0]
movss xmm0, dword [edx]
subss xmm0, dword [0x4610fc]
comiss xmm0, xmm1
jbe 0x409370
movss xmm0, dword [esp + 0x54]
comiss xmm0, dword [0x4610fc]
ja 0x409787
inc ebx
cmp ebx, dword [esp + 0x70]
jle 0x409270
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0xc8]
inc ebp
cmp ebp, dword [esp + 0x1c]
jle 0x409152
movss xmm4, dword [esp + 0x54]
movss xmm0, dword [0x461108]
movss xmm1, dword [0x461100]
movss xmm2, dword [0x4610fc]
movss xmm6, dword [0x46110c]
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb8]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
movss xmm3, dword [ecx]
comiss xmm3, xmm4
jbe 0x4095f6
mov ecx, dword [eax]
test ecx, ecx
jle 0x4095c3
movss dword [esp + 0x54], xmm4
mov ebp, edx
mov dword [esp + 0x70], edi
mov eax, 1
mov edi, eax
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
lea esi, [ebp + edi*4 - 4]
lea ebx, [ebx + edi*4 - 4]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x30]
mov eax, 0x4608a4
push ecx
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push dword [esp + 0xec]
push dword [esp + 0xec]
push eax
push ebx
push esi
lea ecx, [esp + 0x54]
push ecx
call fcn.00431950
cmp dword [esp + 0x24], 0
je 0x409488
movss xmm0, dword [0x461108]
comiss xmm0, dword [ebp + edi*4 - 4]
jbe 0x409488
lea ecx, [esp + 0x30]
push ecx
mov eax, 0x4608a4
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
push esi
call fcn.00431460
movss xmm1, dword [esp + 0x30]
jmp 0x4094d8
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x4608a4
push ecx
push dword [esp + 0xd8]
push dword [esp + 0xd8]
push ecx
push ebx
push esi
call fcn.00431460
lea ecx, [esp + 0x18]
push ecx
mov eax, 0x4608a4
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
push esi
call fcn.00431460
movss xmm1, dword [esp + 0x30]
minss xmm1, dword [esp + 0x18]
movss dword [esp + 0x30], xmm1
mov ecx, dword [esp + 0xb0]
movss xmm0, dword [ecx]
subss xmm0, dword [0x4610fc]
comiss xmm0, xmm1
jbe 0x409593
lea ecx, [esp + 0x74]
push ecx
mov eax, 0x4608a4
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
push esi
call fcn.00431460
lea ecx, [esp + 4]
push ecx
mov ecx, 0x4608a4
push ecx
push dword [esp + 0xd8]
push dword [esp + 0xd8]
push ecx
push ebx
push esi
call fcn.00431460
lea ecx, [esp + 8]
push ecx
mov ecx, 0x4608a4
push ecx
lea ebx, [esp + 0x1c]
push ebx
lea esi, [esp + 0x1c]
push esi
push ecx
push dword [esp + 0xe4]
push dword [esp + 0xe4]
call fcn.00431460
movss xmm1, dword [esp + 0x74]
movss xmm0, dword [esp + 8]
comiss xmm0, xmm1
jb 0x409577
comiss xmm0, dword [esp + 4]
jae 0x40987d
mov ecx, dword [esp + 0xb0]
movss xmm0, dword [ecx]
subss xmm0, dword [0x4610fc]
comiss xmm0, xmm1
ja 0x40987d
inc edi
cmp edi, dword [esp + 0xc]
jle 0x409406
movss xmm1, dword [0x461100]
movss xmm6, dword [0x46110c]
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc4]
mov ebx, dword [esp + 0xb8]
movaps xmm4, xmm6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xcc]
mov edi, dword [ecx]
mov dword [ebp], eax
mov eax, dword [esp + 0xd0]
mov dword [0x4d3020], edi
mov dword [esi], edx
mov edx, dword [eax]
mov edi, 1
mov dword [0x4d7e40], edx
comiss xmm1, xmm4
jbe 0x409614
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
mov edx, dword [eax]
mov edi, dword [ecx]
mov dword [ebp], edx
mov dword [esi], edi
jmp 0x40965d
test edi, edi
jle 0x40965d
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xd4]
mov dword [esp + 0x70], edi
mov eax, 1
mov edi, eax
lea ecx, [edi*4 + 0x4d301c]
push ebp
push esi
lea edx, [ecx + 0x4e20]
push edx
push ecx
push ebx
call fcn.004405a0
inc edi
cmp edi, dword [esp + 0x70]
jle 0x409631
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc4]
push dword [esp + 0xa4]
push dword [esp + 0xd8]
push esi
push ebp
push ebx
call fcn.004405a0
mov eax, dword [esp + 0xa8]
push eax
mov edx, dword [esp + 0xb0]
push edx
push esi
push ebp
push ebx
call fcn.004405a0
add esp, 0x84
pop ebx
pop ebp
pop esi
pop edi
ret 0x40
movss xmm0, dword [esp + 4]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0xb4]
movss xmm2, dword [esp + 0x54]
movaps xmm1, xmm2
mulss xmm1, dword [0x461100]
movss xmm3, dword [0x461104]
mov eax, dword [esp + 0xc4]
movss xmm5, dword [eax]
subss xmm2, xmm1
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
movss xmm4, dword [edx]
ucomiss xmm5, xmm4
maxss xmm3, xmm2
movss xmm2, dword [ecx]
movss dword [esp + 0x54], xmm3
movss xmm3, dword [esi]
jp 0x4096fc
je 0x409736
movss xmm1, dword [esp + 0x54]
mov eax, dword [esp + 0xc4]
subss xmm5, xmm4
mulss xmm5, xmm1
divss xmm5, xmm0
subss xmm3, xmm2
mulss xmm3, xmm1
divss xmm3, xmm0
addss xmm4, xmm5
movss dword [eax], xmm4
addss xmm2, xmm3
movss dword [esi], xmm2
jmp 0x408f7f
ucomiss xmm3, xmm2
jne 0x4096fc
jp 0x4096fc
movss xmm4, dword [esp + 0x54]
movss xmm0, dword [0x461108]
movss xmm1, dword [0x461100]
movss xmm2, dword [0x4610fc]
mov edi, ebx
movss xmm6, dword [0x46110c]
mov ebp, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb8]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
jmp 0x4093d8
movss xmm0, dword [esp + 4]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0xc8]
movss xmm2, dword [esp + 0x54]
movaps xmm1, xmm2
mulss xmm1, dword [0x461100]
movss xmm3, dword [0x461104]
mov eax, dword [esp + 0xc4]
movss xmm5, dword [eax]
subss xmm2, xmm1
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
movss xmm4, dword [edx]
ucomiss xmm5, xmm4
maxss xmm3, xmm2
movss xmm2, dword [ecx]
movss dword [esp + 0x54], xmm3
movss xmm3, dword [esi]
jp 0x4097f2
je 0x40982c
movss xmm1, dword [esp + 0x54]
mov eax, dword [esp + 0xc4]
subss xmm5, xmm4
mulss xmm5, xmm1
divss xmm5, xmm0
subss xmm3, xmm2
mulss xmm3, xmm1
divss xmm3, xmm0
addss xmm4, xmm5
movss dword [eax], xmm4
addss xmm2, xmm3
movss dword [esi], xmm2
jmp 0x408f7f
ucomiss xmm3, xmm2
jne 0x4097f2
jp 0x4097f2
movss xmm4, dword [esp + 0x54]
movss xmm0, dword [0x461108]
movss xmm1, dword [0x461100]
movss xmm2, dword [0x4610fc]
mov edi, ebx
movss xmm6, dword [0x46110c]
mov ebp, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb8]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
jmp 0x4093d8
movss xmm4, dword [esp + 0x54]
movss xmm1, dword [0x461100]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc4]
mov ebx, dword [esp + 0xb8]
jmp 0x4095f6
movss xmm4, dword [esp + 0x54]
movss xmm0, dword [0x461108]
movss xmm1, dword [0x461100]
movss xmm2, dword [0x4610fc]
mov edi, ebx
movss xmm6, dword [0x46110c]
mov ebp, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb8]
mov edx, dword [esp + 0x38]
jmp 0x4093d8
mov ebp, dword [esp + 0xc4]
mov ebx, dword [esp + 0xb8]
jmp 0x40965d
lea ecx, [esp + 0x58]
lea edx, [esp + 0x5c]
push dword [esp + 0xa4]
push dword [esp + 0xd8]
push edx
push ecx
push dword [esp + 0xc8]
call fcn.004405a0
movss xmm6, dword [esp + 0x58]
movss xmm5, dword [esp + 0x5c]
mov edx, dword [esp + 0xb4]
mov ebp, dword [edx]
jmp 0x4090d8
push dword [esp + 0xa8]
push dword [esp + 0xb0]
push dword [esp + 0xd8]
push dword [esp + 0xd8]
push ebx
call fcn.004405a0
add esp, 0x84
pop ebx
pop ebp
pop esi
pop edi
ret 0x40