Function at 0x40dfc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x4a5724]
test byte [edi + 8], 0x42
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x40], eax
jne 0x40ebba
cmp byte [edi + 0x90], 0
jg 0x40ebba
cmp byte [edi + 0x91], 0
jg 0x40ebba
cmp byte [edi + 0x7b], 0
je 0x40ebba
movss xmm2, dword [eax + 0x192c]
xor edx, edx
movss xmm0, dword [edi + 0x3c]
movaps xmm1, xmm2
addss xmm0, dword [0x491374]
mulss xmm2, dword [0x491328]
mov esi, 4
mov cl, byte [eax + 0xb3]
mulss xmm1, dword [0x49137c]
test cl, cl
mov byte [ebp - 0x15], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x78], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x49135c]
cvttss2si esi, xmm0
mov dword [ebp - 0x70], esi
je 0x40e097
movss xmm2, dword [0x4913a0]
jmp 0x40e09a
xorps xmm2, xmm2
movss xmm0, dword [0x491470]
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x24], xmm0
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x14], xmm0
mov dword [edi + 0x134], 1
mov dword [edi + 0x138], 2
call fcn.00412070
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0xc], edx
jle 0x40e581
movss xmm2, dword [edi + 0x10]
lea ecx, [edx + edx*2]
addss xmm2, dword [edi + 0x18]
movss xmm3, dword [edi + 0xc]
addss xmm3, dword [edi + 0x14]
movss xmm0, dword [ecx*8 + 0x49f2dc]
movss xmm4, dword [ecx*8 + 0x49f2d8]
subss xmm2, dword [edi + 0x10]
movss xmm5, dword [ebp - 0x28]
subss xmm3, dword [edi + 0xc]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x6c], ecx
mulss xmm2, dword [ecx*8 + 0x49f2d4]
mulss xmm3, dword [ecx*8 + 0x49f2d0]
addss xmm2, dword [edi + 0x10]
mulss xmm0, xmm1
addss xmm3, dword [edi + 0xc]
mulss xmm4, xmm1
movss xmm1, dword [ecx*8 + 0x49f2dc]
addss xmm0, xmm2
mulss xmm1, xmm5
addss xmm4, xmm3
movss dword [ebp - 0x88], xmm0
subss xmm2, xmm1
movss xmm0, dword [ecx*8 + 0x49f2d8]
mulss xmm0, xmm5
movss dword [ebp - 0x8c], xmm4
movss dword [ebp - 0x80], xmm2
subss xmm3, xmm0
comiss xmm3, xmm4
movss dword [ebp - 0x84], xmm3
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x5c], eax
jbe 0x40e1bf
movss dword [ebp - 0x68], xmm4
movss dword [ebp - 0x60], xmm3
movss xmm1, dword [ebp - 0x64]
movss xmm0, dword [ebp - 0x5c]
comiss xmm1, xmm0
jbe 0x40e1d8
movss dword [ebp - 0x64], xmm0
movss dword [ebp - 0x5c], xmm1
mov ecx, dword [edi + 0xbc]
lea esi, [ebp - 4]
mov eax, dword [edi + 0xc4]
mov edi, 4
mov dword [ebp - 4], edx
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x48cee0]
sub edi, 1
jne 0x40e1f5
mov eax, dword [0x4a5724]
not edx
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x74]
cmp dword [eax + 0x1aa0], edx
jne 0x40e22a
mov dword [eax + 0x1aa4], edx
cmp dword [eax + 0x1adc], edx
jne 0x40e239
mov byte [eax + 0x1ae0], 1
push 0x40800
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x68]
call fcn.00428660
mov cl, byte [ebp - 0xd]
add esp, 0xc
test cl, cl
jne 0x40e263
mov al, byte [ebp - 0xe]
test al, al
je 0x40e7d5
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x40]
and al, 1
movzx eax, al
neg eax
sbb eax, eax
add eax, 6
mov dword [ecx + 0x1e5c], eax
mov al, byte [ebp - 0xe]
test al, al
je 0x40e53f
cmp byte [ecx + 0x3e5], 0
je 0x40e2e0
test edx, edx
jne 0x40e2e0
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x94]
mov edx, edi
push dword [eax + 4]
push dword [eax]
call fcn.0040d940
add esp, 8
mov byte [ebp - 0x15], 1
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
movss dword [ebp - 0x3c], xmm3
movss dword [ebp - 0x14], xmm2
call fcn.00409ff0
mov edx, dword [ebp - 0x1c]
cmp byte [ebp - 0xe], 0
je 0x40e556
mov ecx, 0x20
jmp 0x40e561
mov edx, dword [ebp - 0x6c]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss xmm2, dword [edx*8 + 0x49f2d8]
xorps xmm0, xmmword [0x491db0]
movss xmm3, dword [edx*8 + 0x49f2dc]
movss xmm1, dword [edx*8 + 0x49f2dc]
mulss xmm1, dword [ebp - 0x28]
movss xmm4, dword [edx*8 + 0x49f2d0]
mulss xmm2, xmm0
mulss xmm3, xmm0
movss xmm0, dword [edx*8 + 0x49f2d8]
mulss xmm0, dword [ebp - 0x28]
movss xmm7, dword [ecx + 0xe8]
subss xmm3, xmm1
movss xmm6, dword [ecx + 0xec]
subss xmm2, xmm0
subss xmm7, dword [ecx + 0x1ac8]
subss xmm6, dword [ecx + 0x1acc]
mov ecx, dword [ebx + 0x14]
mulss xmm2, xmm4
addss xmm2, xmm0
movss xmm0, dword [edx*8 + 0x49f2d4]
mulss xmm3, xmm0
addss xmm3, xmm1
movss xmm1, dword [0x491374]
ucomiss xmm0, xmm1
movss xmm0, dword [0x491494]
addss xmm7, xmm2
addss xmm6, xmm3
lahf
test ah, 0x44
jp 0x40e39c
movss xmm5, dword [ecx + 4]
jmp 0x40e39f
movaps xmm5, xmm0
ucomiss xmm4, xmm1
lahf
test ah, 0x44
jp 0x40e3ae
movss xmm4, dword [ecx]
jmp 0x40e3b1
movaps xmm4, xmm0
movss xmm1, dword [edx*8 + 0x49f2d4]
xorps xmm0, xmm0
movss xmm2, dword [0x491470]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x40e3d5
movss xmm1, dword [ecx + 0xc]
jmp 0x40e3d8
movaps xmm1, xmm2
movss xmm3, dword [edx*8 + 0x49f2d0]
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jp 0x40e3f1
movss xmm0, dword [ecx + 8]
jmp 0x40e3f4
movaps xmm0, xmm2
comiss xmm5, xmm6
ja 0x40e400
movaps xmm5, xmm1
minss xmm5, xmm6
comiss xmm4, xmm7
ja 0x40e40c
movaps xmm4, xmm0
minss xmm4, xmm7
movss xmm2, dword [edi + 0xc]
lea ecx, [ebp - 0x58]
movss xmm6, dword [edx*8 + 0x49f2d4]
subss xmm2, xmm4
movss xmm1, dword [edi + 0x10]
addss xmm1, dword [edi + 0x18]
movss xmm0, dword [edi + 0x14]
addss xmm0, dword [edi + 0xc]
mulss xmm2, xmm3
movss xmm3, dword [edi + 0x10]
subss xmm3, xmm5
addss xmm2, xmm4
subss xmm4, xmm0
mulss xmm3, xmm6
mulss xmm4, dword [edx*8 + 0x49f2d0]
mov edx, edi
addss xmm3, xmm5
movss dword [ebp - 0x20], xmm2
subss xmm5, xmm1
movss dword [ebp - 0x30], xmm2
addss xmm4, xmm0
movss dword [ebp - 0x24], xmm3
mulss xmm5, xmm6
subss xmm4, xmm2
movss dword [ebp - 0x2c], xmm3
addss xmm5, xmm1
movss dword [ebp - 0x50], xmm4
movss dword [ebp - 4], xmm4
subss xmm5, xmm3
movss dword [ebp - 0x4c], xmm5
push dword [ebp - 0x4c]
movss dword [ebp - 0xc], xmm5
push dword [ebp - 0x50]
call fcn.0040d940
mov ecx, dword [ebp - 0x6c]
add esp, 8
mov eax, dword [ebp - 0x30]
xorps xmm2, xmm2
movss xmm3, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
movss xmm0, dword [ecx*8 + 0x49f2d0]
mov eax, dword [ebp - 0x2c]
ucomiss xmm0, xmm2
mov dword [ebp - 0x34], eax
movss dword [ebp - 0x3c], xmm3
lahf
test ah, 0x44
jp 0x40e4f1
movss xmm1, dword [ebp - 0x20]
movaps xmm0, xmm3
subss xmm0, dword [ebp - 4]
subss xmm1, xmm0
movss dword [ebp - 0x20], xmm1
jmp 0x40e4fb
movss xmm0, dword [ebp - 0x38]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ecx*8 + 0x49f2d4]
ucomiss xmm0, xmm2
movss xmm2, dword [ebp - 0x54]
movss dword [ebp - 0x14], xmm2
lahf
test ah, 0x44
jp 0x40e52f
movss xmm1, dword [ebp - 0x24]
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0xc]
subss xmm1, xmm0
movss dword [ebp - 0x24], xmm1
jmp 0x40e539
movss xmm0, dword [ebp - 0x34]
movss dword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp - 0xe]
mov cl, byte [ebp - 0xd]
test edx, edx
je 0x40e2cc
test al, al
jne 0x40e2d6
test cl, cl
je 0x40e574
xor ecx, ecx
cmp byte [ebp - 0xd], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x491374]
call fcn.00408460
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebx + 0xc]
jl 0x40e0e2
xor ecx, ecx
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x78], ecx
jbe 0x40e928
nop
movd xmm0, esi
mov edx, edi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
push ecx
lea ecx, [ebp - 0x68]
call fcn.0040dea0
mov eax, dword [ebp - 0x28]
lea esi, [ebp - 0xc]
mov ecx, dword [edi + 0xbc]
add esp, 8
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc4]
mov edi, 4
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x48cee0]
sub edi, 1
jne 0x40e5d0
mov eax, dword [0x4a5724]
not edx
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x74]
cmp dword [eax + 0x1aa0], edx
jne 0x40e605
mov dword [eax + 0x1aa4], edx
cmp dword [eax + 0x1adc], edx
jne 0x40e614
mov byte [eax + 0x1ae0], 1
push 0x800
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp - 0x68]
call fcn.00428660
mov edx, dword [ebp - 0x40]
add esp, 0xc
cmp byte [ebp - 0xe], 0
je 0x40e646
movss xmm0, dword [edx + 0x1a98]
comiss xmm0, dword [0x491318]
ja 0x40e650
cmp byte [ebp - 0xd], 0
je 0x40e918
mov ecx, dword [ebp - 0x28]
mov eax, ecx
and eax, 1
add eax, 3
cmp byte [ebp - 0xd], 0
mov dword [edx + 0x1e5c], eax
je 0x40e91b
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
movaps xmm6, xmm0
movaps xmm7, xmm0
movss dword [ebp - 0x14], xmm6
movss dword [ebp - 0x1c], xmm7
mov dword [eax], ecx
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x40e7dd
movss xmm1, dword [edx + 0xec]
subss xmm1, dword [edx + 0x1acc]
movss dword [ebp - 0x1c], xmm7
movss dword [ebp - 0x14], xmm6
addss xmm1, dword [0x4913a0]
movss xmm0, dword [ebp - 8]
movss xmm2, dword [0x491494]
movaps xmm3, xmm2
cmp ecx, 1
jne 0x40e8a8
mov eax, dword [ebx + 0x14]
movss xmm4, dword [0x491470]
movss xmm2, dword [eax]
movss xmm5, dword [0x491470]
comiss xmm3, xmm1
ja 0x40e6f5
movaps xmm3, xmm4
minss xmm3, xmm1
comiss xmm2, xmm0
ja 0x40e701
movaps xmm2, xmm5
minss xmm2, xmm0
movss xmm5, dword [edi + 0x10]
lea ecx, [ebp - 0x58]
movss xmm4, dword [edi + 0xc]
subss xmm5, xmm3
movss xmm1, dword [edi + 0x10]
subss xmm4, xmm2
addss xmm1, dword [edi + 0x18]
movss xmm0, dword [edi + 0xc]
mov edx, edi
addss xmm0, dword [edi + 0x14]
mulss xmm5, xmm6
mulss xmm4, xmm7
addss xmm5, xmm3
subss xmm3, xmm1
addss xmm4, xmm2
subss xmm2, xmm0
movss dword [ebp - 0x24], xmm5
mulss xmm3, xmm6
mulss xmm2, xmm7
addss xmm3, xmm1
movss dword [ebp - 0x20], xmm4
movss dword [ebp - 0x50], xmm4
addss xmm2, xmm0
movss dword [ebp - 0x4c], xmm5
subss xmm3, xmm5
subss xmm2, xmm4
movss dword [ebp - 0x2c], xmm3
push dword [ebp - 0x2c]
movss dword [ebp - 0x30], xmm2
push dword [ebp - 0x30]
movss dword [ebp - 0xc], xmm2
movss dword [ebp - 0x44], xmm3
call fcn.0040d940
movss xmm0, dword [ebp - 0x1c]
add esp, 8
mov eax, dword [ebp - 0x50]
xorps xmm2, xmm2
ucomiss xmm0, xmm2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
movss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x3c], xmm0
lahf
test ah, 0x44
jp 0x40e8d7
subss xmm0, dword [ebp - 0xc]
movss xmm1, dword [ebp - 0x20]
subss xmm1, xmm0
movss dword [ebp - 0x20], xmm1
jmp 0x40e8e1
mov edx, dword [ebp - 0x1c]
jmp 0x40e542
cmp ecx, 1
jne 0x40e819
movss xmm7, dword [0x491374]
movaps xmm6, xmm0
movss xmm0, dword [edx + 0xe8]
subss xmm0, dword [edx + 0x1ac8]
movss xmm1, dword [ebp - 4]
movss dword [ebp - 0x1c], xmm7
movss dword [ebp - 0x14], xmm6
addss xmm0, dword [0x4913a0]
jmp 0x40e6be
cmp ecx, 2
jne 0x40e86d
movss xmm1, dword [edx + 0xec]
movaps xmm7, xmm0
subss xmm1, dword [edx + 0x1acc]
mov eax, dword [ebx + 0x14]
movss xmm6, dword [0x491374]
movss xmm2, dword [0x491494]
movss xmm4, dword [0x491470]
addss xmm1, dword [0x4913a0]
movss xmm3, dword [eax + 4]
movss xmm0, dword [ebp - 8]
movss dword [ebp - 0x1c], xmm7
movss dword [ebp - 0x14], xmm6
jmp 0x40e6e1
movss xmm1, dword [ebp - 4]
cmp ecx, 3
jne 0x40e6b9
movaps xmm7, xmm0
movaps xmm6, xmm0
movss xmm0, dword [edx + 0xe8]
subss xmm0, dword [edx + 0x1ac8]
movss dword [ebp - 0x1c], xmm7
movss dword [ebp - 0x14], xmm6
addss xmm0, dword [0x4913a0]
jmp 0x40e6be
test ecx, ecx
jne 0x40e8b9
mov eax, dword [ebx + 0x14]
movss xmm4, dword [eax + 0xc]
jmp 0x40e6e1
movss xmm4, dword [0x491470]
cmp ecx, 3
jne 0x40e6e1
mov eax, dword [ebx + 0x14]
movss xmm5, dword [eax + 8]
jmp 0x40e6e9
movss xmm0, dword [ebp - 0x38]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x14]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x14], xmm0
lahf
test ah, 0x44
jp 0x40e90e
subss xmm0, dword [ebp - 0x44]
movss xmm1, dword [ebp - 0x24]
subss xmm1, xmm0
movss dword [ebp - 0x24], xmm1
jmp 0x40e918
movss xmm0, dword [ebp - 0x34]
movss dword [ebp - 0x24], xmm0
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebp - 0x78]
jl 0x40e590
mov edx, dword [0x4a5724]
xorps xmm7, xmm7
mov esi, dword [ebp - 0x40]
mov eax, dword [edx + 0x1a68]
dec dword [eax + 0xbc]
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], 1
mov eax, dword [esi + 0x1ca8]
test eax, eax
je 0x40eaff
cmp dword [eax + 0x334], edi
jne 0x40eaff
mov eax, dword [esi + 0x1bd0]
movaps xmm2, xmm7
movaps xmm3, xmm7
cmp eax, 3
jne 0x40e9c4
cmp byte [esi + 0x101], 0
je 0x40e9c4
sub esp, 8
lea edx, [eax - 2]
lea ecx, [ebp - 0x94]
mov dword [esp + 4], 0
call fcn.004141a0
mov ecx, eax
add esp, 8
xorps xmm7, xmm7
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 4]
movss xmm3, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
movss xmm2, dword [ebp - 0x34]
mov eax, dword [esi + 0x1bd0]
cmp eax, 4
jne 0x40ea21
xor edx, edx
lea ecx, [eax + 1]
call fcn.004140c0
lea ecx, [edx + 4]
movaps xmm6, xmm0
call fcn.004140c0
lea ecx, [edx + 7]
subss xmm6, xmm0
call fcn.004140c0
lea ecx, [edx + 6]
movaps xmm5, xmm0
call fcn.004140c0
subss xmm5, xmm0
addss xmm6, xmm7
addss xmm5, xmm7
movss dword [ebp - 0x30], xmm6
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
movss xmm3, dword [ebp - 0x38]
movss dword [ebp - 0x2c], xmm5
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
movss xmm2, dword [ebp - 0x34]
ucomiss xmm3, xmm7
lahf
test ah, 0x44
jp 0x40ea37
ucomiss xmm2, xmm7
lahf
test ah, 0x44
jnp 0x40eb06
movss xmm1, dword [esi + 0xa8]
mov ecx, 0x20
minss xmm1, dword [esi + 0xac]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [0x491454]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm1, eax
mov eax, dword [ebx + 0x14]
cvtdq2ps xmm1, xmm1
movss xmm0, dword [eax]
subss xmm0, dword [edi + 0xc]
movaps xmm7, xmm1
mulss xmm1, xmm2
movss xmm2, dword [eax + 4]
subss xmm2, dword [edi + 0x10]
subss xmm0, dword [edi + 0x14]
mulss xmm7, xmm3
subss xmm2, dword [edi + 0x18]
maxss xmm7, xmm0
mov byte [esi + 0x1cbc], 0
mov byte [esi + 0x1bf3], 1
maxss xmm1, xmm2
movss dword [ebp - 0x48], xmm1
movss xmm1, dword [0x491374]
call fcn.00408460
mov ecx, dword [ebp - 0x7c]
mov edx, edi
mov dword [ecx], eax
lea ecx, [ebp - 0x58]
movss xmm0, dword [edi + 0x20]
addss xmm0, dword [ebp - 0x48]
addss xmm7, dword [edi + 0x1c]
movss dword [ebp - 0x2c], xmm0
push dword [ebp - 0x2c]
movss dword [ebp - 0x30], xmm7
push dword [ebp - 0x30]
call fcn.0040d940
add esp, 8
xorps xmm7, xmm7
movss xmm0, dword [eax]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [eax + 4]
jmp 0x40eb0b
movss xmm0, dword [ebp - 0x14]
jmp 0x40eb11
movss xmm0, dword [ebp - 0x14]
mov edx, dword [0x4a5724]
movss xmm1, dword [ebp - 0x3c]
movss xmm2, dword [0x491470]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x40eb4c
test dword [edi + 8], 0x100
movss dword [edi + 0x1c], xmm1
movss dword [edi + 0x20], xmm0
jne 0x40eb4c
comiss xmm7, dword [edx + 0x2e6c]
jb 0x40eb4c
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x2e6c], eax
movss xmm0, dword [ebp - 0x20]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x40eba2
test dword [edi + 8], 0x100
cvttss2si eax, xmm0
movd xmm0, eax
cvttss2si eax, dword [ebp - 0x24]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x30], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x30]
cvtdq2ps xmm0, xmm0
mov dword [edi + 0xc], eax
movss dword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x10], eax
jne 0x40eba2
comiss xmm7, dword [edx + 0x2e6c]
jb 0x40eba2
mov ecx, dword [edx + 0x1c]
mov dword [edx + 0x2e6c], ecx
mov ecx, dword [edi + 0x1c]
mov al, byte [ebp - 0x15]
mov dword [edi + 0x14], ecx
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x18], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret