Function at 0x416990
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x457718]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], ebx
mov edx, dword [ebx + 0x47a0]
sub edx, 1
mov dword [ebp - 0x18], edi
mov byte [ebp - 8], 0
js 0x4169e0
mov eax, dword [ebx + 0x47a8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov edi, dword [eax]
test edi, edi
je 0x4169d8
test dword [edi + 0xc], 0x8000000
jne 0x416ab4
sub eax, 0x28
sub edx, 1
jns 0x4169c5
lea eax, [ebx + 0x491c]
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
cmp dword [ebx + 0x4920], 0
je 0x416a36
test eax, eax
jne 0x416a36
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x453850]
movss xmm1, dword [ebx + 0x492c]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, dword [ebx + 0x4944]
maxss xmm1, xmm0
movss dword [ebx + 0x492c], xmm1
jb 0x416a36
comiss xmm0, xmm1
jb 0x416a36
mov dword [ebx + 0x4920], eax
or edx, 0xffffffff
mov al, 0x23
mov esi, 0x44e0e5
or ebx, 0xffffffff
cmp al, 0x23
jne 0x416a51
cmp byte [esi], al
jne 0x416a51
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x44e518]
test al, al
jne 0x416a43
mov ebx, dword [ebp - 0x10]
not edx
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 8]
test al, 2
je 0x416a83
test byte [ebx + 0xc], 1
mov byte [ebp - 3], 1
jne 0x416a87
mov byte [ebp - 3], 0
and eax, 0xffffff01
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x416aca
mov ecx, dword [ebx + 0x4914]
test ecx, ecx
je 0x416aca
push 0x1001
call fcn.00411580
add esp, 4
test al, al
je 0x416aca
mov byte [ebp - 1], 1
jmp 0x416ad2
lea eax, [ebx + 0x491c]
mov dword [eax], 0
mov dword [ebp - 0xc], eax
xor eax, eax
jmp 0x4169ed
mov byte [ebp - 1], 0
test edi, edi
jne 0x416af8
mov ecx, dword [ebx + 0x4918]
mov esi, dword [ebp - 0x14]
test ecx, ecx
je 0x416afb
push 0x1001
mov edx, esi
call fcn.00411580
add esp, 4
test al, al
je 0x416afb
mov byte [ebp - 2], 1
jmp 0x416b03
mov esi, dword [ebp - 0x14]
mov byte [ebp - 2], 0
test edi, edi
jne 0x416b36
cmp byte [ebp - 3], 0
je 0x416b36
cmp dword [ebx + 0x491c], 0
jne 0x416b36
push 0
xor edx, edx
mov ecx, 0x26b
call fcn.0040fb20
add esp, 4
test al, al
je 0x416b36
mov al, byte [ebp - 1]
mov cl, byte [ebp - 2]
mov byte [ebp - 3], 1
mov dl, byte [ebp - 3]
jmp 0x416b56
xor dl, dl
mov byte [ebp - 3], dl
test edi, edi
jne 0x416b62
mov cl, byte [ebp - 2]
mov al, byte [ebp - 1]
mov byte [ebp - 3], dl
mov byte [ebp - 2], cl
mov byte [ebp - 1], al
cmp dword [ebx + 0x491c], edi
jne 0x416b62
test al, al
jne 0x416b5e
test cl, cl
je 0x416b62
mov al, 1
jmp 0x416b64
xor al, al
mov byte [ebp - 4], al
test dl, dl
jne 0x416b73
test al, al
je 0x416cb5
mov eax, dword [ebx + 0x47c8]
test eax, eax
jne 0x416b9e
mov ecx, dword [ebx + 0x3e0c]
mov edx, 0x80000001
push 0xffffffffffffffff
dec ecx
call fcn.00416880
add esp, 4
test eax, eax
je 0x416cb5
mov dl, byte [ebp - 3]
mov eax, dword [eax + 0x300]
mov dword [ebx + 0x4920], eax
mov dword [ebx + 0x491c], eax
movzx eax, byte [ebp - 4]
xor eax, 1
mov dword [ebx + 0x492c], 0
add eax, 2
mov dword [ebx + 0x4928], 0
cmp byte [ebp - 1], 0
mov dword [ebx + 0x493c], 0
mov dword [ebx + 0x4940], 0
mov dword [ebx + 0x4934], 0
mov dword [ebx + 0x4938], 0
mov byte [ebx + 0x4930], dl
mov dword [ebx + 0x47f8], eax
jne 0x416c12
cmp byte [ebp - 2], 0
je 0x416cb5
mov edi, dword [ebx + 0x4918]
or edi, dword [ebx + 0x4914]
mov ecx, dword [0x457718]
test edi, 0x1000
je 0x416c41
mov edx, 0x1000
call fcn.00402900
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x2000
je 0x416c5e
mov edx, 0x2000
call fcn.00402900
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x4000
je 0x416c7b
mov edx, 0x4000
call fcn.00402900
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x8000
je 0x416c98
mov edx, 0x8000
call fcn.00402900
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x800
je 0x416cb5
mov edx, 0x800
call fcn.00402900
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
movss xmm0, dword [ebx + 0x4928]
lea esi, [ebx + 0x491c]
addss xmm0, dword [ebx + 0x18]
mov eax, dword [esi]
mov edi, eax
movss xmm7, dword [0x453798]
movss xmm1, dword [0x453784]
movss xmm5, dword [0x4537f0]
movss dword [ebx + 0x4928], xmm0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416dab
cmp dword [ebx + 0x47f8], 3
jne 0x416db3
subss xmm0, xmm7
movss xmm6, dword [ebx + 0x492c]
divss xmm0, xmm1
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x416d23
movaps xmm1, xmm5
minss xmm1, xmm0
maxss xmm6, xmm1
xor edx, edx
push 1
mov ecx, 0x273
movss dword [ebx + 0x492c], xmm6
call fcn.0040fb20
add esp, 4
xor edx, edx
mov ecx, 0x274
mov bl, al
push 1
call fcn.0040fb20
movzx ecx, al
add esp, 4
movzx eax, bl
sub eax, ecx
je 0x416d7b
mov ecx, eax
call fcn.004168f0
mov ebx, dword [ebp - 0x10]
movaps xmm6, xmm5
mov edi, dword [esi]
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x492c], 0x3f800000
jmp 0x416d7e
mov ebx, dword [ebp - 0x10]
mov ecx, dword [0x457718]
mov edx, 0x26b
call fcn.0040f510
cmp byte [eax], 0
je 0x416e07
mov edx, 0x26b
call fcn.00402900
cmp byte [eax + 8], 0
jne 0x416e07
movss xmm1, dword [0x453784]
test edi, edi
je 0x416e33
cmp dword [ebx + 0x47f8], 2
xorps xmm6, xmm6
jne 0x416e36
movss xmm0, dword [ebx + 0x4928]
mov edx, 0xf800
mov eax, dword [ebx + 0x4914]
subss xmm0, xmm7
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, dword [ebx + 0x4918]
test eax, eax
divss xmm0, xmm1
cmovne edx, eax
and edx, ecx
mov ecx, edx
and ecx, 0xf800
comiss xmm6, xmm0
jbe 0x416ec5
xorps xmm5, xmm5
jmp 0x416ec9
comiss xmm5, xmm6
seta al
and byte [ebx + 0x4930], al
je 0x416e24
cmp dword [ebx + 0x47c8], 0
je 0x416e2d
mov byte [ebp - 8], 1
jmp 0x416e2d
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], esi
mov dword [esi], 0
xorps xmm6, xmm6
cmp byte [ebp - 0x1c], 0
je 0x416e63
push 0
or edx, 0xffffffff
mov ecx, 0x4000
call fcn.0040fb20
add esp, 4
test al, al
je 0x416e63
mov byte [ebx + 0x4930], 1
mov dword [ebx + 0x47f8], 2
cmp byte [ebx + 0x4930], 0
mov edi, 1
je 0x417012
cmp dword [ebx + 0x47f8], 2
jne 0x417012
cmp dword [ebx + 0x3778], 0
jg 0x416f1d
cmp byte [ebx + 0xddc], 0
jne 0x416f1d
cmp byte [ebx + 0xddd], 0
jne 0x416f1d
cmp byte [ebx + 0xddf], 0
mov ecx, dword [0x457718]
jne 0x416f23
mov edx, 0x4000
call fcn.00402900
cmp dword [eax], 0xffffffff
je 0x416f2a
jmp 0x416f23
minss xmm5, xmm0
movss xmm0, dword [ebx + 0x492c]
mov al, byte [ebp - 1]
maxss xmm0, xmm5
movss dword [ebx + 0x492c], xmm0
test al, al
jne 0x416f06
cmp byte [ebp - 2], al
jne 0x416f06
mov eax, dword [ebx + 0xde0]
and eax, edx
and eax, 0xf800
cmp eax, ecx
je 0x416e36
mov dword [ebp - 0x18], edi
jmp 0x416e36
movzx ecx, al
xor ecx, 1
lea ecx, [ecx*2 - 1]
call fcn.004168f0
jmp 0x416e36
mov ecx, dword [0x457718]
mov byte [ebx + 0x4930], 0
mov edx, 0x4000
call fcn.0040f510
comiss xmm6, dword [eax + 8]
ja 0x416fea
cmp byte [eax], 0
jne 0x416fea
mov edx, 0x4000
call fcn.00402900
cmp byte [eax + 8], 0
jne 0x416fea
cmp byte [ebx + 0x4930], 0
je 0x416fea
cmp dword [ebx + 0x3e94], 0
je 0x416f7a
cmp byte [ebx + 0x3ea1], 0
je 0x416fea
lea eax, [ebx + 0x36a8]
test eax, eax
jne 0x416f8a
lea eax, [ecx + 0xdc0]
movss xmm0, dword [eax]
movss xmm1, dword [0x4538e8]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x416fa9
comiss xmm2, xmm1
jb 0x416fa9
mov dl, 1
jmp 0x416fab
xor dl, dl
lea eax, [ebx + 0xdc0]
test eax, eax
jne 0x416fbb
lea eax, [ecx + 0xdc0]
movss xmm0, dword [eax]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x416fd2
comiss xmm2, xmm1
jb 0x416fd2
mov al, 1
jmp 0x416fd4
xor al, al
mov ebx, dword [ebp - 8]
cmp al, dl
movzx ebx, bl
mov eax, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x10]
cmove eax, edi
mov dword [ebp - 8], eax
mov edx, 0x4000
call fcn.0040f510
cmp byte [eax], 0
je 0x417009
mov edx, 0x4000
call fcn.00402900
cmp byte [eax + 8], 0
je 0x417018
mov byte [ebx + 0x4930], 0
jmp 0x417018
mov ecx, dword [0x457718]
mov eax, dword [esi]
test eax, eax
je 0x41719d
test byte [eax + 0xc], 4
jne 0x41719d
mov eax, dword [ebx + 0x47f8]
cmp eax, 2
jne 0x41706d
cmp byte [ebx + 0xddd], 0
jne 0x41719d
mov edx, 0x203
call fcn.0040f510
mov edx, 0x201
mov edi, eax
call fcn.0040f510
mov edx, 0x202
mov esi, eax
call fcn.0040f510
mov edx, 0x204
jmp 0x41709d
cmp eax, 3
jne 0x41719d
mov edx, 0x27b
call fcn.0040f510
mov edx, 0x279
mov edi, eax
call fcn.0040f510
mov edx, 0x27a
mov esi, eax
call fcn.0040f510
mov edx, 0x27c
movss xmm2, dword [eax + 0xc]
subss xmm2, dword [esi + 0xc]
call fcn.0040f510
ucomiss xmm2, xmm6
movss xmm3, dword [eax + 0xc]
subss xmm3, dword [edi + 0xc]
lahf
test ah, 0x44
jp 0x4170cc
ucomiss xmm3, xmm6
lahf
test ah, 0x44
jnp 0x41719a
movss xmm1, dword [ebx + 0x58]
movss xmm0, dword [ebx + 0x18]
minss xmm1, dword [ebx + 0x5c]
mulss xmm0, dword [0x453898]
mov byte [ebx + 0x4803], 1
mulss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [ebx + 0x4934]
addss xmm3, dword [ebx + 0x4938]
cvttss2si eax, xmm2
movss dword [ebx + 0x4934], xmm2
movss dword [ebx + 0x4938], xmm3
movd xmm5, eax
cvtdq2ps xmm5, xmm5
cvttss2si eax, xmm3
ucomiss xmm5, xmm6
movd xmm4, eax
cvtdq2ps xmm4, xmm4
lahf
test ah, 0x44
jp 0x41713e
ucomiss xmm4, xmm6
lahf
test ah, 0x44
jnp 0x41719a
mov esi, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
movaps xmm0, xmm5
push 1
mov eax, dword [esi]
mov ecx, dword [eax + 0x300]
addss xmm0, dword [ecx + 0x14]
movss dword [ebp - 0x20], xmm0
movaps xmm0, xmm4
addss xmm0, dword [ecx + 0x18]
movss dword [ebp - 0x1c], xmm0
call fcn.0040f100
movss xmm0, dword [ebx + 0x4934]
add esp, 4
subss xmm0, xmm5
movss dword [ebx + 0x4934], xmm0
movss xmm0, dword [ebx + 0x4938]
subss xmm0, xmm4
movss dword [ebx + 0x4938], xmm0
jmp 0x41719d
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x41721b
mov eax, dword [ebx + 0x47c8]
test eax, eax
je 0x4171b6
cmp edi, dword [eax + 0x300]
je 0x417215
xor edx, edx
xor ecx, ecx
call fcn.004066b0
mov eax, dword [0x457718]
xor dl, dl
mov ecx, edi
mov word [eax + 0x4801], 1
mov byte [eax + 0x4803], 1
call fcn.004128f0
mov edx, 1
mov ecx, edi
call fcn.0040ea80
mov edi, dword [ebx + 0x47c8]
cmp dword [edi + 0x314], 0
jne 0x417201
xor dl, dl
mov ecx, edi
call fcn.004144a0
cmp word [edi + 0x14e], 2
jne 0x417215
mov dword [ebx + 0x47fc], 1
mov dword [esi], 0
cmp byte [ebp - 8], 0
je 0x4172db
cmp dword [ebx + 0x47c8], 0
je 0x4172db
xor edx, edx
xor ecx, ecx
call fcn.004066b0
mov edi, dword [ebx + 0x47c8]
mov esi, edi
cmp dword [esi + 0x2f8], 0
lea ecx, [esi + 0x2f8]
je 0x41728e
test byte [esi + 0x14c], 2
jne 0x41727b
mov eax, dword [esi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x41727b
mov esi, dword [ecx]
cmp dword [esi + 0x2f8], 0
lea ecx, [esi + 0x2f8]
jne 0x417252
cmp esi, edi
je 0x41728e
xor edx, edx
mov ecx, esi
call fcn.0040ea80
mov dword [esi + 0x310], edi
mov eax, dword [ebx + 0x47c8]
test byte [eax + 0x14c], 2
je 0x4172a8
mov ecx, dword [ebx + 0x47fc]
xor ecx, 1
jmp 0x4172aa
xor ecx, ecx
cmp ecx, dword [ebx + 0x47fc]
je 0x4172db
cmp ecx, 1
jne 0x4172c1
mov dword [eax + 0x318], 0
call fcn.00414400
mov eax, dword [0x457718]
mov word [eax + 0x4801], 1
mov byte [eax + 0x4803], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret