Function at 0x40f4a0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [0x653a14]
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], al
call fcn.0040a7c0
mov esi, eax
test esi, esi
je 0x40f4cf
mov dword [ebp + 0x495c], 0
xor ecx, ecx
jmp 0x40f4d5
mov ecx, dword [ebp + 0x495c]
cmp dword [ebp + 0x4960], 0
je 0x40f51e
test ecx, ecx
jne 0x40f51e
movss xmm0, dword [ebp + 0x18]
mulss xmm0, dword [0x5eeb28]
movss xmm1, dword [ebp + 0x496c]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, dword [ebp + 0x4984]
maxss xmm1, xmm0
movss dword [ebp + 0x496c], xmm1
jb 0x40f51e
comiss xmm0, xmm1
jb 0x40f51e
mov dword [ebp + 0x4960], ecx
push ebx
or ebx, 0xffffffff
mov edx, 0x5ee8dd
mov al, 0x23
or edi, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x40f53e
cmp byte [edx], al
jne 0x40f53e
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x5ed380]
test al, al
jne 0x40f530
mov eax, dword [ebp + 8]
not ebx
test al, 2
je 0x40f56b
test byte [ebp + 0xc], 1
mov byte [esp + 0x15], 1
jne 0x40f570
mov byte [esp + 0x15], 0
and eax, 0xffffff01
mov dword [esp + 0x20], eax
test esi, esi
jne 0x40f5a1
mov eax, dword [ebp + 0x4954]
test eax, eax
je 0x40f5a1
push 0x1001
push ebx
push eax
call fcn.004149d0
add esp, 0xc
test al, al
je 0x40f5a1
mov byte [esp + 0x13], 1
jmp 0x40f5aa
mov byte [esp + 0x13], 0
test esi, esi
jne 0x40f5ce
mov eax, dword [ebp + 0x4958]
test eax, eax
je 0x40f5ce
push 0x1001
push ebx
push eax
call fcn.004149d0
add esp, 0xc
test al, al
je 0x40f5ce
mov byte [esp + 0x14], 1
jmp 0x40f5d7
mov byte [esp + 0x14], 0
test esi, esi
jne 0x40f60f
cmp byte [esp + 0x15], 0
je 0x40f60f
cmp dword [ebp + 0x495c], 0
jne 0x40f60f
push 0
push 0
push 0x26b
call fcn.0040b840
add esp, 0xc
test al, al
je 0x40f60f
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x14]
mov byte [esp + 0x15], 1
mov dl, byte [esp + 0x15]
jmp 0x40f635
xor dl, dl
mov byte [esp + 0x15], dl
test esi, esi
jne 0x40f641
mov cl, byte [esp + 0x14]
mov al, byte [esp + 0x13]
mov byte [esp + 0x15], dl
mov byte [esp + 0x14], cl
mov byte [esp + 0x13], al
cmp dword [ebp + 0x495c], esi
jne 0x40f641
test al, al
jne 0x40f63d
test cl, cl
je 0x40f641
mov al, 1
jmp 0x40f643
xor al, al
mov byte [esp + 0x17], al
test dl, dl
jne 0x40f653
test al, al
je 0x40f710
mov eax, dword [ebp + 0x47f0]
test eax, eax
jne 0x40f680
mov eax, dword [ebp + 0x3e24]
push 0xffffffffffffffff
dec eax
push reloc.XAudio2_9.dll_Ordinal_1
push eax
call fcn.00409960
add esp, 0xc
test eax, eax
je 0x40f710
mov dl, byte [esp + 0x15]
mov eax, dword [eax + 0x300]
mov dword [ebp + 0x4960], eax
mov dword [ebp + 0x495c], eax
movzx eax, byte [esp + 0x17]
xor eax, 1
mov dword [ebp + 0x496c], 0
add eax, 2
mov dword [ebp + 0x4968], 0
cmp byte [esp + 0x13], 0
mov dword [ebp + 0x497c], 0
mov dword [ebp + 0x4980], 0
mov dword [ebp + 0x4974], 0
mov dword [ebp + 0x4978], 0
mov byte [ebp + 0x4970], dl
mov dword [ebp + 0x4820], eax
jne 0x40f6f3
cmp byte [esp + 0x14], 0
je 0x40f710
mov eax, dword [ebp + 0x4958]
or eax, dword [ebp + 0x4954]
push 0
and eax, 0xf800
push ebx
push eax
call fcn.00414380
add esp, 0xc
movss xmm0, dword [ebp + 0x18]
addss xmm0, dword [ebp + 0x4968]
mov esi, dword [ebp + 0x495c]
movss xmm1, dword [0x5eeabc]
movss xmm3, dword [0x5eeaac]
movss xmm2, dword [0x5eeaf4]
movss dword [ebp + 0x4968], xmm0
test esi, esi
je 0x40f909
cmp dword [ebp + 0x4820], 3
jne 0x40f819
subss xmm0, xmm1
xorps xmm1, xmm1
divss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x40f76d
xorps xmm2, xmm2
jmp 0x40f771
minss xmm2, xmm0
movss xmm0, dword [ebp + 0x496c]
maxss xmm0, xmm2
push 1
push 0
push 0x273
movss dword [esp + 0x28], xmm0
movss dword [ebp + 0x496c], xmm0
call fcn.0040b840
push 1
push 0
push 0x274
mov bl, al
call fcn.0040b840
movzx ecx, al
add esp, 0x18
movzx eax, bl
sub eax, ecx
je 0x40f7dc
push eax
call fcn.0040fd40
movss xmm2, dword [0x5eeaf4]
add esp, 4
mov esi, dword [ebp + 0x495c]
movaps xmm0, xmm2
mov dword [ebp + 0x496c], 0x3f800000
jmp 0x40f7ea
movss xmm2, dword [0x5eeaf4]
movss xmm0, dword [esp + 0x1c]
mov eax, dword [0x653a14]
cmp byte [eax + 0x3490], 0
je 0x40f86a
cmp byte [eax + 0x43f4], 0
jne 0x40f86a
movss xmm1, dword [0x5eeabc]
movss xmm3, dword [0x5eeaac]
test esi, esi
je 0x40f909
cmp dword [ebp + 0x4820], 2
jne 0x40f909
movss xmm0, dword [ebp + 0x4968]
mov edx, 0xf800
mov eax, dword [ebp + 0x4954]
subss xmm0, xmm1
test eax, eax
mov ecx, edx
xorps xmm1, xmm1
cmovne ecx, eax
mov eax, dword [ebp + 0x4958]
test eax, eax
divss xmm0, xmm3
cmovne edx, eax
and edx, ecx
mov ecx, edx
and ecx, 0xf800
comiss xmm1, xmm0
jbe 0x40f8b0
xorps xmm2, xmm2
jmp 0x40f8b4
comiss xmm2, xmm0
seta al
and byte [ebp + 0x4970], al
je 0x40f896
cmp dword [ebp + 0x47f0], 0
je 0x40f8a0
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x16], 1
mov dword [ebp + 0x495c], 0
jmp 0x40f90b
mov eax, dword [ebp + 0x495c]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x495c], 0
jmp 0x40f90b
minss xmm2, xmm0
movss xmm0, dword [ebp + 0x496c]
mov al, byte [esp + 0x13]
maxss xmm0, xmm2
movss dword [ebp + 0x496c], xmm0
test al, al
jne 0x40f8ef
cmp byte [esp + 0x14], al
jne 0x40f8ef
mov eax, dword [ebp + 0xddc]
and eax, edx
and eax, 0xf800
cmp eax, ecx
je 0x40f905
mov ebx, dword [ebp + 0x495c]
jmp 0x40f90e
movzx eax, al
xor eax, 1
lea eax, [eax*2 - 1]
push eax
call fcn.0040fd40
add esp, 4
xor ebx, ebx
jmp 0x40f90e
xor ebx, ebx
xorps xmm1, xmm1
cmp byte [esp + 0x20], 0
je 0x40f954
mov ecx, dword [0x653a14]
cmp byte [ecx + 0x3680], 0
je 0x40f954
movss xmm0, dword [ecx + 0x3684]
comiss xmm1, xmm0
ja 0x40f954
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x40f954
cmp dword [ecx + 0x4560], 0xffffffff
jne 0x40f954
mov byte [ebp + 0x4970], 1
mov dword [ebp + 0x4820], 2
cmp byte [ebp + 0x4970], 0
je 0x40fa79
cmp dword [ebp + 0x4820], 2
jne 0x40fa79
cmp dword [ebp + 0x3778], 0
jg 0x40f9a0
cmp byte [ebp + 0xdd8], 0
jne 0x40f9a0
cmp byte [ebp + 0xdd9], 0
jne 0x40f9a0
cmp byte [ebp + 0xddb], 0
jne 0x40f9a0
mov eax, dword [0x653a14]
cmp dword [eax + 0x4560], 0xffffffff
je 0x40f9a7
mov byte [ebp + 0x4970], 0
mov eax, dword [0x653a14]
comiss xmm1, dword [eax + 0x3688]
ja 0x40fa5b
cmp byte [eax + 0x3680], 0
jne 0x40fa5b
cmp byte [eax + 0x4568], 0
jne 0x40fa72
cmp byte [ebp + 0x4970], 0
je 0x40fa5b
cmp dword [ebp + 0x3eac], 0
je 0x40f9ee
cmp byte [ebp + 0x3eb9], 0
je 0x40fa5b
lea eax, [ebp + 0x36a4]
test eax, eax
jne 0x40fa02
mov eax, dword [0x653a14]
add eax, 0xdbc
movss xmm0, dword [eax]
movss xmm1, dword [0x5eeb60]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x40fa21
comiss xmm2, xmm1
jb 0x40fa21
mov cl, 1
jmp 0x40fa23
xor cl, cl
lea eax, [ebp + 0xdbc]
test eax, eax
jne 0x40fa37
mov eax, dword [0x653a14]
add eax, 0xdbc
movss xmm0, dword [eax]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x40fa4e
comiss xmm2, xmm1
jb 0x40fa4e
mov al, 1
jmp 0x40fa50
xor al, al
cmp al, cl
jne 0x40fa5b
mov byte [esp + 0x16], 1
jmp 0x40fa72
mov eax, dword [0x653a14]
cmp byte [eax + 0x3680], 0
je 0x40fa72
cmp byte [eax + 0x4568], 0
je 0x40fa79
mov byte [ebp + 0x4970], 0
mov eax, dword [ebp + 0x495c]
test eax, eax
je 0x40fbe8
test byte [eax + 0xc], 4
jne 0x40fbe8
mov eax, dword [ebp + 0x4820]
cmp eax, 2
jne 0x40fabf
cmp byte [ebp + 0xdd9], 0
jne 0x40fbe8
push 0x204
push 0x203
push 0x202
push 0x201
jmp 0x40fadc
cmp eax, 3
jne 0x40fbe8
push 0x27c
push 0x27b
push 0x27a
push 0x279
lea eax, [esp + 0x30]
push eax
call fcn.0040a2e0
add esp, 0x14
xorps xmm2, xmm2
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
ucomiss xmm4, xmm2
lahf
test ah, 0x44
jp 0x40fb0b
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jnp 0x40fbe8
movss xmm1, dword [ebp + 0x3c]
minss xmm1, dword [ebp + 0x40]
movss xmm0, dword [ebp + 0x18]
mulss xmm0, dword [0x5eeb50]
mov byte [ebp + 0x482b], 1
mulss xmm1, xmm0
mulss xmm4, xmm1
mulss xmm3, xmm1
addss xmm4, dword [ebp + 0x4974]
addss xmm3, dword [ebp + 0x4978]
cvttss2si esi, xmm4
cvttss2si edi, xmm3
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movd xmm1, edi
ucomiss xmm0, xmm2
movss dword [ebp + 0x4974], xmm4
movss dword [ebp + 0x4978], xmm3
lahf
cvtdq2ps xmm1, xmm1
test ah, 0x44
jp 0x40fb7d
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x40fbe8
mov eax, dword [ebp + 0x495c]
lea ecx, [esp + 0x20]
push 1
push ecx
mov eax, dword [eax + 0x300]
push eax
addss xmm0, dword [eax + 0x14]
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm1
addss xmm0, dword [eax + 0x18]
movss dword [esp + 0x30], xmm0
call fcn.00414780
movss xmm0, dword [ebp + 0x4974]
add esp, 0xc
movd xmm1, esi
cvtdq2ps xmm1, xmm1
subss xmm0, xmm1
movd xmm1, edi
cvtdq2ps xmm1, xmm1
movss dword [ebp + 0x4974], xmm0
movss xmm0, dword [ebp + 0x4978]
subss xmm0, xmm1
movss dword [ebp + 0x4978], xmm0
test ebx, ebx
je 0x40fc67
mov eax, dword [ebp + 0x47f0]
test eax, eax
je 0x40fbfe
cmp ebx, dword [eax + 0x300]
je 0x40fc5d
push 0
push 0
call fcn.00413fc0
mov eax, dword [0x653a14]
push 0
push ebx
mov word [eax + 0x4829], 1
mov byte [eax + 0x482b], 1
call fcn.00407bb0
push 1
push ebx
call fcn.00409c40
mov esi, dword [ebp + 0x47f0]
add esp, 0x18
cmp dword [esi + 0x314], 0
jne 0x40fc49
push 0
push esi
call fcn.0040cab0
add esp, 8
cmp word [esi + 0x14e], 2
jne 0x40fc5d
mov dword [ebp + 0x4824], 1
mov dword [ebp + 0x495c], 0
cmp byte [esp + 0x16], 0
pop ebx
je 0x40fd36
cmp dword [ebp + 0x47f0], 0
je 0x40fd36
push 0
push 0
call fcn.00413fc0
mov esi, dword [ebp + 0x47f0]
add esp, 8
cmp dword [esi + 0x2f8], 0
lea ecx, [esi + 0x2f8]
je 0x40fcca
test byte [esi + 0x14c], 2
jne 0x40fcca
mov eax, dword [esi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x40fcca
mov esi, dword [ecx]
cmp dword [esi + 0x2f8], 0
lea ecx, [esi + 0x2f8]
jne 0x40fca1
mov edi, dword [ebp + 0x47f0]
cmp esi, edi
je 0x40fce5
push 0
push esi
call fcn.00409c40
add esp, 8
mov dword [esi + 0x310], edi
mov ecx, dword [ebp + 0x47f0]
test byte [ecx + 0x14c], 2
je 0x40fcff
mov eax, dword [ebp + 0x4824]
xor eax, 1
jmp 0x40fd01
xor eax, eax
cmp eax, dword [ebp + 0x4824]
je 0x40fd36
cmp eax, 1
jne 0x40fd18
mov dword [ecx + 0x318], 0
push eax
call fcn.0040d630
mov eax, dword [0x653a14]
add esp, 4
mov word [eax + 0x4829], 1
mov byte [eax + 0x482b], 1
pop edi
pop esi
pop ebp
add esp, 0x18
ret