Function at 0x4128a0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [0x439050]
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], al
call fcn.0040dd10
mov esi, eax
test esi, esi
je 0x4128cf
mov dword [ebp + 0x495c], 0
xor ecx, ecx
jmp 0x4128d5
mov ecx, dword [ebp + 0x495c]
cmp dword [ebp + 0x4960], 0
je 0x41291e
test ecx, ecx
jne 0x41291e
movss xmm0, dword [ebp + 0x18]
mulss xmm0, dword [0x432fe0]
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 0x41291e
comiss xmm0, xmm1
jb 0x41291e
mov dword [ebp + 0x4960], ecx
push ebx
or ebx, 0xffffffff
mov al, 0x23
mov edx, 0x432dc5
or edi, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x41293e
cmp byte [edx], al
jne 0x41293e
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 + 0x431878]
test al, al
jne 0x412930
mov eax, dword [ebp + 8]
not ebx
test al, 2
je 0x41296b
test byte [ebp + 0xc], 1
mov byte [esp + 0x15], 1
jne 0x412970
mov byte [esp + 0x15], 0
and eax, 0xffffff01
mov dword [esp + 0x20], eax
test esi, esi
jne 0x4129a1
mov eax, dword [ebp + 0x4954]
test eax, eax
je 0x4129a1
push 0x1001
push ebx
push eax
call fcn.00417e30
add esp, 0xc
test al, al
je 0x4129a1
mov byte [esp + 0x13], 1
jmp 0x4129aa
mov byte [esp + 0x13], 0
test esi, esi
jne 0x4129ce
mov eax, dword [ebp + 0x4958]
test eax, eax
je 0x4129ce
push 0x1001
push ebx
push eax
call fcn.00417e30
add esp, 0xc
test al, al
je 0x4129ce
mov byte [esp + 0x14], 1
jmp 0x4129d7
mov byte [esp + 0x14], 0
test esi, esi
jne 0x412a0f
cmp byte [esp + 0x15], 0
je 0x412a0f
cmp dword [ebp + 0x495c], 0
jne 0x412a0f
push 0
push 0
push 0x26b
call fcn.0040ec30
add esp, 0xc
test al, al
je 0x412a0f
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x14]
mov byte [esp + 0x15], 1
mov dl, byte [esp + 0x15]
jmp 0x412a35
xor dl, dl
mov byte [esp + 0x15], dl
test esi, esi
jne 0x412a41
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 0x412a41
test al, al
jne 0x412a3d
test cl, cl
je 0x412a41
mov al, 1
jmp 0x412a43
xor al, al
mov byte [esp + 0x17], al
test dl, dl
jne 0x412a53
test al, al
je 0x412b10
mov eax, dword [ebp + 0x47f0]
test eax, eax
jne 0x412a80
mov eax, dword [ebp + 0x3e24]
push 0xffffffffffffffff
dec eax
push 0x80000001
push eax
call fcn.0040ceb0
add esp, 0xc
test eax, eax
je 0x412b10
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 0x412af3
cmp byte [esp + 0x14], 0
je 0x412b10
mov eax, dword [ebp + 0x4958]
or eax, dword [ebp + 0x4954]
push 0
and eax, 0xf800
push ebx
push eax
call fcn.00417750
add esp, 0xc
movss xmm0, dword [ebp + 0x18]
addss xmm0, dword [ebp + 0x4968]
mov esi, dword [ebp + 0x495c]
movss xmm1, dword [0x432f88]
movss xmm4, dword [0x432f80]
movss xmm2, dword [0x431830]
movss dword [ebp + 0x4968], xmm0
test esi, esi
je 0x412d09
cmp dword [ebp + 0x4820], 3
jne 0x412c19
subss xmm0, xmm1
movss xmm3, dword [ebp + 0x496c]
xorps xmm1, xmm1
divss xmm0, xmm4
comiss xmm1, xmm0
jbe 0x412b75
xorps xmm2, xmm2
jmp 0x412b79
minss xmm2, xmm0
maxss xmm3, xmm2
push 1
push 0
push 0x273
movss dword [esp + 0x28], xmm3
movss dword [ebp + 0x496c], xmm3
call fcn.0040ec30
push 1
push 0
push 0x274
mov bl, al
call fcn.0040ec30
movzx ecx, al
add esp, 0x18
movzx eax, bl
sub eax, ecx
je 0x412bdc
push eax
call fcn.00413140
movss xmm2, dword [0x431830]
add esp, 4
mov esi, dword [ebp + 0x495c]
movaps xmm0, xmm2
mov dword [ebp + 0x496c], 0x3f800000
jmp 0x412bea
movss xmm2, dword [0x431830]
movss xmm0, dword [esp + 0x1c]
mov eax, dword [0x439050]
cmp byte [eax + 0x3490], 0
je 0x412c6a
cmp byte [eax + 0x43f4], 0
jne 0x412c6a
movss xmm1, dword [0x432f88]
movss xmm4, dword [0x432f80]
test esi, esi
je 0x412d09
cmp dword [ebp + 0x4820], 2
jne 0x412d09
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, xmm4
cmovne edx, eax
and edx, ecx
mov ecx, edx
and ecx, 0xf800
comiss xmm1, xmm0
jbe 0x412cb0
xorps xmm2, xmm2
jmp 0x412cb4
comiss xmm2, xmm0
seta al
and byte [ebp + 0x4970], al
je 0x412c96
cmp dword [ebp + 0x47f0], 0
je 0x412ca0
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x16], 1
mov dword [ebp + 0x495c], 0
jmp 0x412d0b
mov eax, dword [ebp + 0x495c]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x495c], 0
jmp 0x412d0b
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 0x412cef
cmp byte [esp + 0x14], al
jne 0x412cef
mov eax, dword [ebp + 0xddc]
and eax, edx
and eax, 0xf800
cmp eax, ecx
je 0x412d05
mov ebx, dword [ebp + 0x495c]
jmp 0x412d0e
movzx eax, al
xor eax, 1
lea eax, [eax*2 - 1]
push eax
call fcn.00413140
add esp, 4
xor ebx, ebx
jmp 0x412d0e
xor ebx, ebx
xorps xmm1, xmm1
cmp byte [esp + 0x20], 0
je 0x412d54
mov ecx, dword [0x439050]
cmp byte [ecx + 0x3680], 0
je 0x412d54
movss xmm0, dword [ecx + 0x3684]
comiss xmm1, xmm0
ja 0x412d54
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x412d54
cmp dword [ecx + 0x4560], 0xffffffff
jne 0x412d54
mov byte [ebp + 0x4970], 1
mov dword [ebp + 0x4820], 2
cmp byte [ebp + 0x4970], 0
je 0x412e79
cmp dword [ebp + 0x4820], 2
jne 0x412e79
cmp dword [ebp + 0x3778], 0
jg 0x412da0
cmp byte [ebp + 0xdd8], 0
jne 0x412da0
cmp byte [ebp + 0xdd9], 0
jne 0x412da0
cmp byte [ebp + 0xddb], 0
jne 0x412da0
mov eax, dword [0x439050]
cmp dword [eax + 0x4560], 0xffffffff
je 0x412da7
mov byte [ebp + 0x4970], 0
mov eax, dword [0x439050]
comiss xmm1, dword [eax + 0x3688]
ja 0x412e5b
cmp byte [eax + 0x3680], 0
jne 0x412e5b
cmp byte [eax + 0x4568], 0
jne 0x412e72
cmp byte [ebp + 0x4970], 0
je 0x412e5b
cmp dword [ebp + 0x3eac], 0
je 0x412dee
cmp byte [ebp + 0x3eb9], 0
je 0x412e5b
lea eax, [ebp + 0x36a4]
test eax, eax
jne 0x412e02
mov eax, dword [0x439050]
add eax, 0xdbc
movss xmm0, dword [eax]
movss xmm1, dword [0x433010]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x412e21
comiss xmm2, xmm1
jb 0x412e21
mov cl, 1
jmp 0x412e23
xor cl, cl
lea eax, [ebp + 0xdbc]
test eax, eax
jne 0x412e37
mov eax, dword [0x439050]
add eax, 0xdbc
movss xmm0, dword [eax]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x412e4e
comiss xmm2, xmm1
jb 0x412e4e
mov al, 1
jmp 0x412e50
xor al, al
cmp al, cl
jne 0x412e5b
mov byte [esp + 0x16], 1
jmp 0x412e72
mov eax, dword [0x439050]
cmp byte [eax + 0x3680], 0
je 0x412e72
cmp byte [eax + 0x4568], 0
je 0x412e79
mov byte [ebp + 0x4970], 0
mov eax, dword [ebp + 0x495c]
test eax, eax
je 0x412fe8
test byte [eax + 0xc], 4
jne 0x412fe8
mov eax, dword [ebp + 0x4820]
cmp eax, 2
jne 0x412ebf
cmp byte [ebp + 0xdd9], 0
jne 0x412fe8
push 0x204
push 0x203
push 0x202
push 0x201
jmp 0x412edc
cmp eax, 3
jne 0x412fe8
push 0x27c
push 0x27b
push 0x27a
push 0x279
lea eax, [esp + 0x30]
push eax
call fcn.0040d820
add esp, 0x14
xorps xmm2, xmm2
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
ucomiss xmm4, xmm2
lahf
test ah, 0x44
jp 0x412f0b
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jnp 0x412fe8
movss xmm1, dword [ebp + 0x3c]
minss xmm1, dword [ebp + 0x40]
movss xmm0, dword [ebp + 0x18]
mulss xmm0, dword [0x433000]
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 0x412f7d
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x412fe8
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.00417be0
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 0x413067
mov eax, dword [ebp + 0x47f0]
test eax, eax
je 0x412ffe
cmp ebx, dword [eax + 0x300]
je 0x41305d
push 0
push 0
call fcn.00417350
mov eax, dword [0x439050]
push 0
push ebx
mov word [eax + 0x4829], 1
mov byte [eax + 0x482b], 1
call fcn.0040b160
push 1
push ebx
call fcn.0040d190
mov esi, dword [ebp + 0x47f0]
add esp, 0x18
cmp dword [esi + 0x314], 0
jne 0x413049
push 0
push esi
call fcn.0040fe90
add esp, 8
cmp word [esi + 0x14e], 2
jne 0x41305d
mov dword [ebp + 0x4824], 1
mov dword [ebp + 0x495c], 0
cmp byte [esp + 0x16], 0
pop ebx
je 0x413136
cmp dword [ebp + 0x47f0], 0
je 0x413136
push 0
push 0
call fcn.00417350
mov esi, dword [ebp + 0x47f0]
add esp, 8
cmp dword [esi + 0x2f8], 0
lea ecx, [esi + 0x2f8]
je 0x4130ca
test byte [esi + 0x14c], 2
jne 0x4130ca
mov eax, dword [esi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x4130ca
mov esi, dword [ecx]
cmp dword [esi + 0x2f8], 0
lea ecx, [esi + 0x2f8]
jne 0x4130a1
mov edi, dword [ebp + 0x47f0]
cmp esi, edi
je 0x4130e5
push 0
push esi
call fcn.0040d190
add esp, 8
mov dword [esi + 0x310], edi
mov ecx, dword [ebp + 0x47f0]
test byte [ecx + 0x14c], 2
je 0x4130ff
mov eax, dword [ebp + 0x4824]
xor eax, 1
jmp 0x413101
xor eax, eax
cmp eax, dword [ebp + 0x4824]
je 0x413136
cmp eax, 1
jne 0x413118
mov dword [ecx + 0x318], 0
push eax
call fcn.00410a30
mov eax, dword [0x439050]
add esp, 4
mov word [eax + 0x4829], 1
mov byte [eax + 0x482b], 1
pop edi
pop esi
pop ebp
add esp, 0x18
ret