Function at 0x40c770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x4ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx + 8]
mov eax, ecx
push edi
mov edi, dword [0x4d3fd8]
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], edi
call fcn.0040a060
test eax, eax
mov dword [ebp - 0xa4], eax
sete cl
mov byte [ebp - 0x125], cl
test eax, eax
jne 0x40c7e6
mov ecx, dword [ebp - 0x148]
mov edx, esi
call fcn.0040a1c0
mov edx, eax
mov dword [ebp - 0xa4], edx
jmp 0x40c7f9
mov dl, cl
mov ecx, eax
push esi
call fcn.0040a0b0
mov edx, dword [ebp - 0xa4]
add esp, 4
mov eax, esi
mov ecx, esi
and eax, 0xc0200
or ecx, 6
cmp eax, 0xc0200
mov eax, dword [edx + 0x224]
mov dword [ebp - 0x13c], eax
lea eax, [edi + 0x3e0c]
cmovne ecx, esi
cmp dword [eax], 0
mov esi, dword [edi + 0x3dd0]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x138], esi
jne 0x40c843
cmp byte [edi + 0x3ddd], 0
je 0x40c843
mov al, 1
jmp 0x40c845
xor al, al
mov byte [edx + 0x96], al
lea eax, [esi - 1]
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
cmp dword [edx + 0x224], eax
setl al
mov byte [ebp - 0x140], al
test ecx, 0x4000000
je 0x40c8af
mov eax, dword [edi + 0x3fcc]
mov edx, dword [edi + 0x3fc8]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0xa8]
cmp eax, dword [edx + esi*8 + 4]
setne cl
mov eax, dword [eax + 0xa4]
cmp eax, dword [edx + esi*8]
mov edx, dword [ebp - 0xa8]
setne al
or cl, al
mov al, byte [ebp - 0x140]
or al, cl
mov byte [ebp - 0x140], al
mov byte [edx + 0x94], al
mov esi, dword [ebp - 0xa4]
cmp byte [esi + 0x94], 0
je 0x40c8db
push 1
mov edx, 8
mov ecx, esi
call fcn.00409f70
mov esi, dword [ebp - 0xa4]
add esp, 4
mov ecx, dword [ebp - 0x138]
cmp dword [ebp - 0x13c], ecx
je 0x40c949
mov edx, dword [ebp - 0x124]
mov dword [esi + 8], edx
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x224], ecx
xor ecx, ecx
movsd xmm0, qword [edi + 0x3dc8]
mov eax, dword [ebp - 0xa4]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x228], xmm0
mov eax, dword [ebp - 0xa4]
mov word [eax + 0x9c], cx
mov eax, dword [ebp - 0xa4]
movzx ecx, word [edi + 0x3e24]
inc dword [edi + 0x3e24]
mov word [eax + 0x9e], cx
mov esi, dword [ebp - 0xa4]
jmp 0x40c952
mov edx, dword [esi + 8]
mov dword [ebp - 0x124], edx
mov eax, dword [edi + 0x3e0c]
test eax, eax
jne 0x40c960
xor ecx, ecx
jmp 0x40c96d
imul ecx, eax, 0x54
mov eax, dword [edi + 0x3e14]
mov ecx, dword [eax + ecx - 0x54]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x24], ecx
cmp eax, dword [ebp - 0x138]
je 0x40c98d
mov eax, edx
and eax, 0x5000000
neg eax
sbb eax, eax
and eax, ecx
jmp 0x40c993
mov eax, dword [esi + 0x2e4]
cmp dword [esi + 0xc8], 0
lea ecx, [esi + 0xc8]
mov dword [ebp - 0x130], eax
jne 0x40c9b7
lea eax, [esi + 4]
push eax
call fcn.00415dd0
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x114]
mov dword [edi + 0x3e30], esi
call fcn.004019f0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xd8]
xorps xmm0, xmm0
mov dword [ebp - 0x118], eax
mov eax, dword [edi + 0x3f14]
movups xmmword [ebp - 0xd8], xmm0
mov word [ebp - 0xc8], 0
movups xmm0, xmmword [edi + 0x3edc]
mov dword [ebp - 0xdc], eax
movups xmmword [ebp - 0x114], xmm0
movups xmm0, xmmword [edi + 0x3eec]
movups xmmword [ebp - 0x104], xmm0
movups xmm0, xmmword [edi + 0x3efc]
movups xmmword [ebp - 0xf4], xmm0
movq xmm0, qword [edi + 0x3f0c]
movq qword [ebp - 0xe4], xmm0
call fcn.0040f7e0
lea eax, [ebp - 0x118]
push eax
lea ecx, [edi + 0x3e0c]
call fcn.00415d50
mov eax, dword [ebp - 0x124]
mov ecx, eax
and ecx, 0x10000000
mov dword [edi + 0x3e30], 0
mov dword [ebp - 0x164], ecx
je 0x40ca70
inc dword [edi + 0x3fd8]
mov ecx, eax
and ecx, 0x4000000
mov dword [ebp - 0xa8], ecx
je 0x40cac7
mov eax, dword [edi + 0x3fcc]
lea ecx, [edi + 0x3fcc]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x3fc8]
lea esi, [eax + edx*8]
mov eax, dword [ebp - 0xa4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
push esi
mov eax, dword [eax + 0x12c]
mov dword [esi + 0xc], eax
call fcn.004159c0
mov eax, dword [ebp - 0xa4]
mov ecx, dword [esi]
mov dword [eax + 0xa4], ecx
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x130]
cmp edx, dword [ebp - 0x138]
je 0x40cafb
mov ecx, dword [ebp - 0xa4]
mov edx, eax
push esi
call fcn.0040c5f0
mov eax, dword [ebp - 0xa4]
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x2e8], ecx
test byte [edi + 0x3f18], 1
mov byte [ebp - 0x119], 0
mov byte [ebp - 0x11d], 0
mov byte [ebp - 0x11c], 0
je 0x40cbd3
mov ecx, dword [ebp - 0xa4]
mov edx, dword [edi + 0x3f1c]
movsx eax, byte [ecx + 0xb4]
and eax, edx
setne byte [ebp - 0x119]
test eax, eax
je 0x40cbc4
movss xmm1, dword [edi + 0x3f34]
movss xmm0, dword [edi + 0x3f30]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x4afc8c]
jbe 0x40cbc4
mov eax, dword [edi + 0x3f28]
mov dword [ecx + 0xb8], eax
mov eax, dword [edi + 0x3f2c]
mov dword [ecx + 0xbc], eax
mov ecx, dword [ebp - 0xa4]
mov eax, dword [edi + 0x3f30]
mov dword [ecx + 0xc0], eax
mov eax, dword [edi + 0x3f34]
mov dword [ecx + 0xc4], eax
mov edx, dword [ebp - 0xa4]
movzx ecx, byte [edx + 0xb4]
mov eax, dword [edx + 0xb4]
and ecx, 0xf1
and eax, 0xffffff00
or ecx, eax
mov dword [edx + 0xb4], ecx
jmp 0x40cbd3
push edx
lea edx, [edi + 0x3f28]
call fcn.0040eb90
add esp, 4
mov eax, dword [edi + 0x3f18]
test al, 2
je 0x40cc48
mov eax, dword [ebp - 0xa4]
lea edx, [edi + 0x3f38]
mov ecx, dword [edi + 0x3f20]
xorps xmm1, xmm1
movsx eax, byte [eax + 0xb5]
and eax, ecx
je 0x40cc0d
movss xmm0, dword [edx]
comiss xmm0, xmm1
mov byte [ebp - 0x11d], 1
ja 0x40cc14
mov byte [ebp - 0x11d], 0
test eax, eax
je 0x40cc2c
movss xmm0, dword [edi + 0x3f3c]
comiss xmm0, xmm1
mov byte [ebp - 0x11c], 1
ja 0x40cc33
mov byte [ebp - 0x11c], 0
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.0040ecf0
mov eax, dword [edi + 0x3f18]
add esp, 4
test al, al
jns 0x40cc99
movss xmm1, dword [edi + 0x3f48]
xorps xmm0, xmm0
comiss xmm1, xmm0
jb 0x40cc74
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x6c], xmm1
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x74], 0
movss xmm1, dword [edi + 0x3f4c]
comiss xmm1, xmm0
jb 0x40cc99
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x70], xmm1
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x78], 0
test byte [edi + 0x3f18], 4
je 0x40ccbc
mov ecx, dword [ebp - 0xa4]
mov eax, dword [edi + 0x3f40]
mov dword [ecx + 0x38], eax
mov eax, dword [edi + 0x3f44]
mov dword [ecx + 0x3c], eax
jmp 0x40ccde
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x138]
je 0x40ccde
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov eax, dword [edi + 0x3f18]
test al, 8
je 0x40cd08
push dword [edi + 0x3f24]
mov dl, byte [edi + 0x3f50]
mov ecx, dword [ebp - 0xa4]
call fcn.0040ede0
mov eax, dword [edi + 0x3f18]
add esp, 4
test al, 0x20
je 0x40cd17
mov ecx, dword [ebp - 0xa4]
call fcn.0040e960
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx + 0x94], 0
je 0x40cd3b
push 0
mov edx, 8
call fcn.00409f70
mov ecx, dword [ebp - 0xa4]
add esp, 4
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x138]
je 0x40e425
mov eax, dword [ebp - 0x124]
movaps xmm0, xmmword [0x4b0760]
and eax, 0x3000000
cmp dword [ebp - 0x180], 0
mov dword [ebp - 0x12c], eax
mov al, byte [ecx + 0xb1]
mov byte [ecx + 0x8e], 1
setne cl
mov byte [ebp - 0x131], al
mov eax, dword [ebp - 0xa4]
movups xmmword [ebp - 0x3c], xmm0
mov byte [eax + 0x98], cl
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x160]
call fcn.00401880
mov eax, dword [ebp - 0xa4]
movups xmm0, xmmword [ebp - 0x160]
push 1
movups xmmword [eax + 0x1fc], xmm0
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx + 0xc8]
call fcn.00415f00
mov ecx, dword [ebp - 0xa4]
mov ecx, dword [ecx + 0x250]
call fcn.0041e120
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x17c], 0xffffffff
mov eax, dword [ebp - 0xa4]
cmp byte [eax + 0x330], 0
je 0x40ce05
mov ecx, eax
call fcn.004053b0
mov eax, dword [ebp - 0xa4]
cmp dword [edi + 0x4140], 0
je 0x40ce84
test dword [eax + 8], 0x80000
jne 0x40ce84
cmp byte [ebp - 0x125], 0
jne 0x40ce84
mov ecx, dword [eax]
mov eax, dword [ebp - 0x148]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ce48
test dl, dl
je 0x40ce44
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ce48
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ce28
xor eax, eax
jmp 0x40ce4d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ce84
mov ecx, dword [ebp - 0xa4]
lea edx, [ebp - 0x24]
push dword [ebp - 0x148]
mov eax, dword [ecx + 0x50]
mov ecx, dword [ecx]
mov dword [ebp - 0x24], eax
call fcn.00403710
mov ecx, dword [ebp - 0xa4]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0xa4]
lea eax, [ecx + 0x30]
push eax
lea edx, [ecx + 0x28]
call fcn.0040a790
mov ecx, dword [ebp - 0xa4]
add esp, 4
mov al, byte [ecx + 0xb0]
test al, al
jle 0x40ceb1
sub al, 1
mov byte [ecx + 0xb0], al
mov ecx, dword [ebp - 0xa4]
mov al, byte [ecx + 0xb1]
test al, al
jle 0x40cec9
sub al, 1
mov byte [ecx + 0xb1], al
mov ecx, dword [ebp - 0xa4]
mov al, byte [ecx + 0xb2]
test al, al
jle 0x40cee1
dec al
mov byte [ecx + 0xb2], al
cmp byte [ebp - 0x125], 0
mov dl, byte [ebp - 0x11d]
mov dh, byte [ebp - 0x11c]
je 0x40cf0b
test dl, dl
je 0x40cefe
test dh, dh
jne 0x40cf0b
mov eax, dword [ebp - 0xa4]
mov byte [eax + 0xb1], 1
cmp byte [ebp - 0x140], 0
je 0x40cf9a
mov ecx, dword [ebp - 0x124]
test ecx, 0x6000000
je 0x40cf9a
mov eax, dword [ebp - 0xa4]
mov byte [eax + 0xb1], 1
test cl, 0x40
je 0x40cf9a
test dl, dl
jne 0x40cf56
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x18], 0
test dh, dh
jne 0x40cf74
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0x30]
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x34]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x4d3fd8]
mov eax, dword [eax + 0x3fe4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x170], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xa4]
call fcn.00405340
mov edx, dword [ebp - 0x124]
mov eax, edx
and eax, 0x1000000
mov dword [ebp - 0x24], eax
je 0x40cfe4
mov eax, dword [ebp - 0xa4]
mov ecx, dword [edi + 0x37e0]
mov dword [eax + 0x4c], ecx
jmp 0x40d011
test edx, 0x6000000
je 0x40cffe
test edx, 0x8000000
jne 0x40cffe
movss xmm0, dword [edi + 0x37e8]
jmp 0x40d006
movss xmm0, dword [edi + 0x37c4]
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x4c], xmm0
mov ecx, dword [ebp - 0xa4]
mov eax, dword [edi + 0x37b8]
mov dword [ecx + 0x40], eax
mov eax, dword [edi + 0x37bc]
mov dword [ecx + 0x44], eax
mov eax, edx
mov ecx, dword [ebp - 0xa4]
and eax, 0x5010000
cmp eax, 0x1000000
jne 0x40d070
movss xmm0, dword [ecx + 0x4c]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x40d070
test edx, 0x400
je 0x40d05e
movss xmm1, dword [edi + 0x37bc]
mov dword [ecx + 0x40], 0
movss dword [ecx + 0x44], xmm1
mov ecx, dword [ebp - 0xa4]
movss xmm0, dword [ecx + 0x40]
maxss xmm0, dword [edi + 0x37fc]
maxss xmm0, dword [edi + 0x3f70]
movss dword [ecx + 0x13c], xmm0
mov eax, dword [ebp - 0xa4]
mov ecx, dword [edi + 0x3f74]
mov dword [eax + 0x140], ecx
test dl, 0x21
jne 0x40d14d
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f10
mov eax, dword [edi + 0x3e34]
cmp eax, dword [ebp - 0xa4]
jne 0x40d102
cmp dword [edi + 0x3e54], 0
jne 0x40d102
cmp dword [edi + 0x3e58], 0
jne 0x40d102
push 1
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x3c]
call fcn.0040eec0
add esp, 4
test al, al
je 0x40d102
cmp word [edi + 0x367a], 2
jne 0x40d102
mov eax, dword [ebp - 0xa4]
mov byte [eax + 0x92], 1
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx + 0x92], 0
je 0x40d15a
cmp byte [ecx + 0x91], 0
sete al
mov byte [ecx + 0x91], al
mov eax, dword [ebp - 0xa4]
mov ecx, dword [0x4d3fd8]
test dword [eax + 8], 0x100
jne 0x40d15a
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x5208]
jb 0x40d15a
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5208], eax
jmp 0x40d15a
mov eax, dword [ebp - 0xa4]
mov byte [eax + 0x91], 0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0x2c]
mov byte [eax + 0x92], 0
mov edx, dword [ebp - 0xa4]
lea eax, [edx + 0x30]
push eax
call fcn.0040a8c0
mov al, byte [ebp - 0x125]
add esp, 4
test byte [ebp - 0x124], 0x40
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 0x11b], al
mov byte [ebp - 0x11a], al
je 0x40d1e9
cmp byte [edx + 0x91], 0
jne 0x40d1e9
cmp byte [ebp - 0x11d], 0
jne 0x40d1c6
movss xmm0, dword [ebp - 0x2c]
movss dword [edx + 0x20], xmm0
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 0x11b], 1
cmp byte [ebp - 0x11c], 0
jne 0x40d2aa
movss xmm0, dword [ebp - 0x28]
movss dword [edx + 0x24], xmm0
mov byte [ebp - 0x11a], 1
jmp 0x40d2a4
mov al, byte [edx + 0xa8]
test al, al
jg 0x40d200
cmp byte [edx + 0xa9], 0
jle 0x40d2aa
cmp byte [ebp - 0x11d], 0
jne 0x40d239
test al, al
jle 0x40d239
cmp byte [edx + 0xab], 0
je 0x40d222
movss xmm0, dword [edx + 0x20]
maxss xmm0, dword [ebp - 0x2c]
jmp 0x40d227
movss xmm0, dword [ebp - 0x2c]
movss dword [edx + 0x20], xmm0
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 0x11b], 1
cmp byte [ebp - 0x11c], 0
jne 0x40d277
cmp byte [edx + 0xa9], 0
jle 0x40d277
cmp byte [edx + 0xab], 0
je 0x40d260
movss xmm0, dword [edx + 0x24]
maxss xmm0, dword [ebp - 0x28]
jmp 0x40d265
movss xmm0, dword [ebp - 0x28]
movss dword [edx + 0x24], xmm0
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 0x11a], 1
cmp byte [edx + 0x91], 0
jne 0x40d2aa
test dword [edx + 8], 0x100
mov ecx, dword [0x4d3fd8]
jne 0x40d2aa
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x5208]
jb 0x40d2aa
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5208], eax
mov edx, dword [ebp - 0xa4]
lea eax, [edx + 0x20]
push eax
lea ecx, [ebp - 0x158]
call fcn.0040a570
add esp, 4
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x20], xmm0
movss dword [eax + 0x24], xmm1
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx + 0x91], 0
je 0x40d30b
cmp dword [ebp - 0x24], 0
jne 0x40d30b
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f10
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, eax
call fcn.004018b0
mov ecx, dword [ebp - 0xa4]
mov edx, eax
jmp 0x40d323
mov eax, dword [ecx + 0x20]
lea edx, [ebp - 0x158]
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x154], eax
mov eax, dword [edx]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0xa4]
call fcn.00402f90
mov ecx, dword [ebp - 0xa4]
movss dword [ebp - 0x168], xmm0
call fcn.00402ec0
cmp byte [ebp - 0x140], 0
movss xmm1, dword [ebp - 0x168]
addss xmm1, xmm0
movss dword [ebp - 0x168], xmm1
je 0x40d3bf
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0xac], 0xffffffff
mov eax, dword [ebp - 0x124]
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40d3bf
cmp byte [ebp - 0x119], 0
jne 0x40d3bf
mov eax, dword [edi + 0x3fcc]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x3fd4]
movss xmm0, dword [eax + ecx*8 - 0x10]
movss xmm1, dword [eax + ecx*8 - 0xc]
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x10], xmm0
movss dword [eax + 0x14], xmm1
cmp dword [ebp - 0x24], 0
je 0x40d422
mov eax, dword [ebp - 0xa4]
lea ecx, [esi + 0x168]
mov dx, word [ecx]
mov word [eax + 0x9c], dx
lea eax, [ebp - 0xa4]
push eax
call fcn.00415dd0
cmp dword [ebp - 0xa8], 0
mov al, byte [ebp - 0x119]
mov edx, dword [ebp - 0x12c]
jne 0x40d42e
test al, al
jne 0x40d42e
cmp edx, 0x3000000
je 0x40d42e
mov ecx, dword [ebp - 0xa4]
mov eax, dword [esi + 0xd4]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0xd8]
mov dword [ecx + 0x14], eax
jmp 0x40d428
mov edx, dword [ebp - 0x12c]
mov al, byte [ebp - 0x119]
mov ecx, dword [ebp - 0xa4]
movss xmm2, dword [ecx + 0xb8]
ucomiss xmm2, dword [0x4afdc8]
lahf
test ah, 0x44
jnp 0x40d49e
cmp byte [ecx + 0xb1], 0
jne 0x40d49e
movss xmm0, dword [ecx + 0xc4]
lea edx, [ebp - 0x158]
mulss xmm0, dword [ecx + 0x1c]
push 0
movss xmm1, dword [ecx + 0xbc]
subss xmm1, xmm0
movss xmm0, dword [ecx + 0xc0]
mulss xmm0, dword [ecx + 0x18]
subss xmm2, xmm0
movss dword [ebp - 0x154], xmm1
movss dword [ebp - 0x158], xmm2
call fcn.0040eb90
add esp, 4
jmp 0x40d4fa
cmp dword [ebp - 0x164], 0
jne 0x40d4d4
cmp dword [ebp - 0xa8], 0
je 0x40d4bc
test al, al
jne 0x40d4bc
cmp byte [ebp - 0x131], al
jg 0x40d4d4
test dword [ebp - 0x124], 0x2000000
je 0x40d4fa
test al, al
jne 0x40d4fa
cmp edx, 0x3000000
je 0x40d4fa
mov edx, ecx
lea ecx, [ebp - 0x158]
call fcn.004107f0
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x10], xmm0
movss dword [eax + 0x14], xmm1
mov ecx, dword [ebp - 0x170]
lea eax, [ebp - 0x50]
push eax
call fcn.00401a50
mov ecx, dword [ebp - 0x170]
lea eax, [ebp - 0x90]
push eax
call fcn.00401a90
lea eax, [edi + 0x3860]
push eax
lea edx, [edi + 0x3858]
lea ecx, [ebp - 0x68]
call fcn.00401850
movss xmm2, dword [ebp - 0x68]
add esp, 4
cmp byte [ebp - 0x119], 0
movss xmm4, dword [ebp - 0x88]
movss xmm3, dword [ebp - 0x84]
subss xmm4, xmm2
movss xmm0, dword [ebp - 0x8c]
subss xmm3, dword [ebp - 0x64]
addss xmm2, dword [ebp - 0x90]
addss xmm0, dword [ebp - 0x64]
mov esi, dword [ebp - 0x24]
movss dword [ebp - 0x58], xmm4
movss dword [ebp - 0x54], xmm3
movss dword [ebp - 0x60], xmm2
movss dword [ebp - 0x5c], xmm0
jne 0x40d5cb
test esi, esi
jne 0x40d5cb
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx + 0xa8], 0
jg 0x40d5d1
cmp byte [ecx + 0xa9], 0
jg 0x40d5d1
movss xmm0, dword [ebp - 0x48]
xorps xmm1, xmm1
subss xmm0, dword [ebp - 0x50]
comiss xmm0, xmm1
jbe 0x40d5d1
movss xmm0, dword [ebp - 0x44]
subss xmm0, dword [ebp - 0x4c]
comiss xmm0, xmm1
jbe 0x40d5d1
lea edx, [ebp - 0x60]
call fcn.0040b730
mov ecx, dword [ebp - 0xa4]
cvttss2si eax, dword [ecx + 0x10]
movd xmm1, eax
cvttss2si eax, dword [ecx + 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [ecx + 0x10], xmm1
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x14], xmm0
mov ecx, dword [ebp - 0x124]
test esi, esi
je 0x40d607
movss xmm0, dword [edi + 0x37dc]
jmp 0x40d627
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40d61f
movss xmm0, dword [edi + 0x37e4]
jmp 0x40d627
movss xmm0, dword [edi + 0x37c0]
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x48], xmm0
xor al, al
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0x140], al
je 0x40d6ad
test ecx, 0x1000
jne 0x40d6ad
cmp dword [ebp - 0xa8], 0
je 0x40d656
mov byte [ebp - 0x24], 1
jmp 0x40d66b
cmp dword [ebp - 0x12c], 0
mov ecx, 1
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x24], eax
call fcn.004103b0
test eax, eax
je 0x40d6ad
mov ecx, dword [ebp - 0xa4]
mov edx, ecx
mov esi, dword [ecx + 0x2ec]
cmp esi, eax
je 0x40d6b3
cmp edx, eax
je 0x40d6b3
mov edx, dword [edx + 0x2e8]
test edx, edx
jne 0x40d686
mov byte [ebp - 0x24], dl
cmp ecx, esi
jne 0x40d6b3
call fcn.0040c690
mov ecx, dword [ebp - 0xa4]
mov edx, eax
call fcn.0040e8a0
mov ecx, dword [ebp - 0xa4]
movss xmm2, dword [edi + 0x3bcc]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x20], xmm0
movaps xmm1, xmm2
mulss xmm2, dword [0x4afca8]
xor eax, eax
cmp byte [edi + 0x5d], al
mulss xmm1, dword [0x4afcfc]
mov dword [ebp - 0x40], 0xffffffff
setne al
movss xmm0, dword [ecx + 0x48]
inc eax
cmp byte [ecx + 0x91], 0
addss xmm0, dword [0x4afcf8]
mov dword [ebp - 0x154], eax
addss xmm0, xmm2
maxss xmm1, xmm0
cvttss2si esi, xmm1
jne 0x40d73d
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x20]
push edx
push eax
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x2c]
call fcn.0040ac50
mov ecx, dword [ebp - 0xa4]
add esp, 0x10
test al, al
je 0x40d73d
mov byte [ebp - 0x11a], 1
mov byte [ebp - 0x11b], 1
mov al, byte [ebp - 0x40]
mov byte [ecx + 0x99], al
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x170], ecx
cmp byte [ecx + 0x91], 0
jne 0x40d91a
movss xmm0, dword [ecx + 0x20]
lea eax, [ebp - 0x34]
movss dword [ebp - 0x164], xmm0
movss xmm0, dword [ecx + 0x24]
add ecx, 0x1bc
subss xmm0, dword [ebp - 0x168]
push eax
movss dword [ebp - 0xa8], xmm0
call fcn.004018b0
cmp byte [ebp - 0x125], 0
mov ecx, dword [ebp - 0x170]
movss xmm2, dword [ecx + 0x84]
movss xmm3, dword [ecx + 0x88]
addss xmm2, dword [eax]
addss xmm3, dword [eax + 4]
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x174]
je 0x40d7da
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
jmp 0x40d806
movss xmm0, dword [ecx + 0x40]
movss xmm1, dword [ecx + 0x44]
addss xmm0, xmm0
addss xmm1, xmm1
addss xmm0, dword [ecx + 0x28]
addss xmm1, dword [ecx + 0x2c]
movss dword [ebp - 0x174], xmm0
movss dword [ebp - 0x170], xmm1
cmp byte [ebp - 0x11b], 0
movss xmm5, dword [eax]
movss xmm4, dword [eax + 4]
je 0x40d822
movss xmm1, dword [ebp - 0x164]
jmp 0x40d825
movaps xmm1, xmm2
cmp byte [ebp - 0x11a], 0
je 0x40d838
movss xmm0, dword [ebp - 0xa8]
jmp 0x40d83b
movaps xmm0, xmm3
mov eax, dword [ebp - 0x124]
test eax, 0x4000
jne 0x40d855
comiss xmm4, xmm0
jbe 0x40d851
test al, 8
je 0x40d855
xor dl, dl
jmp 0x40d857
mov dl, 1
mov byte [ecx + 0x8d], dl
mov edx, dword [ebp - 0xa4]
test eax, 0x8000
jne 0x40d89f
cmp byte [edx + 0x8d], 0
je 0x40d87d
movss xmm2, dword [edi + 0x3824]
jmp 0x40d880
xorps xmm2, xmm2
subss xmm1, xmm2
comiss xmm5, xmm1
jbe 0x40d89b
and eax, 0x808
cmp eax, 0x800
mov eax, dword [ebp - 0x124]
je 0x40d89f
xor cl, cl
jmp 0x40d8a1
mov cl, 1
mov byte [edx + 0x8c], cl
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx + 0x8c], 0
je 0x40d8ed
cmp byte [ecx + 0x8d], 0
jne 0x40d8da
comiss xmm4, xmm0
jbe 0x40d8cc
test al, 8
jne 0x40d8cc
mov al, 1
jmp 0x40d8ce
xor al, al
mov byte [ecx + 0x8d], al
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx + 0x8c], 0
je 0x40d8ed
movss xmm1, dword [edi + 0x3824]
jmp 0x40d8f0
xorps xmm1, xmm1
cmp byte [ecx + 0x8d], 0
xorps xmm0, xmm0
je 0x40d904
movss xmm0, dword [edi + 0x3824]
movss dword [ecx + 0x84], xmm0
movss dword [ecx + 0x88], xmm1
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x124]
and eax, 0x5000000
mov dword [ebp - 0x170], eax
cmp eax, 0x1000000
jne 0x40d94b
cmp dword [ebp - 0x12c], 0x3000000
je 0x40d94b
mov eax, dword [ebp - 0x130]
add eax, 0x1fc
jmp 0x40d94e
lea eax, [ebp - 0x50]
movups xmm0, xmmword [eax]
lea eax, [ebp - 0xa0]
push eax
movups xmmword [ebp - 0x80], xmm0
call fcn.00402e50
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xc0]
push eax
call fcn.00402f10
mov eax, dword [ebp - 0xa4]
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [eax + 0x1ac], xmm0
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ecx + 0x1ac]
call fcn.00401920
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x1bc], eax
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x14]
addss xmm0, dword [ebp - 0x168]
movss dword [eax + 0x1c0], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x18]
addss xmm0, dword [eax + 0x10]
subss xmm0, dword [eax + 0x84]
movss dword [eax + 0x1c4], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x1c]
addss xmm0, dword [eax + 0x14]
subss xmm0, dword [eax + 0x88]
movss dword [eax + 0x1c8], xmm0
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0xa4]
and eax, 0x401
cmp eax, 1
jne 0x40da23
movss xmm3, dword [ecx + 0x4c]
jmp 0x40da2b
movss xmm3, dword [edi + 0x37f8]
movss xmm0, dword [ecx + 0x40]
movss xmm2, dword [0x4afcc0]
mulss xmm0, xmm2
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0x1bc]
addss xmm0, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, dword [ecx + 0x4c]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x1cc], xmm0
mov ecx, dword [ebp - 0xa4]
movss xmm0, dword [ecx + 0x1c0]
addss xmm0, xmm2
addss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x1d0], xmm0
mov ecx, dword [ebp - 0xa4]
movss xmm0, dword [ecx + 0x40]
movss xmm1, dword [ecx + 0x1c4]
mulss xmm0, xmm2
addss xmm1, xmm2
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm0, dword [ecx + 0x4c]
subss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x1d4], xmm0
mov ecx, dword [ebp - 0xa4]
movss xmm0, dword [ecx + 0x1c8]
addss xmm0, xmm2
subss xmm0, dword [ecx + 0x4c]
cvttss2si eax, xmm0
movd xmm0, eax
lea eax, [ebp - 0x80]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ecx + 0x1d8], xmm0
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx + 0x1cc]
call fcn.00401970
mov ecx, dword [ebp - 0xa4]
xorps xmm2, xmm2
movss xmm0, dword [ecx + 0x18]
comiss xmm0, xmm2
jbe 0x40db42
test dword [ebp - 0x124], 0x2000040
jne 0x40db42
mulss xmm0, dword [0x4afcc8]
jmp 0x40db52
movss xmm0, dword [edi + 0x3bcc]
mulss xmm0, dword [0x4afd6c]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x22c], xmm0
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0xa4]
movss xmm1, dword [eax + 0x40]
movss xmm0, dword [eax + 0x1c4]
addss xmm1, xmm1
subss xmm0, dword [eax + 0x1bc]
addss xmm1, dword [eax + 0x28]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [eax + 0x64], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm1, dword [eax + 0x44]
movss xmm0, dword [eax + 0x1c8]
addss xmm1, xmm1
subss xmm0, dword [eax + 0x1c0]
addss xmm1, dword [eax + 0x2c]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [eax + 0x68], xmm0
mov edx, dword [ebp - 0xa4]
call fcn.0040fc40
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [ebp - 0xa4]
movss dword [eax + 0x5c], xmm0
movss dword [eax + 0x60], xmm1
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x6c], 0x7f7fffff
mov dword [eax + 0x70], 0x7f7fffff
mov eax, dword [ebp - 0xa4]
mov edi, dword [eax + 0x250]
mov eax, dword [ebp - 0x144]
lea ecx, [edi + 0x48]
mov eax, dword [eax + 0x3bc8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00415dd0
mov eax, dword [ebp - 0xa8]
mov ecx, edi
mov dword [edi + 0x70], eax
call fcn.0041e570
push 0
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x80]
call fcn.00408b40
add esp, 4
mov byte [ebp - 0x11b], 0
cmp dword [ebp - 0x170], 0x1000000
jne 0x40dd24
cmp dword [ebp - 0x12c], 0x3000000
je 0x40dd24
mov edi, dword [ebp - 0x130]
mov ecx, dword [edi + 0x168]
cmp ecx, 2
jl 0x40dcd4
mov eax, dword [edi + 0x170]
mov ecx, dword [eax + ecx*4 - 8]
test ecx, ecx
je 0x40dcd4
lea eax, [ebp - 0x3c]
push eax
call fcn.00402e50
mov ecx, dword [ebp - 0xa4]
mov edi, eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00402e50
push eax
mov ecx, edi
call fcn.004018e0
mov edi, dword [ebp - 0x130]
mov byte [ebp - 0x11a], al
jmp 0x40dcdb
mov byte [ebp - 0x11a], 0
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x12c], edx
mov edx, dword [edx + 0x250]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x40dd2c
mov eax, dword [edi + 0x250]
cmp dword [eax + 0x18], 0
jle 0x40dd2c
cmp byte [ebp - 0x11a], 0
mov ecx, dword [ebp - 0x12c]
jne 0x40dd32
mov byte [ebp - 0x11b], 1
mov dword [ecx + 0x250], eax
mov ecx, dword [ebp - 0xa4]
jmp 0x40dd32
mov ecx, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x144]
mov edx, dword [edi + 0x4138]
test edx, edx
jne 0x40dd48
mov edx, dword [edi + 0x3fe8]
cmp byte [ebp - 0x24], 0
jne 0x40dd69
test edx, edx
je 0x40dd60
mov eax, dword [ecx + 0x2f4]
cmp eax, dword [edx + 0x2f4]
je 0x40dd69
mov byte [ebp - 0x144], 0
jmp 0x40dd70
mov byte [ebp - 0x144], 1
movd xmm0, esi
lea eax, [ebp - 0x20]
cvtdq2ps xmm0, xmm0
push ecx
lea edx, [ebp - 0xc0]
movss dword [esp], xmm0
push eax
push dword [ebp - 0x154]
push dword [ebp - 0x144]
call fcn.0040bae0
add esp, 0x10
cmp byte [ebp - 0x11b], 0
je 0x40ddb6
mov ecx, dword [ebp - 0xa4]
lea eax, [ecx + 0x254]
mov dword [ecx + 0x250], eax
mov ecx, dword [ebp - 0x124]
xorps xmm4, xmm4
mov edx, dword [ebp - 0xa4]
mov eax, ecx
shr eax, 3
not al
and eax, 0xffffff01
movss xmm3, dword [edx + 0x38]
ucomiss xmm3, xmm4
mov dword [ebp - 0x154], eax
lahf
test ah, 0x44
jp 0x40de1b
movss xmm0, dword [edx + 0x40]
mov eax, ecx
movss xmm1, dword [edx + 0x18]
addss xmm0, xmm0
and eax, 0x808
subss xmm1, xmm0
subss xmm1, dword [edx + 0x84]
cmp eax, 0x800
jne 0x40de14
movss xmm3, dword [edx + 0x28]
jmp 0x40de17
xorps xmm3, xmm3
maxss xmm3, xmm1
movss xmm2, dword [edx + 0x3c]
movss xmm5, dword [ebp - 0x168]
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x40de66
cmp byte [ebp - 0x154], 0
movss xmm0, dword [edx + 0x44]
movss xmm1, dword [edx + 0x1c]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, xmm5
subss xmm1, dword [edx + 0x88]
je 0x40de5f
movss xmm2, dword [edx + 0x2c]
jmp 0x40de62
xorps xmm2, xmm2
maxss xmm2, xmm1
movss xmm1, dword [edx + 0x40]
maxss xmm1, dword [edx + 0x4c]
movss xmm0, dword [edx + 0x1bc]
subss xmm0, dword [edx + 0x5c]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x1dc], xmm0
mov ecx, dword [ebp - 0xa4]
movss xmm1, dword [ecx + 0x44]
movss xmm0, dword [ecx + 0x1c0]
subss xmm0, dword [ecx + 0x60]
maxss xmm1, dword [ecx + 0x4c]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x1e0], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x1dc]
addss xmm0, xmm3
movss dword [eax + 0x1e4], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x1e0]
addss xmm0, xmm2
movss dword [eax + 0x1e8], xmm0
mov eax, dword [ebp - 0xa4]
movups xmm0, xmmword [eax + 0x1dc]
movups xmmword [eax + 0x1ec], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x10]
subss xmm0, dword [eax + 0x5c]
addss xmm0, dword [eax + 0x40]
movss dword [eax + 0x20c], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x14]
subss xmm0, dword [eax + 0x60]
addss xmm0, dword [eax + 0x44]
addss xmm0, xmm5
movss dword [eax + 0x210], xmm0
mov ecx, dword [ebp - 0xa4]
movss xmm1, dword [ecx + 0x38]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x40df7c
movss xmm0, dword [ecx + 0x40]
movss xmm1, dword [ecx + 0x18]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, dword [ecx + 0x84]
movss xmm0, dword [ecx + 0x20c]
addss xmm0, xmm1
movss dword [ecx + 0x214], xmm0
mov ecx, dword [ebp - 0xa4]
movss xmm1, dword [ecx + 0x3c]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x40dfc2
movss xmm0, dword [ecx + 0x44]
movss xmm1, dword [ecx + 0x1c]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, xmm5
subss xmm1, dword [ecx + 0x88]
movss xmm0, dword [ecx + 0x210]
addss xmm0, xmm1
movss dword [ecx + 0x218], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0x40]
addss xmm0, xmm4
subss xmm0, dword [eax + 0x5c]
movss dword [eax + 0x118], xmm0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x120], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x11c], 0
mov eax, dword [ebp - 0xa4]
movss xmm3, dword [eax + 0x40]
movss xmm0, dword [eax + 0x10]
movss xmm2, dword [eax + 0x44]
cvtps2pd xmm0, xmm0
cvtps2pd xmm3, xmm3
cvtps2pd xmm2, xmm2
addsd xmm3, xmm0
movss xmm0, dword [eax + 0x5c]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [eax + 0x11c]
cvtps2pd xmm0, xmm0
addsd xmm3, xmm0
movss xmm0, dword [eax + 0x14]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
addsd xmm2, xmm0
movss xmm0, dword [eax + 0x60]
movss dword [eax + 0xe4], xmm1
cvtps2pd xmm0, xmm0
subsd xmm2, xmm0
cvtps2pd xmm0, xmm5
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
movss dword [eax + 0xe8], xmm0
mov eax, dword [ebp - 0xa4]
movss xmm0, dword [eax + 0xe4]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [eax + 0xe8]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
subsd xmm2, xmm0
movss dword [eax + 0x124], xmm1
cvtpd2ps xmm0, xmm2
movss dword [eax + 0x128], xmm0
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0xe4]
mov dword [ecx + 0xd4], eax
mov eax, dword [ecx + 0xe8]
mov dword [ecx + 0xd8], eax
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0xd4]
mov dword [ecx + 0xdc], eax
mov eax, dword [ecx + 0xd8]
mov dword [ecx + 0xe0], eax
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0xe4]
mov dword [ecx + 0xec], eax
mov eax, dword [ecx + 0xe8]
mov dword [ecx + 0xf0], eax
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0xe4]
mov dword [ecx + 0xf4], eax
mov eax, dword [ecx + 0xe8]
mov dword [ecx + 0xf8], eax
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x104], 0
mov dword [eax + 0x108], 0
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0x104]
mov dword [ecx + 0xfc], eax
mov eax, dword [ecx + 0x108]
mov dword [ecx + 0x100], eax
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x110], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x10c], 0
mov eax, dword [ebp - 0xa4]
push dword [ebp - 0x140]
mov byte [eax + 0x114], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x12c], 0
mov ecx, dword [ebp - 0xa4]
mov ax, word [ecx + 0x132]
mov word [ecx + 0x130], ax
xor ecx, ecx
mov eax, dword [ebp - 0xa4]
mov word [eax + 0x132], cx
mov eax, dword [ebp - 0xa4]
mov byte [eax + 0x138], cl
mov ecx, dword [ebp - 0xa4]
movss xmm0, dword [ecx + 0x68]
comiss xmm0, xmm4
seta al
mov byte [ecx + 0x139], al
mov eax, dword [ebp - 0xa4]
mov byte [eax + 0x13a], 0
mov ecx, dword [ebp - 0xa4]
movss xmm1, dword [edi + 0x37fc]
lea ecx, [ecx + 0x144]
call fcn.0042a670
mov eax, dword [ebp - 0xa4]
push 0
mov dword [eax + 0x160], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x164], 0
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx + 0x168]
call fcn.00415ea0
mov ecx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x130]
lea eax, [ecx + 0x230]
mov dword [ecx + 0x174], eax
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x178], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x180], 1
test esi, esi
je 0x40e298
mov ecx, dword [esi + 0x180]
jmp 0x40e29d
mov ecx, 1
mov eax, dword [ebp - 0xa4]
push 0
mov dword [eax + 0x184], ecx
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0x22c]
mov dword [ecx + 0x18c], eax
mov eax, dword [ebp - 0xa4]
mov dword [eax + 0x190], 0xbf800000
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx + 0x194]
call fcn.00415ea0
mov ecx, dword [ebp - 0xa4]
push 0
add ecx, 0x1a0
call fcn.00415ea0
mov eax, dword [ebp - 0xa4]
mov cl, byte [eax + 0xa8]
test cl, cl
jle 0x40e30f
dec cl
mov byte [eax + 0xa8], cl
mov eax, dword [ebp - 0xa4]
mov cl, byte [eax + 0xa9]
test cl, cl
jle 0x40e327
dec cl
mov byte [eax + 0xa9], cl
mov eax, dword [ebp - 0xa4]
cmp byte [ebp - 0x24], 0
je 0x40e347
mov ecx, eax
call fcn.0040e960
mov ecx, dword [ebp - 0xa4]
xor dl, dl
call fcn.00411950
mov eax, dword [ebp - 0xa4]
test byte [ebp - 0x124], 1
jne 0x40e3b0
movss xmm1, dword [eax + 0x4c]
lea edx, [ebp - 0x3c]
movss xmm0, dword [ebp - 0xc0]
mov ecx, eax
push dword [ebp - 0x180]
addss xmm0, xmm1
push dword [ebp - 0x148]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [ebp - 0xbc]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [ebp - 0xb8]
subss xmm0, xmm1
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0xb4]
movss dword [ebp - 0x30], xmm0
call fcn.0040c140
mov eax, dword [ebp - 0xa4]
add esp, 8
xor ecx, ecx
lea edx, [ebp - 0xb8]
mov word [eax + 0x21e], cx
mov eax, dword [ebp - 0xa4]
push ecx
mov word [eax + 0x21c], cx
lea ecx, [ebp - 0xc0]
call fcn.0040eec0
mov edx, dword [0x4d3fd8]
xor ecx, ecx
add esp, 4
test al, al
mov eax, dword [ebp - 0xa4]
setne cl
mov dword [ebp - 0x154], ecx
mov ecx, dword [edi + 0x3ec4]
mov eax, dword [eax + 0x54]
mov dword [edx + 0x3edc], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0x3ee0], ecx
mov dword [edx + 0x3ee4], eax
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [edx + 0x3ee8], xmm0
jmp 0x40e42a
call fcn.00405340
mov eax, dword [ebp - 0x124]
and eax, 0x1000000
mov dword [ebp - 0x154], eax
je 0x40e445
mov eax, dword [esi + 0x134]
jmp 0x40e457
mov ecx, dword [ebp - 0xa4]
push 0
push str.FOCUSSCOPE
call fcn.004052f0
mov ecx, dword [ebp - 0xa4]
push 1
mov dword [ecx + 0x134], eax
mov eax, dword [ebp - 0xa4]
lea edx, [eax + 0x1d4]
lea ecx, [eax + 0x1cc]
call fcn.00408b40
mov eax, dword [ebp - 0xa4]
add esp, 4
mov byte [eax + 0x90], 0
mov eax, dword [ebp - 0xa4]
inc word [eax + 0x9a]
mov eax, dword [ebp - 0x13c]
mov dword [edi + 0x3f18], 0
cmp eax, dword [ebp - 0x138]
je 0x40e642
cmp dword [ebp - 0x154], 0
mov ecx, dword [ebp - 0xa4]
je 0x40e594
mov eax, dword [ebp - 0x124]
test al, 0x40
jne 0x40e552
cmp byte [ecx + 0xa8], 0
jg 0x40e552
cmp byte [ecx + 0xa9], 0
jg 0x40e552
test eax, 0x800000
je 0x40e514
cmp byte [edi + 0x4028], 0
je 0x40e514
mov eax, dword [edi + 0x3fe8]
test eax, eax
je 0x40e514
mov eax, dword [eax + 0x2f8]
cmp eax, dword [ecx + 0x2f8]
jne 0x40e514
mov al, 1
jmp 0x40e516
xor al, al
cmp byte [edi + 0x524c], 0
jne 0x40e552
test al, al
jne 0x40e552
movss xmm0, dword [ecx + 0x1ac]
comiss xmm0, dword [ecx + 0x1b4]
jae 0x40e545
movss xmm0, dword [ecx + 0x1b0]
comiss xmm0, dword [ecx + 0x1b8]
jb 0x40e552
mov byte [ecx + 0xb0], 1
mov ecx, dword [ebp - 0xa4]
test esi, esi
je 0x40e594
mov al, byte [esi + 0x91]
test al, al
jne 0x40e568
cmp byte [esi + 0xb0], al
jle 0x40e57b
mov byte [ecx + 0xb0], 1
mov al, byte [esi + 0x91]
mov ecx, dword [ebp - 0xa4]
test al, al
jne 0x40e587
cmp byte [esi + 0xb1], al
jle 0x40e594
mov byte [ecx + 0xb1], 1
mov ecx, dword [ebp - 0xa4]
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x37b0]
jb 0x40e5ad
mov byte [ecx + 0xb0], 1
mov ecx, dword [ebp - 0xa4]
cmp byte [ecx + 0xb0], 0
jg 0x40e5cd
cmp byte [ecx + 0xb1], 0
jg 0x40e5cd
xor dl, dl
cmp byte [ecx + 0xb2], dl
jg 0x40e5cf
xor al, al
jmp 0x40e5d1
mov dl, 1
mov al, 1
mov byte [ecx + 0x95], al
mov eax, dword [ebp - 0xa4]
mov cl, byte [eax + 0xb3]
test cl, cl
jle 0x40e602
dec cl
mov byte [eax + 0xb3], cl
mov eax, dword [ebp - 0xa4]
or dword [eax + 8], 0xc0200
mov eax, dword [ebp - 0xa4]
xor cl, cl
cmp byte [eax + 0x91], cl
jne 0x40e618
cmp byte [eax + 0x8e], cl
je 0x40e618
test dl, dl
je 0x40e63c
cmp byte [eax + 0xa8], 0
jg 0x40e63c
cmp byte [eax + 0xa9], 0
jg 0x40e63c
cmp byte [eax + 0xb1], 0
mov edx, 1
movzx ecx, cl
cmovle ecx, edx
mov byte [eax + 0x93], cl
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
cmp byte [eax + 0x93], 0
sete al
xor ecx, ebp
call fcn.0045a181
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret