Function at 0x418170
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x44041c]
push esi
xor esi, esi
mov dword [ebp - 0x1c], ebx
push edi
mov edx, dword [ebx + 0x4a08]
sub edx, 1
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x18], 0
js 0x4181cb
mov eax, dword [ebx + 0x4a10]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop
mov edi, dword [eax]
test edi, edi
je 0x4181c3
test dword [edi + 0xc], 0x8000000
jne 0x4182d3
sub eax, 0x28
sub edx, 1
jns 0x4181b0
mov eax, dword [ebx + 0x4c00]
xor edi, edi
cmp dword [ebx + 0x4c04], esi
je 0x41821b
test eax, eax
jne 0x41821b
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x43cd7c]
movss xmm1, dword [ebx + 0x4c10]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, dword [ebx + 0x4c2c]
maxss xmm1, xmm0
movss dword [ebx + 0x4c10], xmm1
jb 0x41821b
comiss xmm0, xmm1
jb 0x41821b
mov dword [ebx + 0x4c04], esi
or edx, 0xffffffff
mov esi, 0x4381b5
mov al, 0x23
or ebx, 0xffffffff
cmp al, 0x23
jne 0x418236
cmp byte [esi], al
jne 0x418236
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 + 0x438600]
test al, al
jne 0x418228
mov ebx, dword [ebp - 0x1c]
not edx
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 8]
test al, 2
je 0x418268
test byte [ebx + 0xc], 1
mov byte [ebp - 0xd], 1
jne 0x41826c
mov byte [ebp - 0xd], 0
and eax, 0xffffff01
mov dword [ebp - 0x24], eax
test edi, edi
jne 0x4182e0
mov ecx, dword [ebx + 0x4bf8]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x4182e0
mov esi, edx
test edx, edx
je 0x418290
cmp edx, 0xffffffff
jne 0x4182a4
cmp edx, 0xffffffff
je 0x418299
test edx, edx
jne 0x4182a4
mov eax, dword [0x44041c]
mov esi, dword [eax + 0x48d8]
push 0x11001
mov edx, esi
call fcn.00411980
add esp, 4
test al, al
je 0x4182e0
mov ecx, dword [ebp - 8]
mov edx, esi
push 0x11021
call fcn.00413760
add esp, 4
test al, al
je 0x4182e0
mov byte [ebp - 0xe], 1
jmp 0x4182e8
mov dword [ebx + 0x4c00], esi
xor eax, eax
jmp 0x4181d3
mov byte [ebp - 0xe], 0
test edi, edi
jne 0x41834d
mov ecx, dword [ebx + 0x4bfc]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x418350
mov eax, esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x418306
cmp esi, 0xffffffff
jne 0x41831d
cmp esi, 0xffffffff
je 0x41830f
test esi, esi
jne 0x41831d
mov eax, dword [0x44041c]
mov eax, dword [eax + 0x48d8]
mov dword [ebp - 0x14], eax
push 0x11001
mov edx, eax
call fcn.00411980
add esp, 4
test al, al
je 0x418350
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push 0x11021
call fcn.00413760
add esp, 4
test al, al
je 0x418350
mov byte [ebp - 0xf], 1
jmp 0x418358
mov esi, dword [ebp - 0x14]
mov byte [ebp - 0xf], 0
test edi, edi
jne 0x418383
cmp byte [ebp - 0xd], 0
je 0x418383
cmp dword [ebx + 0x4c00], 0
jne 0x418383
push 0
xor edx, edx
mov ecx, 0x279
call fcn.00411c00
add esp, 4
test al, al
je 0x418383
mov cl, 1
mov byte [ebp - 0xd], cl
jmp 0x418394
xor cl, cl
mov byte [ebp - 0xd], cl
test edi, edi
jne 0x4183a4
cmp dword [ebx + 0x4c00], edi
jne 0x4183a4
cmp byte [ebp - 0xe], 0
jne 0x4183a0
cmp byte [ebp - 0xf], 0
je 0x4183a4
mov al, 1
jmp 0x4183a6
xor al, al
mov byte [ebp - 0x10], al
test cl, cl
jne 0x4183b5
test al, al
je 0x4184fb
mov eax, dword [ebx + 0x4a38]
test eax, eax
jne 0x4183dd
mov ecx, dword [ebx + 0x3f4c]
mov edx, 0x80000001
push 0xffffffffffffffff
dec ecx
call fcn.00418060
add esp, 4
test eax, eax
je 0x4184fb
mov eax, dword [eax + 0x30c]
mov dword [ebx + 0x4c04], eax
mov dword [ebx + 0x4c00], eax
mov dword [ebx + 0x4c24], 0
mov eax, dword [ebx + 0x4c24]
mov dword [ebx + 0x4c1c], eax
mov al, byte [ebp - 0xd]
mov byte [ebx + 0x4c14], al
movzx eax, byte [ebp - 0x10]
xor eax, 1
mov dword [ebx + 0x4c28], 0
mov ecx, dword [ebx + 0x4c28]
add eax, 2
cmp byte [ebp - 0xe], 0
mov dword [ebx + 0x4c10], 0
mov dword [ebx + 0x4c0c], 0
mov dword [ebx + 0x4c20], ecx
mov dword [ebx + 0x4a7c], eax
jne 0x418458
cmp byte [ebp - 0xf], 0
je 0x4184fb
mov edi, dword [ebx + 0x4bfc]
or edi, dword [ebx + 0x4bf8]
mov ecx, dword [0x44041c]
test edi, 0x1000
je 0x418487
mov edx, 0x1000
call fcn.00404950
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x2000
je 0x4184a4
mov edx, 0x2000
call fcn.00404950
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x4000
je 0x4184c1
mov edx, 0x4000
call fcn.00404950
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x8000
je 0x4184de
mov edx, 0x8000
call fcn.00404950
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
test edi, 0x800
je 0x4184fb
mov edx, 0x800
call fcn.00404950
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
movss xmm0, dword [ebx + 0x4c0c]
addss xmm0, dword [ebx + 0x18]
mov esi, dword [ebx + 0x4c00]
mov edi, esi
movss xmm1, dword [0x43ccc8]
movss xmm2, dword [0x43ccb8]
movss xmm6, dword [0x43cd24]
movss dword [ebx + 0x4c0c], xmm0
test esi, esi
je 0x4185f7
cmp dword [ebx + 0x4a7c], 3
jne 0x4185fb
subss xmm0, xmm1
xorps xmm1, xmm1
divss xmm0, xmm2
comiss xmm1, xmm0
ja 0x41855c
movaps xmm1, xmm6
minss xmm1, xmm0
movss xmm7, dword [ebx + 0x4c10]
xor edx, edx
maxss xmm7, xmm1
mov ecx, 0x281
push 1
movss dword [ebx + 0x4c10], xmm7
call fcn.00411c00
add esp, 4
xor edx, edx
mov ecx, 0x282
mov bl, al
push 1
call fcn.00411c00
movzx ecx, al
add esp, 4
movzx eax, bl
sub eax, ecx
je 0x4185bf
mov ecx, eax
call fcn.004180d0
mov ebx, dword [ebp - 0x1c]
movaps xmm7, xmm6
mov esi, dword [ebx + 0x4c00]
mov edi, esi
mov dword [ebx + 0x4c10], 0x3f800000
jmp 0x4185c2
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [0x44041c]
mov edx, 0x279
call fcn.00411380
cmp byte [eax], 0
je 0x41864f
xor edx, edx
mov ecx, 0x279
call fcn.004136c0
test al, al
je 0x41864f
movss xmm1, dword [0x43ccc8]
movss xmm2, dword [0x43ccb8]
test edi, edi
je 0x418679
cmp dword [ebx + 0x4a7c], 2
xorps xmm7, xmm7
jne 0x41867c
movss xmm0, dword [ebx + 0x4c0c]
mov edx, 0xf800
mov eax, dword [ebx + 0x4bf8]
subss xmm0, xmm1
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, dword [ebx + 0x4bfc]
test eax, eax
divss xmm0, xmm2
cmovne edx, eax
and edx, ecx
mov ecx, edx
and ecx, 0xf800
comiss xmm7, xmm0
jbe 0x41877c
xorps xmm6, xmm6
jmp 0x418780
comiss xmm6, xmm7
seta al
and byte [ebx + 0x4c14], al
je 0x41866c
cmp dword [ebx + 0x4a38], 0
je 0x41866f
mov byte [ebp - 0x18], 1
jmp 0x41866f
mov dword [ebp - 0x20], esi
mov dword [ebx + 0x4c00], 0
xorps xmm7, xmm7
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], 0x211
mov dword [ebp - 8], 0x215
test al, al
je 0x4186b0
mov edi, dword [esi]
or edx, 0xffffffff
push 0
mov ecx, edi
call fcn.00411c00
add esp, 4
test al, al
jne 0x4187d4
mov eax, dword [ebp - 0x24]
add esi, 4
lea ecx, [ebp - 4]
cmp esi, ecx
jne 0x418690
cmp byte [ebx + 0x4c14], 0
je 0x4188eb
cmp dword [ebx + 0x4a7c], 2
jne 0x4188eb
cmp dword [ebx + 0x3898], 0
jg 0x4186f8
cmp byte [ebx + 0xe1c], 0
jne 0x4186f8
cmp byte [ebx + 0xe1d], 0
jne 0x4186f8
cmp byte [ebx + 0xe1f], 0
je 0x4186ff
mov byte [ebx + 0x4c14], 0
mov esi, dword [ebx + 0x4c18]
cmp esi, 0x200
jl 0x418715
cmp esi, 0x29a
jl 0x418741
cmp esi, 0x1000
je 0x418741
cmp esi, 0x2000
je 0x418741
cmp esi, 0x4000
je 0x418741
cmp esi, 0x8000
je 0x418741
cmp esi, 0x800
jne 0x4187f0
mov edi, dword [0x44041c]
cmp byte [edi + 0x48cc], 0
je 0x418768
cmp dword [edi + 0x3fdc], 0xffffffff
je 0x418768
lea eax, [esi - 0x200]
cmp eax, 0x76
jbe 0x418807
mov edx, esi
mov ecx, edi
call fcn.00404950
cmp dword [eax], 0xffffffff
jne 0x418807
jmp 0x4187f6
minss xmm6, xmm0
movss xmm0, dword [ebx + 0x4c10]
mov al, byte [ebp - 0xe]
maxss xmm0, xmm6
movss dword [ebx + 0x4c10], xmm0
test al, al
jne 0x4187bd
cmp byte [ebp - 0xf], al
jne 0x4187bd
mov eax, dword [ebx + 0xe20]
and eax, edx
and eax, 0xf800
cmp eax, ecx
je 0x41867c
mov dword [ebp - 0x20], esi
jmp 0x41867c
movzx ecx, al
xor ecx, 1
lea ecx, [ecx*2 - 1]
call fcn.004180d0
jmp 0x41867c
mov byte [ebx + 0x4c14], 1
mov dword [ebx + 0x4c18], edi
mov dword [ebx + 0x4a7c], 2
jmp 0x4186c7
mov edi, dword [0x44041c]
mov edx, 0x4000
mov ecx, edi
call fcn.00404950
cmp dword [eax], 0xffffffff
je 0x41880e
mov byte [ebx + 0x4c14], 0
mov edx, esi
mov ecx, edi
call fcn.00411380
comiss xmm7, dword [eax + 8]
ja 0x4188c7
cmp byte [eax], 0
jne 0x4188c7
xor edx, edx
mov ecx, esi
call fcn.004136c0
test al, al
je 0x4188c7
cmp byte [ebx + 0x4c14], 0
je 0x4188c7
cmp dword [ebx + 0x3fdc], 0
je 0x41885a
cmp byte [ebx + 0x3fe9], 0
je 0x4188c7
lea eax, [ebx + 0xe00]
test eax, eax
jne 0x41886a
lea eax, [edi + 0xe00]
movss xmm0, dword [eax]
movss xmm1, dword [0x43cdfc]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x418889
comiss xmm2, xmm1
jb 0x418889
mov cl, 1
jmp 0x41888b
xor cl, cl
lea eax, [ebx + 0x37c8]
test eax, eax
jne 0x41889b
lea eax, [edi + 0xe00]
movss xmm0, dword [eax]
comiss xmm0, xmm1
movss xmm2, dword [eax + 4]
jb 0x4188b2
comiss xmm2, xmm1
jb 0x4188b2
mov al, 1
jmp 0x4188b4
xor al, al
mov edx, dword [ebp - 0x18]
cmp cl, al
movzx edx, dl
mov eax, 1
cmove edx, eax
mov dword [ebp - 0x18], edx
mov edx, esi
mov ecx, edi
call fcn.00411380
cmp byte [eax], 0
je 0x4188e2
xor edx, edx
mov ecx, esi
call fcn.004136c0
test al, al
jne 0x4188f1
mov byte [ebx + 0x4c14], 0
jmp 0x4188f1
mov edi, dword [0x44041c]
mov eax, dword [ebx + 0x4c00]
test eax, eax
je 0x418a86
test byte [eax + 0xc], 4
jne 0x418a86
mov eax, dword [ebx + 0x4a7c]
cmp eax, 2
jne 0x418952
cmp byte [ebx + 0xe1d], 0
jne 0x418a86
mov edx, 0x203
mov ecx, edi
call fcn.00411380
mov ecx, dword [0x44041c]
mov edx, 0x201
mov edi, eax
call fcn.00411380
mov edx, 0x202
mov esi, eax
call fcn.00411380
mov edx, 0x204
jmp 0x41898a
cmp eax, 3
jne 0x418a86
mov edx, 0x289
mov ecx, edi
call fcn.00411380
mov ecx, dword [0x44041c]
mov edx, 0x287
mov edi, eax
call fcn.00411380
mov edx, 0x288
mov esi, eax
call fcn.00411380
mov edx, 0x28a
movss xmm2, dword [eax + 0xc]
subss xmm2, dword [esi + 0xc]
call fcn.00411380
ucomiss xmm2, xmm7
movss xmm3, dword [eax + 0xc]
subss xmm3, dword [edi + 0xc]
lahf
test ah, 0x44
jp 0x4189b9
ucomiss xmm3, xmm7
lahf
test ah, 0x44
jnp 0x418a86
movss xmm1, dword [ebx + 0x3c]
movss xmm0, dword [ebx + 0x18]
minss xmm1, dword [ebx + 0x40]
mulss xmm0, dword [0x43cdb8]
mov byte [ebx + 0x4a93], 1
mulss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [ebx + 0x4c1c]
addss xmm3, dword [ebx + 0x4c20]
cvttss2si eax, xmm2
movss dword [ebx + 0x4c1c], xmm2
movss dword [ebx + 0x4c20], xmm3
movd xmm5, eax
cvtdq2ps xmm5, xmm5
cvttss2si eax, xmm3
ucomiss xmm5, xmm7
movd xmm4, eax
cvtdq2ps xmm4, xmm4
lahf
test ah, 0x44
jp 0x418a2b
ucomiss xmm4, xmm7
lahf
test ah, 0x44
jnp 0x418a86
mov eax, dword [ebx + 0x4c00]
lea edx, [ebp - 0xc]
movaps xmm0, xmm5
push 1
mov ecx, dword [eax + 0x30c]
addss xmm0, dword [ecx + 0x18]
movss dword [ebp - 0xc], xmm0
movaps xmm0, xmm4
addss xmm0, dword [ecx + 0x1c]
movss dword [ebp - 8], xmm0
call fcn.00410e40
movss xmm0, dword [ebx + 0x4c1c]
add esp, 4
subss xmm0, xmm5
movss dword [ebx + 0x4c1c], xmm0
movss xmm0, dword [ebx + 0x4c20]
subss xmm0, xmm4
movss dword [ebx + 0x4c20], xmm0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x418b08
mov eax, dword [ebx + 0x4a38]
test eax, eax
je 0x418a9f
cmp esi, dword [eax + 0x30c]
je 0x418afe
xor edx, edx
xor ecx, ecx
call fcn.004081e0
mov eax, dword [0x44041c]
xor dl, dl
mov ecx, esi
mov word [eax + 0x4a91], 1
mov byte [eax + 0x4a93], 1
call fcn.00414570
mov edx, 1
mov ecx, esi
call fcn.00410a50
mov esi, dword [ebx + 0x4a38]
cmp dword [esi + 0x324], 0
jne 0x418aea
xor dl, dl
mov ecx, esi
call fcn.00415ba0
cmp word [esi + 0x156], 2
jne 0x418afe
mov dword [ebx + 0x4a80], 1
mov dword [ebx + 0x4c00], 0
cmp byte [ebp - 0x18], 0
je 0x418bc7
cmp dword [ebx + 0x4a38], 0
je 0x418bc7
xor edx, edx
xor ecx, ecx
call fcn.004081e0
mov edi, dword [ebx + 0x4a38]
mov esi, edi
cmp dword [esi + 0x304], 0
lea ecx, [esi + 0x304]
je 0x418b69
nop
test byte [esi + 0x154], 2
jne 0x418b69
mov eax, dword [esi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x418b69
mov esi, dword [ecx]
cmp dword [esi + 0x304], 0
lea ecx, [esi + 0x304]
jne 0x418b40
cmp esi, edi
je 0x418b82
xor edx, edx
mov ecx, esi
call fcn.00410a50
mov dword [esi + 0x320], edi
mov edi, dword [ebx + 0x4a38]
test byte [edi + 0x154], 2
mov eax, dword [ebx + 0x4a80]
je 0x418b98
mov ecx, eax
xor ecx, 1
jmp 0x418b9a
xor ecx, ecx
cmp ecx, eax
je 0x418bc7
cmp ecx, 1
jne 0x418bad
mov dword [edi + 0x328], 0
call fcn.00415a70
mov eax, dword [0x44041c]
mov word [eax + 0x4a91], 1
mov byte [eax + 0x4a93], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435571
mov esp, ebp
pop ebp
ret