Function at 0x40cfd0
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 [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
mov esi, dword [0x4454a8]
push edi
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xd8], esi
call fcn.0040a630
mov edi, eax
mov dword [ebp - 0x104], eax
test edi, edi
mov dword [ebp - 0xe4], edi
sete byte [ebp - 0xe8]
test eax, eax
jne 0x40d052
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xfc]
call fcn.0040a920
mov edi, eax
mov dword [ebp - 0xe4], eax
mov ecx, dword [esi + 0x3f90]
cmp ecx, dword [edi + 8]
jne 0x40d05e
int3
mov ecx, dword [ebp - 0xc0]
mov eax, ecx
and eax, 0x30200
cmp eax, 0x30200
jne 0x40d07b
or ecx, 6
mov dword [ebp - 0xc0], ecx
cmp dword [esi + 0x3f6c], 0
mov edx, dword [esi + 0x3f10]
mov eax, dword [edi + 0x244]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf4], eax
jne 0x40d0a9
cmp byte [esi + 0x3f1d], 0
je 0x40d0a9
mov al, 1
jmp 0x40d0ab
xor al, al
mov byte [edi + 0xb7], al
lea eax, [edx - 1]
cmp dword [ebp - 0xf4], eax
setl al
mov byte [ebp - 0xbc], al
test ecx, 0x4000000
je 0x40d115
mov edx, dword [ebp - 0xd8]
mov eax, dword [esi + 0x4a20]
mov edx, dword [edx + 0x4a1c]
lea esi, [eax + eax*4]
mov eax, dword [edi + 0xc8]
cmp edi, dword [edx + esi*8 + 4]
setne cl
cmp eax, dword [edx + esi*8]
mov esi, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xf8]
setne al
or cl, al
mov al, byte [ebp - 0xbc]
or al, cl
mov ecx, dword [ebp - 0xc0]
mov byte [ebp - 0xbc], al
mov byte [edi + 0xb5], al
test al, al
je 0x40d134
or byte [edi + 0xd8], 8
or byte [edi + 0xd9], 8
or byte [edi + 0xda], 8
cmp dword [ebp - 0xf4], edx
je 0x40d1ae
mov dl, byte [ebp - 0xe8]
push ecx
mov ecx, edi
call fcn.0040a680
mov edx, dword [ebp - 0xc0]
add esp, 4
mov dword [edi + 0xc], edx
test dword [esi + 0x495c], 0x100
je 0x40d16a
mov eax, dword [esi + 0x4994]
jmp 0x40d16c
xor eax, eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xf8]
mov dword [edi + 0x244], eax
xor eax, eax
movsd xmm0, qword [esi + 0x3f08]
cvtpd2ps xmm0, xmm0
mov word [edi + 0xc0], ax
movss dword [edi + 0x248], xmm0
movzx eax, word [esi + 0x3f84]
inc dword [esi + 0x3f84]
mov word [edi + 0xc2], ax
jmp 0x40d1b7
mov edx, dword [edi + 0xc]
mov dword [ebp - 0xc0], edx
mov eax, dword [esi + 0x3f6c]
test eax, eax
jne 0x40d1c5
xor ecx, ecx
jmp 0x40d1d2
imul ecx, eax, 0x64
mov eax, dword [esi + 0x3f74]
mov ecx, dword [eax + ecx - 0x64]
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xdc], ecx
cmp eax, dword [ebp - 0xf8]
je 0x40d1f5
mov eax, edx
and eax, 0x5000000
neg eax
sbb eax, eax
and eax, ecx
jmp 0x40d1fb
mov eax, dword [edi + 0x304]
cmp dword [edi + 0xec], 0
mov dword [ebp - 0xec], eax
lea eax, [edi + 0xec]
jne 0x40d236
cmp dword [eax + 4], 0
jne 0x40d225
push 8
mov ecx, eax
call fcn.0041a640
lea eax, [edi + 0xec]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 8]
mov dword [ecx + edx*4], eax
inc dword [edi + 0xec]
lea ecx, [ebp - 0xb4]
mov dword [esi + 0x3f94], edi
call fcn.004012f0
mov eax, dword [esi + 0x4958]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x3f94]
movups xmmword [ebp - 0x68], xmm0
mov ecx, dword [esi + 0x3f6c]
movups xmm0, xmmword [esi + 0x4910]
movzx eax, word [eax + 0xec]
mov word [ebp - 0x68], ax
movzx eax, word [esi + 0x49cc]
mov word [ebp - 0x66], ax
movzx eax, word [esi + 0x49d8]
mov word [ebp - 0x64], ax
movzx eax, word [esi + 0x49e4]
mov word [ebp - 0x62], ax
movzx eax, word [esi + 0x49f0]
movups xmmword [ebp - 0xb4], xmm0
mov word [ebp - 0x60], ax
movups xmm0, xmmword [esi + 0x4920]
movzx eax, word [esi + 0x4a08]
mov word [ebp - 0x5e], ax
movzx eax, word [esi + 0x49fc]
movups xmmword [ebp - 0xa4], xmm0
mov word [ebp - 0x5c], ax
movups xmm0, xmmword [esi + 0x4930]
movzx eax, word [esi + 0x4a20]
mov word [ebp - 0x5a], ax
movzx eax, word [esi + 0x5d24]
movups xmmword [ebp - 0x94], xmm0
mov word [ebp - 0x58], 0
movups xmm0, xmmword [esi + 0x4940]
mov word [ebp - 0x58], ax
lea eax, [esi + 0x3f6c]
mov dword [ebp - 0xb8], edi
mov edi, dword [eax + 4]
mov dword [ebp - 0xc4], eax
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [esi + 0x4950]
movq qword [ebp - 0x74], xmm0
cmp ecx, edi
jne 0x40d356
inc ecx
test edi, edi
je 0x40d33a
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x40d33f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x3f6c]
call fcn.0041aed0
mov eax, dword [ebp - 0xc4]
imul edi, dword [eax], 0x64
lea esi, [ebp - 0xb8]
mov ecx, 0x19
add edi, dword [eax + 8]
rep movsd dword es:[edi], dword [esi]
inc dword [eax]
mov ecx, dword [ebp - 0xc0]
mov esi, dword [ebp - 0xd8]
test ecx, 0x10000000
je 0x40d385
inc dword [esi + 0x5c94]
mov eax, dword [ebp - 0xf4]
mov edi, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xf8]
je 0x40d456
mov edx, dword [ebp - 0xec]
mov dword [edi + 0x304], edx
mov dword [edi + 0x318], edi
mov dword [edi + 0x314], edi
mov dword [edi + 0x310], edi
mov dword [edi + 0x30c], edi
test edx, edx
je 0x40d40f
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x40d3df
mov eax, dword [edx + 0x30c]
mov dword [edi + 0x30c], eax
test ecx, 0x4000000
je 0x40d3f3
mov eax, dword [edx + 0x310]
mov dword [edi + 0x310], eax
test ecx, 0x8000000
jne 0x40d40f
test ecx, 0x5000000
je 0x40d40f
mov eax, dword [edx + 0x314]
mov dword [edi + 0x314], eax
test dword [edi + 0xc], 0x800000
je 0x40d437
mov edx, edi
nop word [eax + eax]
mov eax, dword [edx + 0x304]
mov edx, eax
mov dword [edi + 0x318], eax
test dword [edx + 0xc], 0x800000
jne 0x40d420
mov edx, dword [ebp - 0xdc]
mov eax, ecx
and eax, 0x1000000
mov dword [edi + 0x308], edx
neg eax
sbb eax, eax
and eax, edx
mov dword [edi + 0x31c], eax
test ecx, 0x800000
je 0x40d466
mov eax, dword [esi + 0x48e0]
jmp 0x40d469
mov eax, dword [edi + 8]
mov ecx, dword [0x4454a8]
mov dword [ebp - 0xd0], eax
lea edx, [ecx + 0x49f0]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc8], edx
mov eax, dword [ecx + 0x3f94]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc4], eax
cmp dword [edx], ecx
jne 0x40d4d0
test ecx, ecx
je 0x40d4af
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xc8]
sar eax, 1
add eax, ecx
jmp 0x40d4b4
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.0041ae00
mov edi, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
mov esi, dword [ebp - 0xd0]
mov dword [ecx + eax*8], esi
mov esi, dword [ebp - 0xc4]
mov dword [ecx + eax*8 + 4], esi
mov ecx, dword [ebp - 0x24]
inc dword [edx]
test dword [ebp - 0xc0], 0x4000000
mov esi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd0]
mov dword [ecx + 0x48e0], eax
mov eax, dword [esi + 0x48e0]
mov dword [edi + 0x35c], eax
je 0x40d5dc
mov eax, dword [esi + 0x4a20]
mov edx, dword [esi + 0x4a1c]
mov dword [ebp - 0xc8], edx
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0xdc]
mov dword [edx + ecx*8 + 4], edi
mov dword [ebp - 0xd0], ecx
mov eax, dword [eax + 0x150]
mov dword [edx + ecx*8 + 0xc], eax
lea edx, [esi + 0x4a20]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [ebp - 0xc4], eax
cmp ecx, eax
jne 0x40d58f
inc ecx
test eax, eax
je 0x40d577
cdq
sub eax, edx
lea edx, [esi + 0x4a20]
sar eax, 1
add eax, dword [ebp - 0xc4]
jmp 0x40d57c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.0041ad30
lea edx, [esi + 0x4a20]
mov eax, dword [edx]
mov edi, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xc8]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
movups xmm0, xmmword [esi + edi*8]
movups xmmword [eax + ecx*8], xmm0
movups xmm0, xmmword [esi + edi*8 + 0x10]
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq xmm0, qword [esi + edi*8 + 0x20]
movq qword [eax + ecx*8 + 0x20], xmm0
mov eax, edi
mov edi, dword [ebp - 0xe4]
mov ecx, esi
inc dword [edx]
mov esi, dword [ebp - 0xd8]
mov eax, dword [ecx + eax*8]
mov dword [edi + 0xc8], eax
test byte [esi + 0x495c], 1
mov byte [ebp - 0xb9], 0
mov byte [ebp - 0xbb], 0
mov byte [ebp - 0xba], 0
je 0x40d69e
mov dl, byte [edi + 0xd8]
mov ecx, dword [esi + 0x4960]
movsx eax, dl
test ecx, eax
setne byte [ebp - 0xb9]
test ecx, eax
je 0x40d68d
movss xmm1, dword [esi + 0x4978]
movss xmm0, dword [esi + 0x4974]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x441e54]
jbe 0x40d68d
mov eax, dword [esi + 0x496c]
mov ecx, dword [esi + 0x4970]
mov dword [edi + 0xe0], ecx
mov dword [edi + 0xdc], eax
mov eax, dword [esi + 0x4974]
mov ecx, dword [esi + 0x4978]
mov dword [edi + 0xe8], ecx
mov dword [edi + 0xe4], eax
mov eax, dword [edi + 0xd8]
movzx ecx, dl
and eax, 0xffffff00
and ecx, 0xf1
or ecx, eax
mov dword [edi + 0xd8], ecx
jmp 0x40d69e
push ecx
lea edx, [esi + 0x496c]
mov ecx, edi
call fcn.00410470
add esp, 4
test byte [esi + 0x495c], 2
xorps xmm5, xmm5
je 0x40d746
mov cl, byte [edi + 0xd9]
movsx eax, cl
and eax, dword [esi + 0x4964]
je 0x40d6d5
movss xmm0, dword [esi + 0x497c]
comiss xmm0, xmm5
jbe 0x40d6d5
mov byte [ebp - 0xbb], 1
jmp 0x40d6e0
mov byte [ebp - 0xbb], 0
test eax, eax
je 0x40d6f6
movss xmm0, dword [esi + 0x4980]
comiss xmm0, xmm5
jbe 0x40d6fd
mov byte [ebp - 0xba], 1
jmp 0x40d704
mov byte [ebp - 0xbb], 0
mov byte [ebp - 0xba], 0
test byte [edi + 0x10], 4
je 0x40d718
test cl, 4
jne 0x40d718
mov eax, dword [edi + 0x28]
mov dword [esi + 0x497c], eax
test byte [edi + 0x10], 8
je 0x40d730
test byte [edi + 0xd9], 4
jne 0x40d730
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x4980], eax
push dword [esi + 0x4964]
lea edx, [esi + 0x497c]
mov ecx, edi
call fcn.004105d0
add esp, 4
test byte [esi + 0x495c], 0x80
je 0x40d78d
movss xmm0, dword [esi + 0x498c]
comiss xmm0, xmm5
jb 0x40d76e
movss dword [edi + 0x8c], xmm0
mov dword [edi + 0x94], 0
movss xmm0, dword [esi + 0x4990]
comiss xmm0, xmm5
jb 0x40d78d
movss dword [edi + 0x90], xmm0
mov dword [edi + 0x98], 0
test byte [esi + 0x495c], 4
je 0x40d7aa
mov eax, dword [esi + 0x4984]
mov ecx, dword [esi + 0x4988]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
jmp 0x40d7c6
mov eax, dword [ebp - 0xf4]
cmp eax, dword [ebp - 0xf8]
je 0x40d7c6
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
test byte [esi + 0x495c], 8
je 0x40d813
mov ecx, dword [esi + 0x4968]
mov dl, byte [esi + 0x4998]
test ecx, ecx
je 0x40d7ea
movsx eax, byte [edi + 0xda]
test ecx, eax
je 0x40d813
movzx ecx, byte [edi + 0xda]
mov eax, dword [edi + 0xd8]
and ecx, 0xf1
shl ecx, 0x10
and eax, 0xff00ffff
or ecx, eax
mov byte [edi + 0xb1], dl
mov dword [edi + 0xd8], ecx
test byte [esi + 0x495c], 0x20
je 0x40d828
xor edx, edx
mov ecx, edi
call fcn.0040fe10
xorps xmm5, xmm5
mov ah, byte [edi + 0xb5]
test ah, ah
je 0x40d84e
and byte [edi + 0xd8], 0xf7
mov al, byte [edi + 0xda]
and byte [edi + 0xd9], 0xf7
and al, 0xf7
mov byte [edi + 0xda], al
mov ecx, dword [0x4454a8]
mov byte [edi + 0xb4], 0
test dword [ecx + 0x495c], 0x200
je 0x40d8d4
mov edx, dword [ecx + 0x49c0]
test dl, 1
je 0x40d8d4
test ah, ah
jne 0x40d8d4
cmp byte [edi + 0xb6], ah
jne 0x40d8d4
test dl, 2
je 0x40d8a6
cmp dword [ecx + 0x3f98], 0
je 0x40d8a6
mov esi, dword [ecx + 0x3f98]
mov eax, dword [edi + 0x30c]
cmp eax, dword [esi + 0x30c]
mov esi, dword [ebp - 0xd8]
je 0x40d8d4
test dl, 4
je 0x40d8c3
mov ecx, dword [ecx + 0x4a44]
test ecx, ecx
je 0x40d8c3
mov eax, dword [edi + 0x30c]
cmp eax, dword [ecx + 0x30c]
je 0x40d8d4
mov dword [edi + 0x270], 0
mov byte [edi + 0xb4], 1
mov eax, dword [ebp - 0xf4]
mov dword [esi + 0x3f94], 0
cmp eax, dword [ebp - 0xf8]
je 0x40f654
cmp byte [edi + 0xb4], 0
jne 0x40f65d
mov eax, dword [ebp - 0xc0]
and eax, 0x3000000
mov byte [edi + 0xae], 1
cmp dword [ebp - 0x100], 0
mov dword [ebp - 0xdc], eax
mov al, byte [edi + 0xd5]
mov byte [ebp - 0xed], al
setne al
mov byte [edi + 0xb9], al
mov dword [edi + 0x21c], 0xff7fffff
mov dword [edi + 0x220], 0xff7fffff
mov dword [edi + 0x224], 0x7f7fffff
mov dword [edi + 0x228], 0x7f7fffff
mov eax, dword [edi + 0xf0]
cmp eax, 1
jge 0x40d997
test eax, eax
je 0x40d97a
cdq
sub eax, edx
lea edx, [edi + 0xec]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x40d985
mov ecx, 8
lea edx, [edi + 0xec]
mov eax, 1
cmp ecx, eax
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.0041a640
mov dword [edi + 0xec], 1
mov ecx, dword [edi + 0x270]
call fcn.00423460
cmp byte [edi + 0x368], 0
mov dword [edi + 0x19c], 0xffffffff
je 0x40da02
mov ecx, dword [edi + 0x270]
push dword [edi + 0x360]
add ecx, 0xc
mov byte [edi + 0x368], 0
call fcn.0041aaf0
mov ecx, dword [edi + 0x270]
push dword [edi + 0x364]
add ecx, 0x18
call fcn.0041a810
mov dword [edi + 0x364], 0
mov dword [edi + 0x360], 0
cmp dword [esi + 0x4c10], 0
je 0x40db78
test dword [edi + 0xc], 0x20000
jne 0x40db78
cmp dword [ebp - 0x104], 0
je 0x40db78
mov eax, dword [edi + 4]
mov ecx, eax
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xfc]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40da60
test dl, dl
je 0x40da5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40da60
add eax, 2
add ecx, 2
test dl, dl
jne 0x40da40
xor eax, eax
jmp 0x40da65
sbb eax, eax
or eax, 1
test eax, eax
je 0x40db78
mov ecx, dword [ebp - 0xfc]
mov edx, dword [edi + 0x70]
mov dword [ebp - 0xd0], edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da85
sub ecx, dword [ebp - 0xc4]
lea eax, [ecx + 1]
mov dword [ebp - 0xcc], eax
cmp edx, eax
jae 0x40db57
mov edx, dword [ebp - 0xc8]
test edx, edx
je 0x40db30
mov ecx, dword [0x4454a8]
test ecx, ecx
je 0x40db30
mov eax, dword [ecx + 0x3f10]
mov dword [ebp - 0xd0], eax
movsx eax, word [ecx + 0x5eec]
mov esi, dword [ebp - 0xd0]
add eax, 0xbde
cmp dword [ecx + eax*8], esi
mov esi, dword [ebp - 0xd8]
lea eax, [ecx + eax*8]
je 0x40db26
movsx eax, word [ecx + 0x5eec]
inc eax
mov dword [ebp - 0xc4], 6
cdq
idiv dword [ebp - 0xc4]
movzx eax, dx
mov edx, dword [ebp - 0xd0]
mov word [ecx + 0x5eec], ax
cwde
add eax, 0xbde
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc8]
inc word [eax + 6]
inc dword [ecx + 0x5ee8]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0xcc]
add esp, 4
call fcn.004072b0
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
push eax
push dword [ebp - 0xfc]
push dword [ebp - 0xc8]
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi + 4], eax
add esp, 0xc
mov eax, dword [ebp - 0xd0]
mov dword [edi + 0x70], eax
lea eax, [edi + 0x38]
mov ecx, edi
push eax
lea edx, [edi + 0x30]
call fcn.0040add0
mov al, byte [edi + 0xd4]
add esp, 4
test al, al
jle 0x40db9b
dec al
mov byte [edi + 0xd4], al
mov al, byte [edi + 0xd5]
test al, al
jle 0x40dbad
dec al
mov byte [edi + 0xd5], al
mov al, byte [edi + 0xd6]
test al, al
jle 0x40dbbf
dec al
mov byte [edi + 0xd6], al
cmp dword [ebp - 0x104], 0
mov al, byte [ebp - 0xbb]
mov cl, byte [ebp - 0xba]
jne 0x40dbe3
test al, al
je 0x40dbdc
test cl, cl
jne 0x40dbe3
mov byte [edi + 0xd5], 1
cmp byte [ebp - 0xbc], 0
mov edx, dword [ebp - 0xc0]
je 0x40dc46
test edx, 0x6000000
je 0x40dc46
mov byte [edi + 0xd5], 1
test dl, 0x40
je 0x40dc46
test al, al
jne 0x40dc18
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0
test cl, cl
jne 0x40dc2a
mov dword [edi + 0x2c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [0x4454a8]
mov dword [ebp - 0xd0], ecx
mov eax, dword [ecx + 0x4a40]
mov eax, dword [eax]
mov dword [edi + 0x14], eax
mov dword [ebp - 0xe0], eax
mov dword [ecx + 0x3f94], edi
mov eax, dword [edi + 0x19c]
cmp eax, 0xffffffff
je 0x40dc7f
shl eax, 9
add eax, dword [ecx + 0x4d08]
jmp 0x40dc81
xor eax, eax
mov dword [ecx + 0x4ce8], eax
mov dword [ecx + 0x3d04], 0x3f800000
mov dword [ebp - 0xcc], eax
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3d00]
mov eax, dword [edi + 0x304]
mulss xmm0, dword [edi + 0x268]
test eax, eax
je 0x40dcbb
mulss xmm0, dword [eax + 0x268]
cmp dword [ebp - 0xcc], 0
movss dword [ecx + 0x3d14], xmm0
movss dword [ecx + 0x3cfc], xmm0
jne 0x40dce1
cmp dword [edi + 0x198], 0
jne 0x40dce1
mov al, 1
jmp 0x40dce3
xor al, al
mov byte [edi + 0x158], al
test edx, 0x1000000
je 0x40dcfb
movss xmm0, dword [esi + 0x38d8]
jmp 0x40dd1d
test edx, 0x6000000
je 0x40dd15
test edx, 0x8000000
jne 0x40dd15
movss xmm0, dword [esi + 0x38e0]
jmp 0x40dd1d
movss xmm0, dword [esi + 0x38bc]
movss dword [edi + 0x54], xmm0
xorps xmm1, xmm1
mov eax, dword [esi + 0x38b0]
mov ecx, dword [esi + 0x38b4]
mov dword [edi + 0x48], eax
mov eax, edx
and eax, 0x5000000
mov dword [edi + 0x4c], ecx
cmp eax, 0x1000000
jne 0x40dd75
test byte [edi + 0x10], 2
jne 0x40dd75
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x40dd75
test edx, 0x400
je 0x40dd66
movss xmm0, dword [esi + 0x38b4]
jmp 0x40dd69
xorps xmm0, xmm0
mov dword [edi + 0x48], 0
movss dword [edi + 0x4c], xmm0
cmp byte [ebp - 0xbb], 0
movss xmm0, dword [edi + 0x48]
maxss xmm0, dword [esi + 0x38f4]
maxss xmm0, dword [esi + 0x49b8]
movss dword [edi + 0x15c], xmm0
mov eax, dword [esi + 0x49bc]
mov dword [edi + 0x160], eax
mov eax, dword [ebp - 0xe8]
mov byte [ebp - 0xc8], al
je 0x40ddc8
movss xmm0, dword [edi + 0x40]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40ddc8
mov byte [ebp - 0xe8], 1
cmp byte [ebp - 0xba], 0
je 0x40dde6
movss xmm0, dword [edi + 0x44]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40dde6
mov byte [ebp - 0xc8], 1
test dl, 0x21
jne 0x40df45
test byte [edi + 0xc], 1
mov ecx, dword [edi]
je 0x40ddfc
xorps xmm0, xmm0
jmp 0x40de2e
movss xmm2, dword [ecx + 0x3d00]
mov eax, dword [edi + 0x304]
mulss xmm2, dword [edi + 0x268]
test eax, eax
je 0x40de1e
mulss xmm2, dword [eax + 0x268]
movss xmm0, dword [ecx + 0x38e8]
addss xmm0, xmm0
addss xmm0, xmm2
movss xmm2, dword [edi + 0x18]
movaps xmm3, xmm2
movss xmm4, dword [edi + 0x1c]
addss xmm3, dword [edi + 0x28]
addss xmm0, dword [edi + 0x1c]
mov edx, dword [ebp - 0xd0]
cmp dword [esi + 0x3f98], edi
jne 0x40def5
cmp dword [esi + 0x3fd0], 0
jne 0x40def5
cmp dword [esi + 0x3fd4], 0
jne 0x40def5
mov eax, dword [edx + 0x3f94]
movss xmm5, dword [edx + 0x390c]
movss xmm7, dword [edx + 0xbc]
maxss xmm2, dword [eax + 0x21c]
maxss xmm4, dword [eax + 0x220]
minss xmm3, dword [eax + 0x224]
minss xmm0, dword [eax + 0x228]
subss xmm2, xmm5
comiss xmm7, xmm2
jb 0x40def5
movss xmm2, dword [edx + 0x3910]
movss xmm6, dword [edx + 0xc0]
subss xmm4, xmm2
comiss xmm6, xmm4
jb 0x40def5
addss xmm5, xmm3
comiss xmm5, xmm7
jbe 0x40def5
addss xmm2, xmm0
comiss xmm2, xmm6
jbe 0x40def5
cmp word [esi + 0x2aea], 2
jne 0x40def5
cmp dword [edx + 0x4700], 0xffffffff
jne 0x40def5
mov byte [edi + 0xb2], 1
cmp byte [edi + 0xb2], 0
je 0x40df4c
mov cl, byte [edi + 0xb1]
test cl, cl
sete al
test cl, cl
mov byte [edi + 0xb1], al
mov ecx, 1
mov eax, dword [ebp - 0xc8]
movzx eax, al
cmovne eax, ecx
test dword [edi + 0xc], 0x100
mov dword [ebp - 0xc8], eax
jne 0x40df4c
comiss xmm1, dword [edx + 0x5dc8]
jb 0x40df4c
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x5dc8], eax
jmp 0x40df4c
mov byte [edi + 0xb1], 0
movss xmm0, dword [edi + 0xa4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
movss dword [ebp - 0xcc], xmm0
movss xmm0, dword [edi + 0xa8]
mov byte [edi + 0xb2], 0
movss dword [ebp - 0xd4], xmm0
mov dword [edi + 0x58], 0
mov dword [edi + 0x60], 0
test dl, 1
je 0x40df90
xorps xmm2, xmm2
jmp 0x40dfc5
movss xmm0, dword [edi + 0x268]
mov edx, dword [edi + 0x304]
mulss xmm0, dword [ecx + 0x3d00]
test edx, edx
je 0x40dfb2
mulss xmm0, dword [edx + 0x268]
movss xmm2, dword [ecx + 0x38e8]
mov edx, dword [edi + 0xc]
addss xmm2, xmm2
addss xmm2, xmm0
test edx, 0x400
je 0x40e007
movss xmm1, dword [edi + 0x268]
mov eax, dword [edi + 0x304]
mulss xmm1, dword [ecx + 0x3d00]
test eax, eax
je 0x40dfef
mulss xmm1, dword [eax + 0x268]
movss xmm0, dword [ecx + 0x38e8]
addss xmm1, dword [edi + 0x160]
addss xmm0, xmm0
addss xmm1, xmm0
addss xmm1, xmm2
mov dword [edi + 0x64], 0
lea eax, [edi + 0x38]
mov dword [edi + 0xa4], 0
push eax
mov edx, edi
mov dword [edi + 0xa8], 0
lea ecx, [ebp - 0x2c]
movss dword [edi + 0x5c], xmm1
call fcn.0040af00
add esp, 4
test byte [ebp - 0xc0], 0x40
je 0x40e08b
cmp byte [edi + 0xb1], 0
jne 0x40e08b
cmp byte [ebp - 0xbb], 0
jne 0x40e068
movss xmm0, dword [ebp - 0x2c]
movss dword [edi + 0x28], xmm0
mov byte [ebp - 0xe8], 1
cmp byte [ebp - 0xba], 0
jne 0x40e13a
movss xmm0, dword [ebp - 0x28]
movss dword [edi + 0x2c], xmm0
mov byte [ebp - 0xc8], 1
jmp 0x40e13a
mov al, byte [edi + 0xcc]
test al, al
jg 0x40e0a2
cmp byte [edi + 0xcd], 0
jle 0x40e13a
cmp byte [ebp - 0xbb], 0
jne 0x40e0d5
test al, al
jle 0x40e0d5
cmp byte [edi + 0xce], 0
je 0x40e0c4
movss xmm0, dword [edi + 0x28]
maxss xmm0, dword [ebp - 0x2c]
jmp 0x40e0c9
movss xmm0, dword [ebp - 0x2c]
movss dword [edi + 0x28], xmm0
mov byte [ebp - 0xe8], 1
cmp byte [ebp - 0xba], 0
jne 0x40e10d
cmp byte [edi + 0xcd], 0
jle 0x40e10d
cmp byte [edi + 0xce], 0
je 0x40e0fc
movss xmm0, dword [edi + 0x2c]
maxss xmm0, dword [ebp - 0x28]
jmp 0x40e101
movss xmm0, dword [ebp - 0x28]
movss dword [edi + 0x2c], xmm0
mov byte [ebp - 0xc8], 1
cmp byte [edi + 0xb1], 0
jne 0x40e13a
test dword [edi + 0xc], 0x100
mov ecx, dword [0x4454a8]
jne 0x40e13a
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x5dc8]
jb 0x40e13a
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5dc8], eax
lea esi, [edi + 0x28]
mov edx, edi
push esi
lea ecx, [ebp - 0x160]
call fcn.0040aca0
add esp, 4
cmp byte [edi + 0xb1], 0
movss xmm2, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [ebp - 0xc0]
movss dword [esi], xmm2
movss dword [esi + 4], xmm1
je 0x40e1c9
test eax, 0x1000000
jne 0x40e1c9
test byte [edi + 0xc], 1
mov edx, dword [edi]
je 0x40e183
xorps xmm1, xmm1
jmp 0x40e1b5
movss xmm0, dword [edx + 0x3d00]
mov ecx, dword [edi + 0x304]
mulss xmm0, dword [edi + 0x268]
test ecx, ecx
je 0x40e1a5
mulss xmm0, dword [ecx + 0x268]
movss xmm1, dword [edx + 0x38e8]
addss xmm1, xmm1
addss xmm1, xmm0
addss xmm2, dword [edi + 0x18]
addss xmm1, dword [edi + 0x1c]
subss xmm2, dword [edi + 0x18]
subss xmm1, dword [edi + 0x1c]
cmp byte [ebp - 0xbc], 0
movss dword [edi + 0x20], xmm2
movss dword [edi + 0x24], xmm1
je 0x40e226
and eax, 0xc000000
mov dword [edi + 0xd0], 0xffffffff
cmp eax, 0x4000000
jne 0x40e226
cmp byte [ebp - 0xb9], 0
jne 0x40e226
mov edx, dword [ebp - 0xd8]
mov eax, dword [edx + 0x4a20]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x4a28]
movss xmm0, dword [eax + ecx*8 - 0x10]
movss xmm1, dword [eax + ecx*8 - 0xc]
movss dword [edi + 0x18], xmm0
movss dword [edi + 0x1c], xmm1
mov edx, dword [ebp - 0xc0]
test edx, 0x1000000
je 0x40e2d5
mov esi, dword [ebp - 0xec]
mov ax, word [esi + 0x188]
lea ecx, [esi + 0x188]
mov word [edi + 0xc0], ax
mov eax, dword [ecx + 4]
cmp dword [ecx], eax
jne 0x40e292
mov edx, dword [ecx]
inc edx
mov dword [ebp - 0xc4], edx
test eax, eax
je 0x40e276
cdq
sub eax, edx
mov edx, dword [ebp - 0xc4]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40e27b
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041a640
mov edx, dword [ebp - 0xc0]
lea ecx, [esi + 0x188]
mov ecx, dword [ecx]
mov eax, dword [esi + 0x190]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x188]
mov al, byte [ebp - 0xb9]
mov ecx, dword [ebp - 0xdc]
test edx, 0x4000000
jne 0x40e2e1
test al, al
jne 0x40e2e1
cmp ecx, 0x3000000
je 0x40e2e1
mov eax, dword [esi + 0xf8]
mov ecx, dword [esi + 0xfc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0xdc]
mov al, byte [ebp - 0xb9]
movss xmm1, dword [edi + 0xdc]
ucomiss xmm1, dword [0x441fa0]
lahf
test ah, 0x44
jnp 0x40e34d
cmp byte [edi + 0xd5], 0
jne 0x40e34d
movss xmm0, dword [edi + 0x20]
lea edx, [ebp - 0x148]
mulss xmm0, dword [edi + 0xe4]
mov ecx, edi
push 0
subss xmm1, xmm0
movss xmm0, dword [edi + 0xe0]
movss dword [ebp - 0x148], xmm1
movss xmm1, dword [edi + 0xe8]
mulss xmm1, dword [edi + 0x24]
subss xmm0, xmm1
movss dword [ebp - 0x144], xmm0
call fcn.00410470
add esp, 4
jmp 0x40e3ad
test edx, 0x10000000
je 0x40e35d
lea ecx, [ebp - 0x168]
jmp 0x40e393
test edx, 0x4000000
je 0x40e379
test al, al
jne 0x40e379
cmp byte [ebp - 0xed], al
jle 0x40e379
lea ecx, [ebp - 0x170]
jmp 0x40e393
test edx, 0x2000000
je 0x40e3b3
test al, al
jne 0x40e3b3
cmp ecx, 0x3000000
je 0x40e3b3
lea ecx, [ebp - 0x178]
mov edx, edi
call fcn.00414280
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
movss dword [edi + 0x18], xmm0
movss dword [edi + 0x1c], xmm1
mov edx, dword [ebp - 0xc0]
cmp byte [ebp - 0xb9], 0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd8]
movss xmm7, dword [eax + 0x18]
movss xmm6, dword [eax + 0x1c]
addss xmm7, dword [eax + 0x20]
addss xmm6, dword [eax + 0x24]
movss xmm0, dword [eax + 8]
movss xmm1, dword [eax + 0xc]
movaps xmm5, xmm0
movss xmm3, dword [ecx + 0x3978]
movaps xmm4, xmm1
movss xmm2, dword [ecx + 0x3974]
maxss xmm3, dword [ecx + 0x3980]
maxss xmm2, dword [ecx + 0x397c]
addss xmm5, dword [eax + 0x10]
addss xmm4, dword [eax + 0x14]
movss dword [ebp - 0x40], xmm0
subss xmm6, xmm3
movss dword [ebp - 0x3c], xmm1
addss xmm3, dword [eax + 0x1c]
subss xmm7, xmm2
movss dword [ebp - 0x38], xmm5
addss xmm2, dword [eax + 0x18]
movss dword [ebp - 0x34], xmm4
movss dword [ebp - 0x44], xmm6
movss dword [ebp - 0x4c], xmm3
movss dword [ebp - 0x48], xmm7
movss dword [ebp - 0x50], xmm2
jne 0x40e4fc
test edx, 0x1000000
jne 0x40e4fc
subss xmm5, xmm0
xorps xmm0, xmm0
comiss xmm5, xmm0
jbe 0x40e4fc
subss xmm4, xmm1
comiss xmm4, xmm0
jbe 0x40e4fc
mov eax, dword [0x4454a8]
movss xmm1, dword [edi + 0x24]
cmp byte [eax + 0x4b], 0
je 0x40e4c7
test byte [edi + 0xc], 1
jne 0x40e4c7
mov esi, dword [edi]
mov eax, dword [edi + 0x304]
movss xmm0, dword [esi + 0x3d00]
mulss xmm0, dword [edi + 0x268]
test eax, eax
je 0x40e4b7
mulss xmm0, dword [eax + 0x268]
movss xmm1, dword [esi + 0x38e8]
addss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [edi + 0x1c]
subss xmm3, xmm1
subss xmm2, dword [edi + 0x20]
comiss xmm3, xmm0
ja 0x40e4e1
movaps xmm3, xmm6
minss xmm3, xmm0
movss xmm0, dword [edi + 0x18]
comiss xmm2, xmm0
ja 0x40e4f2
movaps xmm2, xmm7
minss xmm2, xmm0
movss dword [edi + 0x18], xmm2
movss dword [edi + 0x1c], xmm3
cvttss2si eax, dword [edi + 0x18]
movd xmm1, eax
cvttss2si eax, dword [edi + 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [edi + 0x18], xmm1
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1c], xmm0
test edx, 0x1000000
je 0x40e530
movss xmm2, dword [ecx + 0x38d4]
jmp 0x40e550
mov eax, edx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40e548
movss xmm2, dword [ecx + 0x38dc]
jmp 0x40e550
movss xmm2, dword [ecx + 0x38b8]
xor al, al
movss dword [edi + 0x50], xmm2
mov dword [ebp - 0xd0], eax
cmp byte [ebp - 0xbc], al
je 0x40e595
test edx, 0x1000
jne 0x40e595
test edx, 0x4000000
je 0x40e57e
mov byte [ebp - 0xd0], 1
jmp 0x40e595
test edx, 0x3000000
movzx eax, al
mov esi, 1
cmove eax, esi
mov dword [ebp - 0xd0], eax
mov eax, edx
mov dword [ebp - 0x30], 0xffffffff
and eax, 0x5000000
mov dword [ebp - 0x24], 0xffffffff
xorps xmm0, xmm0
movaps xmmword [ebp - 0x20], xmm0
cmp eax, 0x1000000
jne 0x40e5bc
xor eax, eax
jmp 0x40e5c5
xor eax, eax
cmp byte [ecx + 0x4a], al
setne al
inc eax
cmp byte [edi + 0xb1], 0
movss xmm1, dword [ecx + 0x3cfc]
addss xmm2, dword [0x441ecc]
movaps xmm0, xmm1
mov dword [ebp - 0xc4], eax
mulss xmm1, dword [0x441e74]
mulss xmm0, dword [0x441ed0]
addss xmm2, xmm1
maxss xmm0, xmm2
cvttss2si esi, xmm0
jne 0x40e65e
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
call fcn.0040b1e0
add esp, 0x14
test eax, eax
je 0x40e652
mov ecx, dword [ebp - 0xe8]
test al, 1
mov edx, 1
movzx ecx, cl
cmovne ecx, edx
test al, 2
mov eax, dword [ebp - 0xc8]
movzx eax, al
cmovne eax, edx
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 0xc8], al
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xd8]
cmp byte [edi + 0xb1], 0
mov al, byte [ebp - 0x30]
mov byte [edi + 0xba], al
mov al, byte [ebp - 0x24]
mov byte [edi + 0xbb], al
jne 0x40e7d0
cmp dword [ebp - 0x104], 0
movss xmm0, dword [edi + 0x64]
addss xmm0, dword [edi + 0x5c]
movss xmm3, dword [edi + 0x1e4]
movss xmm4, dword [edi + 0x1e8]
subss xmm3, dword [edi + 0x1dc]
subss xmm4, dword [edi + 0x1e0]
movss xmm5, dword [edi + 0x2c]
movss xmm6, dword [edi + 0x28]
subss xmm5, xmm0
xorps xmm0, xmm0
addss xmm3, dword [ebp - 0xcc]
addss xmm4, dword [ebp - 0xd4]
jne 0x40e6d9
xorps xmm2, xmm2
xorps xmm1, xmm1
jmp 0x40e6f5
movss xmm2, dword [edi + 0x48]
movss xmm1, dword [edi + 0x4c]
addss xmm2, xmm2
addss xmm1, xmm1
addss xmm2, dword [edi + 0x30]
addss xmm1, dword [edi + 0x34]
cmp byte [ebp - 0xe8], 0
jne 0x40e701
movaps xmm6, xmm3
mov eax, dword [ebp - 0xc8]
test al, al
jne 0x40e70e
movaps xmm5, xmm4
test edx, 0x4000
jne 0x40e724
comiss xmm1, xmm5
jbe 0x40e720
test dl, 8
je 0x40e724
xor al, al
jmp 0x40e726
mov al, 1
mov byte [ebp - 0xb9], al
mov byte [edi + 0xad], al
test edx, 0x8000
jne 0x40e774
test al, al
je 0x40e748
movss xmm3, dword [ecx + 0x391c]
jmp 0x40e74b
xorps xmm3, xmm3
subss xmm6, xmm3
comiss xmm2, xmm6
jbe 0x40e768
mov eax, edx
and eax, 0x808
cmp eax, 0x800
mov al, byte [ebp - 0xb9]
je 0x40e774
mov byte [edi + 0xac], 0
xorps xmm1, xmm1
jmp 0x40e79d
mov byte [edi + 0xac], 1
test al, al
jne 0x40e795
comiss xmm1, xmm5
jbe 0x40e78d
test dl, 8
jne 0x40e78d
mov al, 1
jmp 0x40e78f
xor al, al
mov byte [edi + 0xad], al
movss xmm1, dword [ecx + 0x391c]
test al, al
je 0x40e7a9
movss xmm0, dword [ecx + 0x391c]
movss dword [edi + 0xa4], xmm0
addss xmm0, dword [edi + 0x60]
movss dword [edi + 0xa8], xmm1
movss dword [edi + 0x60], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x64]
movss dword [edi + 0x64], xmm0
mov eax, edx
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x40e7f7
cmp dword [ebp - 0xdc], 0x3000000
je 0x40e7f7
mov eax, dword [ebp - 0xec]
add eax, 0x21c
jmp 0x40e7fa
lea eax, [ebp - 0x40]
test byte [edi + 0xc], 1
movups xmm0, xmmword [eax]
mov eax, dword [edi]
movss xmm5, dword [edi + 0x1c]
movups xmmword [ebp - 0x130], xmm0
movss xmm0, dword [edi + 0x18]
movaps xmm7, xmm5
addss xmm7, dword [edi + 0x24]
movaps xmm6, xmm0
movss dword [ebp - 0xcc], xmm0
addss xmm6, dword [edi + 0x20]
je 0x40e833
xorps xmm4, xmm4
jmp 0x40e86f
movss xmm0, dword [eax + 0x3d00]
mov eax, dword [edi + 0x304]
mulss xmm0, dword [edi + 0x268]
test eax, eax
je 0x40e855
mulss xmm0, dword [eax + 0x268]
mov eax, dword [edi]
movss xmm4, dword [eax + 0x38e8]
addss xmm4, xmm4
addss xmm4, xmm0
movss xmm0, dword [ebp - 0xcc]
movaps xmm2, xmm0
movss dword [ebp - 0x120], xmm0
addss xmm2, dword [edi + 0x28]
movss xmm0, dword [edi + 0x1c]
movaps xmm1, xmm5
addss xmm1, xmm4
movss dword [ebp - 0x11c], xmm0
movss xmm0, dword [ebp - 0xcc]
mov eax, edx
and eax, 0x401
xorps xmm3, xmm3
movss dword [ebp - 0x118], xmm2
movss dword [ebp - 0x114], xmm1
movss dword [edi + 0x1cc], xmm0
movss dword [edi + 0x1d0], xmm5
movss dword [edi + 0x1d4], xmm6
movss dword [edi + 0x1d8], xmm7
movss xmm0, dword [edi + 0x1cc]
movss xmm6, dword [ebp - 0x130]
movss xmm7, dword [ebp - 0x12c]
maxss xmm0, xmm6
maxss xmm5, xmm7
movss dword [edi + 0x1cc], xmm0
movss dword [edi + 0x1d0], xmm5
movss xmm1, dword [edi + 0x1d4]
movss xmm0, dword [edi + 0x1d8]
minss xmm1, dword [ebp - 0x128]
minss xmm0, dword [ebp - 0x124]
movss dword [edi + 0x1d4], xmm1
movss dword [edi + 0x1d8], xmm0
movss xmm1, dword [edi + 0x18]
movss xmm2, dword [edi + 0x1c]
movaps xmm4, xmm1
movaps xmm5, xmm2
addss xmm1, dword [edi + 0x20]
addss xmm2, dword [edi + 0x24]
addss xmm4, dword [edi + 0x58]
addss xmm5, dword [edi + 0x5c]
subss xmm1, dword [edi + 0x60]
subss xmm2, dword [edi + 0x64]
movss dword [edi + 0x1dc], xmm4
movss dword [edi + 0x1e0], xmm5
movss dword [edi + 0x1e4], xmm1
movss dword [edi + 0x1e8], xmm2
cmp eax, 1
jne 0x40e98f
movss xmm0, dword [edi + 0x54]
jmp 0x40e997
movss xmm0, dword [ecx + 0x38f0]
addss xmm4, dword [0x441e94]
movss dword [ebp - 0xcc], xmm0
addss xmm4, dword [edi + 0x54]
comiss xmm4, xmm3
cvttss2si eax, xmm4
mov dword [ebp - 0xd4], eax
jae 0x40e9d8
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jnp 0x40e9d2
cvttss2si eax, xmm4
dec eax
jmp 0x40e9d8
mov eax, dword [ebp - 0xd4]
movss xmm4, dword [0x441e94]
addss xmm5, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm5, dword [ebp - 0xcc]
movss dword [edi + 0x1ec], xmm0
comiss xmm5, xmm3
cvttss2si eax, xmm5
mov dword [ebp - 0xd4], eax
jae 0x40ea27
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm5
lahf
test ah, 0x44
jnp 0x40ea21
cvttss2si eax, xmm5
dec eax
jmp 0x40ea27
mov eax, dword [ebp - 0xd4]
movss xmm5, dword [edi + 0x54]
addss xmm1, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm5
movss dword [edi + 0x1f0], xmm0
comiss xmm1, xmm3
cvttss2si eax, xmm1
mov dword [ebp - 0xd4], eax
jae 0x40ea6f
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40ea69
cvttss2si eax, xmm1
dec eax
jmp 0x40ea6f
mov eax, dword [ebp - 0xd4]
addss xmm2, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm2, xmm5
movss dword [edi + 0x1f4], xmm0
comiss xmm2, xmm3
cvttss2si eax, xmm2
mov dword [ebp - 0xd4], eax
jae 0x40eab2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x40eaac
cvttss2si eax, xmm2
dec eax
jmp 0x40eab2
mov eax, dword [ebp - 0xd4]
movss xmm4, dword [ebp - 0x124]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1f8], xmm0
movss xmm0, dword [edi + 0x1f0]
comiss xmm7, xmm0
jbe 0x40eadb
movaps xmm1, xmm7
jmp 0x40eae2
movaps xmm1, xmm4
minss xmm1, xmm0
movss xmm2, dword [edi + 0x1ec]
comiss xmm6, xmm2
movss xmm5, dword [ebp - 0x128]
jbe 0x40eafc
movaps xmm0, xmm6
jmp 0x40eb03
movaps xmm0, xmm5
minss xmm0, xmm2
movss dword [edi + 0x1ec], xmm0
movss dword [edi + 0x1f0], xmm1
movss xmm0, dword [edi + 0x1f8]
comiss xmm7, xmm0
ja 0x40eb27
movaps xmm7, xmm4
minss xmm7, xmm0
movss xmm0, dword [edi + 0x1f4]
comiss xmm6, xmm0
ja 0x40eb3b
movaps xmm6, xmm5
minss xmm6, xmm0
movss dword [edi + 0x1f4], xmm6
movss dword [edi + 0x1f8], xmm7
movss xmm0, dword [edi + 0x20]
comiss xmm0, xmm3
jbe 0x40eb67
test edx, 0x2000040
jne 0x40eb67
mulss xmm0, dword [0x441e9c]
jmp 0x40eb77
movss xmm0, dword [ecx + 0x3cfc]
mulss xmm0, dword [0x441f30]
cvttss2si eax, xmm0
mov edx, edi
lea ecx, [ebp - 0x180]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x24c], xmm0
movss xmm1, dword [edi + 0x48]
movss xmm0, dword [edi + 0x1e4]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x1dc]
addss xmm1, dword [edi + 0x30]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss xmm1, dword [edi + 0x4c]
addss xmm1, xmm1
movss dword [edi + 0x84], xmm0
movss xmm0, dword [edi + 0x1e8]
subss xmm0, dword [edi + 0x1e0]
addss xmm1, dword [edi + 0x34]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x88], xmm0
call fcn.004136b0
mov edx, dword [ebp - 0xd8]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [edi + 0x7c], xmm0
movss dword [edi + 0x80], xmm1
mov dword [edi + 0x8c], 0x7f7fffff
mov dword [edi + 0x90], 0x7f7fffff
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], 0
mov eax, dword [edx + 0x3cf8]
mov ecx, dword [edi + 0x270]
mov dword [ebp - 0xc8], ecx
add ecx, 0x7c
mov dword [ebp - 0xe0], ecx
mov eax, dword [eax + 0x30]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp - 0xcc], eax
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x40ec98
inc edx
mov dword [ebp - 0xd4], edx
test eax, eax
je 0x40ec82
cdq
sub eax, edx
mov edx, dword [ebp - 0xd4]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40ec87
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041a640
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
mov edi, dword [ebp - 0xcc]
mov dword [eax + edx*4], edi
mov eax, edi
inc dword [ecx]
mov ecx, dword [ebp - 0xc8]
mov dword [ecx + 0x54], eax
call fcn.004238a0
mov ecx, dword [0x4454a8]
movss xmm0, dword [ebp - 0x130]
movss xmm1, dword [ebp - 0x12c]
mov edi, dword [ebp - 0xe4]
mov eax, dword [ecx + 0x3f94]
movss dword [ebp - 0x40], xmm0
maxss xmm0, dword [ebp - 0x128]
movss dword [ebp - 0x3c], xmm1
maxss xmm1, dword [ebp - 0x124]
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f94]
mov dword [ebp - 0xc8], eax
movss dword [ebp - 0x38], xmm0
movss dword [ebp - 0x34], xmm1
mov eax, dword [eax + 0x270]
mov edx, dword [eax + 0x70]
lea ecx, [eax + 0x70]
mov dword [ebp - 0xcc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0xe0], ecx
cmp edx, eax
jne 0x40ed61
inc edx
mov dword [ebp - 0xd4], edx
test eax, eax
je 0x40ed4b
cdq
sub eax, edx
mov edx, dword [ebp - 0xd4]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40ed50
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041b140
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
add eax, eax
movaps xmm0, xmmword [ebp - 0x40]
movups xmmword [edx + eax*8], xmm0
inc dword [ecx]
mov ecx, dword [ebp - 0xcc]
movups xmmword [ecx + 0x44], xmm0
call fcn.00423800
mov edx, dword [ebp - 0xc8]
mov byte [ebp - 0xba], 0
mov eax, dword [edx + 0x270]
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x78]
add ecx, ecx
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [edx + 0x21c], eax
mov eax, dword [ebp - 0xc0]
movss dword [edx + 0x220], xmm0
and eax, 0x5000000
movss dword [edx + 0x224], xmm1
movss dword [edx + 0x228], xmm2
cmp eax, 0x1000000
jne 0x40eea6
cmp dword [ebp - 0xdc], 0x3000000
je 0x40eea6
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 0x188]
cmp ecx, 2
jl 0x40ee62
mov eax, dword [eax + 0x190]
mov eax, dword [eax + ecx*4 - 8]
test eax, eax
je 0x40ee62
movss xmm5, dword [eax + 0x1c]
movss xmm7, dword [eax + 0x18]
movaps xmm0, xmm5
addss xmm0, dword [eax + 0x24]
movss xmm6, dword [edi + 0x18]
movaps xmm3, xmm7
movss xmm2, dword [edi + 0x1c]
movaps xmm4, xmm6
addss xmm3, dword [eax + 0x20]
addss xmm4, dword [edi + 0x20]
comiss xmm0, dword [edi + 0x1c]
addss xmm2, dword [edi + 0x24]
jbe 0x40ee62
comiss xmm2, xmm5
jbe 0x40ee62
comiss xmm3, xmm6
jbe 0x40ee62
comiss xmm4, xmm7
mov byte [ebp - 0xb9], 1
ja 0x40ee69
mov byte [ebp - 0xb9], 0
mov edx, dword [edi + 0x270]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x40eea6
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 0x270]
cmp dword [eax + 0x18], 0
je 0x40eea6
cmp byte [ebp - 0xb9], 0
jne 0x40eea6
mov byte [ebp - 0xba], 1
mov dword [edi + 0x270], eax
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 0x4c08]
test ecx, ecx
jne 0x40eebc
mov ecx, dword [eax + 0x4a44]
cmp byte [ebp - 0xd0], 0
jne 0x40eee0
test ecx, ecx
je 0x40eed7
mov eax, dword [edi + 0x314]
cmp eax, dword [ecx + 0x314]
je 0x40eee0
mov byte [ebp - 0xcc], 0
jmp 0x40eee7
mov byte [ebp - 0xcc], 1
movd xmm0, esi
lea eax, [ebp - 0x20]
push ecx
cvtdq2ps xmm0, xmm0
lea edx, [ebp - 0x120]
movss dword [esp], xmm0
push eax
push dword [ebp - 0xc4]
push ecx
push dword [ebp - 0xcc]
mov ecx, edi
call fcn.0040c490
add esp, 0x14
cmp byte [ebp - 0xba], 0
je 0x40ef2a
lea eax, [edi + 0x274]
mov dword [edi + 0x270], eax
mov ecx, dword [ebp - 0xc0]
xorps xmm4, xmm4
movss xmm5, dword [edi + 0x40]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm5, xmm4
lahf
test ah, 0x44
jnp 0x40ef55
movss dword [ebp - 0xc4], xmm5
jmp 0x40ef99
movss xmm0, dword [edi + 0x48]
mov eax, ecx
movss xmm1, dword [edi + 0x20]
addss xmm0, xmm0
and eax, 0x808
subss xmm1, xmm0
movss xmm0, dword [edi + 0x60]
addss xmm0, dword [edi + 0x58]
subss xmm1, xmm0
cmp eax, 0x800
jne 0x40ef8a
movss xmm0, dword [edi + 0x30]
jmp 0x40ef8d
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [ebp - 0xc4], xmm0
movss xmm6, dword [edi + 0x44]
ucomiss xmm6, xmm4
lahf
test ah, 0x44
jnp 0x40efac
movaps xmm7, xmm6
jmp 0x40efde
movss xmm0, dword [edi + 0x4c]
movss xmm1, dword [edi + 0x24]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x64]
addss xmm0, dword [edi + 0x5c]
subss xmm1, xmm0
test dl, dl
je 0x40efd7
movss xmm7, dword [edi + 0x34]
jmp 0x40efda
xorps xmm7, xmm7
maxss xmm7, xmm1
movss xmm1, dword [edi + 0x48]
movss xmm2, dword [edi + 0x7c]
movss xmm0, dword [edi + 0x1dc]
subss xmm0, xmm2
movss dword [ebp - 0xd4], xmm1
maxss xmm1, dword [edi + 0x54]
movss dword [ebp - 0xdc], xmm2
ucomiss xmm5, xmm4
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [edi + 0x1fc], xmm2
movss xmm0, dword [edi + 0x80]
movss xmm1, dword [edi + 0x4c]
movss dword [ebp - 0xe4], xmm0
movss xmm0, dword [edi + 0x1e0]
subss xmm0, dword [ebp - 0xe4]
movss dword [ebp - 0xe0], xmm1
maxss xmm1, dword [edi + 0x54]
addss xmm2, dword [ebp - 0xc4]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lahf
movss dword [edi + 0x200], xmm0
addss xmm7, xmm0
movss dword [edi + 0x204], xmm2
movss xmm2, dword [ebp - 0xd4]
movss dword [edi + 0x208], xmm7
movss xmm7, dword [ebp - 0xe0]
movups xmm0, xmmword [edi + 0x1fc]
movups xmmword [edi + 0x20c], xmm0
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [edi + 0x58]
movss dword [ebp - 0xc8], xmm1
movss dword [ebp - 0xcc], xmm0
subss xmm1, dword [ebp - 0xdc]
addss xmm1, xmm2
addss xmm1, xmm0
movss dword [edi + 0x22c], xmm1
movss xmm3, dword [edi + 0x1c]
movss xmm0, dword [edi + 0x5c]
movss dword [ebp - 0xd4], xmm3
movss dword [ebp - 0xc4], xmm0
subss xmm3, dword [ebp - 0xe4]
addss xmm3, xmm7
addss xmm3, xmm0
movss dword [edi + 0x230], xmm3
test ah, 0x44
jp 0x40f131
movss xmm5, dword [edi + 0x20]
movaps xmm0, xmm2
addss xmm0, xmm2
subss xmm5, xmm0
movss xmm0, dword [ebp - 0xcc]
addss xmm0, dword [edi + 0x60]
subss xmm5, xmm0
ucomiss xmm6, xmm4
addss xmm5, xmm1
lahf
movss dword [edi + 0x234], xmm5
movss xmm5, dword [ebp - 0xc4]
test ah, 0x44
jp 0x40f16a
movss xmm6, dword [edi + 0x24]
movaps xmm0, xmm7
addss xmm0, xmm7
subss xmm6, xmm0
movaps xmm0, xmm5
addss xmm0, dword [edi + 0x64]
subss xmm6, xmm0
movss xmm1, dword [ebp - 0xcc]
addss xmm6, xmm3
movss xmm3, dword [ebp - 0xc8]
lea ecx, [edi + 0x164]
movaps xmm0, xmm1
mov esi, dword [ebp - 0xd8]
addss xmm0, xmm2
cvtps2pd xmm3, xmm3
movss dword [edi + 0x238], xmm6
movss xmm6, dword [ebp - 0xdc]
subss xmm0, xmm6
movss dword [edi + 0x13c], xmm0
cvtps2pd xmm0, xmm2
mov dword [edi + 0x144], 0
mov dword [edi + 0x140], 0
movss xmm2, dword [ebp - 0xd4]
addsd xmm3, xmm0
cvtps2pd xmm0, xmm6
cvtps2pd xmm2, xmm2
subsd xmm3, xmm0
cvtps2pd xmm0, xmm1
addsd xmm3, xmm0
cvtps2pd xmm0, xmm7
addsd xmm3, qword [0x441e48]
addsd xmm2, xmm0
movss xmm0, dword [ebp - 0xe4]
cvtps2pd xmm0, xmm0
subsd xmm2, xmm0
cvtps2pd xmm0, xmm5
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm3
cvtpd2ps xmm1, xmm2
movss dword [edi + 0x108], xmm0
movss dword [edi + 0x10c], xmm1
movss xmm0, dword [edi + 0x108]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [edi + 0x10c]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
subsd xmm2, xmm0
movss dword [edi + 0x148], xmm1
cvtpd2ps xmm0, xmm2
movss dword [edi + 0x14c], xmm0
movss xmm1, dword [edi + 0x108]
movss xmm0, dword [edi + 0x10c]
movss dword [edi + 0xf8], xmm1
movss dword [edi + 0xfc], xmm0
movss dword [edi + 0x100], xmm1
movss dword [edi + 0x104], xmm0
movss dword [edi + 0x110], xmm1
movss dword [edi + 0x114], xmm0
movss dword [edi + 0x118], xmm1
movss dword [edi + 0x11c], xmm0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x130], 0
mov word [edi + 0x138], 0
mov dword [edi + 0x150], 0
mov ax, word [edi + 0x156]
mov word [edi + 0x154], ax
mov dword [edi + 0x156], 0x10000
movss xmm0, dword [edi + 0x88]
comiss xmm0, xmm4
seta al
cmp byte [ebp - 0xbc], 0
mov byte [edi + 0x15a], al
lea eax, [ecx + 0x12]
mov byte [edi + 0x15b], 0
movss xmm1, dword [esi + 0x38f4]
mov dword [ebp - 0xc4], eax
je 0x40f34c
xorps xmm0, xmm0
movq qword [eax], xmm0
jmp 0x40f352
mov dword [ebp - 0xc4], eax
cvttss2si eax, xmm1
push ecx
mov word [ecx + 8], ax
call fcn.00437120
mov eax, dword [ebp - 0xc4]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov eax, dword [edi + 0x168]
mov dword [edi + 0x164], eax
lea eax, [edi + 0x188]
mov dword [edi + 0x168], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x184], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40f3c6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x188]
call fcn.0041a640
lea eax, [edi + 0x188]
mov dword [eax], 0
lea eax, [edi + 0x250]
mov dword [edi + 0x194], eax
mov eax, dword [ebp - 0xec]
mov dword [edi + 0x198], 0
mov dword [edi + 0x1a0], 1
test eax, eax
je 0x40f3fe
mov eax, dword [eax + 0x1a0]
jmp 0x40f403
mov eax, 1
mov dword [edi + 0x1a4], eax
mov eax, dword [edi + 0x24c]
mov dword [edi + 0x1ac], eax
lea eax, [edi + 0x1b4]
mov dword [edi + 0x1b0], 0xbf800000
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40f44e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1b4]
call fcn.0041a640
lea eax, [edi + 0x1b4]
mov dword [eax], 0
lea eax, [edi + 0x1c0]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40f483
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1c0]
call fcn.0041a640
lea eax, [edi + 0x1c0]
test dword [ebp - 0xc0], 0x8000000
mov dword [eax], 0
je 0x40f560
mov edx, dword [0x4454a8]
xorps xmm0, xmm0
movss xmm5, dword [0x441ecc]
movss xmm2, dword [edx + 0x3cd4]
comiss xmm0, xmm2
jbe 0x40f4bc
xorps xmm1, xmm1
jmp 0x40f4c3
movaps xmm1, xmm5
minss xmm1, xmm2
movss xmm2, dword [0x441f78]
movss xmm3, dword [0x441e94]
movss xmm4, dword [edx + 0x3cd8]
comiss xmm0, xmm4
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si ecx, xmm1
jbe 0x40f4f1
xorps xmm1, xmm1
jmp 0x40f4f8
movaps xmm1, xmm5
minss xmm1, xmm4
movss xmm4, dword [edx + 0x3cdc]
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm4
jbe 0x40f51b
xorps xmm1, xmm1
jmp 0x40f522
movaps xmm1, xmm5
minss xmm1, xmm4
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si eax, xmm1
movss xmm1, dword [edx + 0x3ce0]
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm1
jbe 0x40f545
xorps xmm5, xmm5
jmp 0x40f549
minss xmm5, xmm1
mulss xmm5, xmm2
addss xmm5, xmm3
cvttss2si eax, xmm5
shl eax, 0x18
or eax, ecx
mov dword [edi + 0x1a8], eax
mov al, byte [edi + 0xcc]
test al, al
jle 0x40f572
dec al
mov byte [edi + 0xcc], al
mov al, byte [edi + 0xcd]
test al, al
jle 0x40f584
dec al
mov byte [edi + 0xcd], al
cmp byte [ebp - 0xd0], 0
je 0x40f5aa
mov edx, 2
mov ecx, edi
call fcn.0040fe10
cmp edi, dword [esi + 0x4a44]
jne 0x40f5aa
xor dl, dl
mov ecx, edi
call fcn.004153f0
test byte [ebp - 0xc0], 1
jne 0x40f619
movss xmm0, dword [edi + 0x54]
lea edx, [ebp - 0x158]
addss xmm0, dword [ebp - 0x120]
push dword [ebp - 0x100]
mov ecx, edi
push dword [ebp - 0xfc]
movss dword [ebp - 0x158], xmm0
movss xmm0, dword [ebp - 0x11c]
movss dword [ebp - 0x154], xmm0
movss xmm0, dword [ebp - 0x118]
subss xmm0, dword [edi + 0x54]
movss dword [ebp - 0x150], xmm0
movss xmm0, dword [ebp - 0x114]
movss dword [ebp - 0x14c], xmm0
call fcn.0040cab0
add esp, 8
xor eax, eax
lea edx, [ebp - 0x120]
mov ecx, edi
mov dword [edi + 0x23c], eax
call fcn.0040fb20
mov eax, dword [esi + 0x48e8]
test eax, eax
je 0x40f762
cmp dword [edi + 8], eax
je 0x40f64a
cmp dword [edi + 0x74], eax
jne 0x40f762
call fcn.004198b0
jmp 0x40f762
cmp byte [edi + 0xb4], 0
je 0x40f664
mov byte [edi + 0xae], 1
mov edx, dword [0x4454a8]
mov dword [edx + 0x3f94], edi
mov ecx, dword [edi + 0x19c]
cmp ecx, 0xffffffff
je 0x40f686
shl ecx, 9
add ecx, dword [edx + 0x4d08]
jmp 0x40f688
xor ecx, ecx
mov dword [edx + 0x4ce8], ecx
mov dword [edx + 0x3d04], 0x3f800000
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3d00]
mov eax, dword [edi + 0x304]
mulss xmm0, dword [edi + 0x268]
test eax, eax
je 0x40f6bc
mulss xmm0, dword [eax + 0x268]
movss dword [edx + 0x3d14], xmm0
movss dword [edx + 0x3cfc], xmm0
test ecx, ecx
jne 0x40f6dc
cmp dword [edi + 0x198], ecx
jne 0x40f6dc
mov al, 1
jmp 0x40f6de
xor al, al
mov byte [edi + 0x158], al
test byte [edi + 0xc], 1
mov ecx, dword [edi]
jne 0x40f71e
movss xmm0, dword [ecx + 0x3d00]
mov eax, dword [edi + 0x304]
mulss xmm0, dword [edi + 0x268]
test eax, eax
je 0x40f70e
mulss xmm0, dword [eax + 0x268]
movss xmm5, dword [ecx + 0x38e8]
addss xmm5, xmm5
addss xmm5, xmm0
movss xmm0, dword [edi + 0x18]
lea edx, [ebp - 0x140]
addss xmm5, dword [edi + 0x1c]
movaps xmm1, xmm0
movss dword [ebp - 0x140], xmm0
addss xmm1, dword [edi + 0x28]
movss xmm0, dword [edi + 0x1c]
mov ecx, edi
movss dword [ebp - 0x13c], xmm0
movss dword [ebp - 0x134], xmm5
movss dword [ebp - 0x138], xmm1
call fcn.0040fb20
cmp byte [edi + 0xb4], 0
jne 0x40f8e4
mov ecx, dword [0x4454a8]
mov eax, dword [ecx + 0x3f94]
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f94]
movss xmm1, dword [edi + 0x1ec]
movss xmm0, dword [edi + 0x1f0]
movss xmm3, dword [edi + 0x1f4]
movss xmm2, dword [edi + 0x1f8]
mov dword [ebp - 0xc4], eax
mov eax, dword [eax + 0x270]
mov dword [ebp - 0x100], eax
movss dword [ebp - 0x120], xmm1
movss dword [ebp - 0x11c], xmm0
movups xmm4, xmmword [eax + 0x44]
comiss xmm4, xmm1
movaps xmmword [ebp - 0x140], xmm4
jbe 0x40f7e5
movaps xmm1, xmm4
movss dword [ebp - 0x120], xmm1
movss xmm4, dword [ebp - 0x13c]
comiss xmm4, xmm0
jbe 0x40f7fd
movaps xmm0, xmm4
movss dword [ebp - 0x11c], xmm0
movss xmm4, dword [ebp - 0x138]
comiss xmm3, xmm4
jbe 0x40f80d
movaps xmm3, xmm4
movss xmm4, dword [ebp - 0x134]
comiss xmm2, xmm4
jbe 0x40f81d
movaps xmm2, xmm4
mov edx, dword [eax + 0x70]
lea ecx, [eax + 0x70]
mov eax, dword [ecx + 4]
maxss xmm1, xmm3
mov dword [ebp - 0xe0], ecx
maxss xmm0, xmm2
movss dword [ebp - 0x118], xmm1
movss dword [ebp - 0x114], xmm0
cmp edx, eax
jne 0x40f879
inc edx
mov dword [ebp - 0xd4], edx
test eax, eax
je 0x40f863
cdq
sub eax, edx
mov edx, dword [ebp - 0xd4]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40f868
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041b140
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
add eax, eax
movaps xmm0, xmmword [ebp - 0x120]
movups xmmword [edx + eax*8], xmm0
inc dword [ecx]
mov ecx, dword [ebp - 0x100]
movups xmmword [ecx + 0x44], xmm0
call fcn.00423800
mov edx, dword [ebp - 0xc4]
mov eax, dword [edx + 0x270]
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x78]
add ecx, ecx
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [edx + 0x21c], eax
movss dword [edx + 0x220], xmm0
movss dword [edx + 0x224], xmm1
movss dword [edx + 0x228], xmm2
mov eax, dword [ebp - 0xf4]
mov byte [edi + 0xb0], 0
inc word [edi + 0xbc]
mov dword [esi + 0x495c], 0
cmp eax, dword [ebp - 0xf8]
je 0x40fa92
cmp byte [edi + 0xb4], 0
jne 0x40fa8b
mov ecx, dword [ebp - 0xc0]
mov eax, ecx
and eax, 0x11000000
cmp eax, 0x1000000
jne 0x40f9ef
test ecx, 0x800000
je 0x40f960
cmp byte [esi + 0x4a9c], 0
je 0x40f960
mov eax, dword [esi + 0x4a44]
test eax, eax
je 0x40f960
mov eax, dword [eax + 0x318]
cmp eax, dword [edi + 0x318]
jne 0x40f960
mov al, 1
jmp 0x40f962
xor al, al
cmp byte [esi + 0x5e2c], 0
jne 0x40f9b3
test al, al
jne 0x40f9b3
movss xmm0, dword [edi + 0x1cc]
comiss xmm0, dword [edi + 0x1d4]
jae 0x40f991
movss xmm0, dword [edi + 0x1d0]
comiss xmm0, dword [edi + 0x1d8]
jb 0x40f9b3
cmp byte [edi + 0xcc], 0
jg 0x40f9ac
cmp byte [edi + 0xcd], 0
jg 0x40f9ac
mov byte [edi + 0xd4], 1
jmp 0x40f9b3
mov byte [edi + 0xd5], 1
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x40f9ef
cmp byte [eax + 0xb1], 0
jne 0x40f9cf
cmp byte [eax + 0xd4], 0
jle 0x40f9d6
mov byte [edi + 0xd4], 1
cmp byte [eax + 0xb1], 0
jne 0x40f9e8
cmp byte [eax + 0xd5], 0
jle 0x40f9ef
mov byte [edi + 0xd5], 1
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x38a8]
jb 0x40fa02
mov byte [edi + 0xd4], 1
cmp byte [edi + 0xd4], 0
jg 0x40fa22
cmp byte [edi + 0xd5], 0
jg 0x40fa22
xor cl, cl
cmp byte [edi + 0xd6], cl
jg 0x40fa24
xor al, al
jmp 0x40fa26
mov cl, 1
mov al, 1
mov byte [edi + 0xb6], al
mov al, byte [edi + 0xd7]
test al, al
jle 0x40fa49
dec al
mov byte [edi + 0xd7], al
mov eax, dword [edi + 0xc]
or eax, 0x30200
mov dword [edi + 0xc], eax
xor al, al
cmp byte [edi + 0xb1], al
jne 0x40fa5f
cmp byte [edi + 0xae], al
je 0x40fa5f
test cl, cl
je 0x40fa83
cmp byte [edi + 0xcc], 0
jg 0x40fa83
cmp byte [edi + 0xcd], 0
jg 0x40fa83
cmp byte [edi + 0xd5], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov byte [edi + 0xb3], al
jmp 0x40fa92
mov byte [edi + 0xb3], 1
cmp byte [edi + 0xb7], 0
jne 0x40faf8
cmp byte [esi + 0x65], 0
je 0x40faaa
cmp dword [ebp - 0x104], 0
je 0x40fabf
cmp byte [esi + 0x66], 0
je 0x40faf8
movsx eax, byte [esi + 0x5e8c]
cmp eax, dword [esi + 0x3f6c]
jne 0x40faf8
mov al, byte [edi + 0xcc]
test al, al
jle 0x40fad1
inc al
mov byte [edi + 0xcc], al
mov al, byte [edi + 0xcd]
test al, al
jle 0x40fae3
inc al
mov byte [edi + 0xcd], al
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b22
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 0xb3], 0
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.00439b22
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret