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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
mov eax, dword [0x499008]
xor eax, esp
mov dword [esp + 0x174], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x4a0fd0]
push edi
mov dword [esp + 0xac], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], esi
call fcn.00408990
mov edi, eax
mov dword [esp + 0x6c], eax
test edi, edi
sete byte [esp + 0x17]
test eax, eax
jne 0x40aedd
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
call fcn.00408c50
mov edi, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov edx, eax
and ecx, 0xc0200
or edx, 6
cmp ecx, 0xc0200
mov ecx, dword [esi + 0x3dd8]
cmovne edx, eax
mov dword [esp + 0x58], ecx
cmp dword [esi + 0x3e34], 0
mov eax, dword [edi + 0x238]
mov dword [esp + 0x54], eax
lea eax, [esi + 0x3e34]
mov dword [esp + 0x1c], edx
jne 0x40af2b
cmp byte [esi + 0x3de5], 0
je 0x40af2b
mov al, 1
jmp 0x40af2d
xor al, al
mov byte [edi + 0xb2], al
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x54]
cmp ecx, eax
setl ch
mov byte [esp + 0x1b], ch
test edx, 0x4000000
je 0x40af81
mov eax, dword [esi + 0x47c0]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x47bc]
mov eax, dword [edi + 0xc0]
cmp edi, dword [edx + esi*8 + 4]
setne cl
cmp eax, dword [edx + esi*8]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
setne al
or cl, al
or ch, cl
mov byte [esp + 0x1b], ch
mov byte [edi + 0xb0], ch
test ch, ch
je 0x40afa0
or byte [edi + 0xd0], 8
or byte [edi + 0xd1], 8
or byte [edi + 0xd2], 8
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
je 0x40affd
push edx
mov dl, byte [esp + 0x1b]
mov ecx, edi
call fcn.004089e0
mov eax, dword [esp + 0x5c]
add esp, 4
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x238], eax
xor eax, eax
mov dword [edi + 0xc], edx
movsd xmm0, qword [esi + 0x3dd0]
cvtpd2ps xmm0, xmm0
mov word [edi + 0xba], ax
movss dword [edi + 0x23c], xmm0
movzx eax, word [esi + 0x3e4c]
inc dword [esi + 0x3e4c]
mov word [edi + 0xbc], ax
jmp 0x40b004
mov edx, dword [edi + 0xc]
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x3e34]
test eax, eax
je 0x40b01b
imul ecx, eax, 0x54
mov eax, dword [esi + 0x3e3c]
mov eax, dword [eax + ecx - 0x54]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
cmp ecx, dword [esp + 0x58]
je 0x40b03d
mov ecx, edx
and ecx, 0x5000000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x48], ecx
jmp 0x40b047
mov eax, dword [edi + 0x2f8]
mov dword [esp + 0x48], eax
cmp dword [edi + 0xe4], 0
lea eax, [edi + 0xe4]
jne 0x40b07c
cmp dword [eax + 4], 0
jne 0x40b06b
push 8
mov ecx, eax
call fcn.00417420
lea eax, [edi + 0xe4]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 8]
mov dword [ecx + edx*4], eax
inc dword [edi + 0xe4]
push 0x4e
lea eax, [esp + 0xe8]
mov dword [esi + 0x3e58], edi
push 0
push eax
call fcn.00451860
mov eax, dword [esi + 0x4708]
lea edx, [esi + 0x3e34]
movups xmm0, xmmword [esi + 0x46d0]
mov dword [esp + 0x128], eax
add esp, 0xc
movzx eax, word [edi + 0xe4]
mov word [esp + 0x120], ax
movzx eax, word [esi + 0x476c]
mov word [esp + 0x122], ax
movzx eax, word [esi + 0x4778]
mov ecx, dword [edx]
mov word [esp + 0x124], ax
movzx eax, word [esi + 0x4784]
mov word [esp + 0x126], ax
movzx eax, word [esi + 0x4790]
mov word [esp + 0x128], ax
movzx eax, word [esi + 0x47a8]
mov word [esp + 0x12a], ax
movzx eax, word [esi + 0x479c]
movups xmmword [esp + 0xe4], xmm0
mov word [esp + 0x12c], ax
lea eax, [esi + 0x47c0]
movups xmm0, xmmword [esi + 0x46e0]
mov dword [esp + 0x40], eax
movzx eax, word [eax]
movups xmmword [esp + 0xf4], xmm0
mov word [esp + 0x12e], ax
movups xmm0, xmmword [esi + 0x46f0]
movzx eax, word [esi + 0x5a24]
mov word [esp + 0x130], ax
mov eax, dword [edx + 4]
mov dword [esp + 0xe0], edi
movups xmmword [esp + 0x104], xmm0
movq xmm0, qword [esi + 0x4700]
movq qword [esp + 0x114], xmm0
cmp ecx, eax
jne 0x40b1b1
inc ecx
test eax, eax
je 0x40b199
cdq
sub eax, edx
lea edx, [esi + 0x3e34]
sar eax, 1
add eax, dword [edx + 4]
jmp 0x40b19e
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.004179b0
lea edx, [esi + 0x3e34]
imul ecx, dword [edx], 0x54
movups xmm0, xmmword [esp + 0xe0]
mov eax, dword [esp + 0x130]
add ecx, dword [edx + 8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [esp + 0x100]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [esp + 0x110]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [esp + 0x120]
movups xmmword [ecx + 0x40], xmm0
mov dword [ecx + 0x50], eax
mov ecx, dword [esp + 0x1c]
mov eax, ecx
inc dword [edx]
and eax, 0x10000000
mov dword [esp + 0x68], eax
je 0x40b215
inc dword [esi + 0x47cc]
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
je 0x40b2c1
mov edx, dword [esp + 0x48]
mov dword [edi + 0x2f8], edx
mov dword [edi + 0x30c], edi
mov dword [edi + 0x308], edi
mov dword [edi + 0x304], edi
mov dword [edi + 0x300], edi
test edx, edx
je 0x40b293
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x40b263
mov eax, dword [edx + 0x300]
mov dword [edi + 0x300], eax
test ecx, 0x4000000
je 0x40b277
mov eax, dword [edx + 0x304]
mov dword [edi + 0x304], eax
test ecx, 0x8000000
jne 0x40b293
test ecx, 0x5000000
je 0x40b293
mov eax, dword [edx + 0x308]
mov dword [edi + 0x308], eax
test dword [edi + 0xc], 0x800000
je 0x40b2b7
mov ecx, edi
nop
mov eax, dword [ecx + 0x2f8]
mov ecx, eax
mov dword [edi + 0x30c], eax
test dword [ecx + 0xc], 0x800000
jne 0x40b2a0
mov eax, dword [esp + 0x24]
mov dword [edi + 0x2fc], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4a0fd0]
mov ecx, dword [eax + 0x4794]
lea edx, [eax + 0x4790]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
cmp dword [edx], ecx
jne 0x40b311
test ecx, ecx
je 0x40b2f8
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, ecx
jmp 0x40b2fd
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00417420
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4], esi
mov ecx, esi
mov eax, dword [esp + 0x30]
inc dword [edx]
mov esi, dword [esp + 0x38]
mov dword [eax + 0x46ac], ecx
mov eax, dword [esi + 0x46ac]
mov dword [edi + 0x34c], eax
mov eax, dword [esp + 0x1c]
and eax, 0x4000000
mov dword [esi + 0x3e58], 0
mov dword [esp + 0x20], eax
je 0x40b405
mov eax, dword [esi + 0x47c0]
mov ecx, dword [esi + 0x47bc]
mov dword [esp + 0x2c], ecx
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x24]
mov dword [ecx + edx*8 + 4], edi
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0x148]
mov dword [ecx + edx*8 + 0xc], eax
mov ecx, dword [esi + 0x47c0]
mov eax, dword [esi + 0x47c4]
cmp ecx, eax
jne 0x40b3c2
inc ecx
test eax, eax
je 0x40b3a6
cdq
sub eax, edx
lea edx, [esi + 0x47c0]
sar eax, 1
add eax, dword [edx + 4]
jmp 0x40b3b1
mov eax, 8
lea edx, [esi + 0x47c0]
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00417930
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x2c]
movups xmm0, xmmword [esi + edx*8]
movups xmmword [eax + ecx*8], xmm0
movups xmm0, xmmword [esi + edx*8 + 0x10]
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq xmm0, qword [esi + edx*8 + 0x20]
movq qword [eax + ecx*8 + 0x20], xmm0
mov eax, dword [esp + 0x40]
inc dword [eax]
mov eax, esi
mov esi, dword [esp + 0x38]
mov eax, dword [eax + edx*8]
mov dword [edi + 0xc0], eax
test byte [esi + 0x470c], 1
mov byte [esp + 0x1a], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
je 0x40b4bf
mov dl, byte [edi + 0xd0]
mov ecx, dword [esi + 0x4710]
movsx eax, dl
test ecx, eax
setne byte [esp + 0x1a]
test ecx, eax
je 0x40b4ae
movss xmm1, dword [esi + 0x4728]
movss xmm0, dword [esi + 0x4724]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x48f8ac]
jbe 0x40b4ae
mov eax, dword [esi + 0x471c]
mov ecx, dword [esi + 0x4720]
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xd4], eax
mov eax, dword [esi + 0x4724]
mov ecx, dword [esi + 0x4728]
mov dword [edi + 0xe0], ecx
mov dword [edi + 0xdc], eax
mov eax, dword [edi + 0xd0]
movzx ecx, dl
and eax, 0xffffff00
and ecx, 0xf1
or ecx, eax
mov dword [edi + 0xd0], ecx
jmp 0x40b4bf
push ecx
lea edx, [esi + 0x471c]
mov ecx, edi
call fcn.0040df30
add esp, 4
test byte [esi + 0x470c], 2
xorps xmm1, xmm1
je 0x40b520
movsx eax, byte [edi + 0xd1]
lea edx, [esi + 0x472c]
mov ecx, dword [esi + 0x4714]
and eax, ecx
je 0x40b4f2
movss xmm0, dword [edx]
comiss xmm0, xmm1
jbe 0x40b4f2
mov byte [esp + 0x18], 1
jmp 0x40b4fb
mov byte [esp + 0x18], 0
test eax, eax
je 0x40b50d
movss xmm0, dword [esi + 0x4730]
comiss xmm0, xmm1
mov byte [esp + 0x19], 1
ja 0x40b512
mov byte [esp + 0x19], 0
push ecx
mov ecx, edi
call fcn.0040e090
add esp, 4
xorps xmm1, xmm1
test byte [esi + 0x470c], 0x80
je 0x40b567
movss xmm0, dword [esi + 0x473c]
comiss xmm0, xmm1
jb 0x40b548
movss dword [edi + 0x88], xmm0
mov dword [edi + 0x90], 0
movss xmm0, dword [esi + 0x4740]
comiss xmm0, xmm1
jb 0x40b567
movss dword [edi + 0x8c], xmm0
mov dword [edi + 0x94], 0
test byte [esi + 0x470c], 4
je 0x40b584
mov eax, dword [esi + 0x4734]
mov ecx, dword [esi + 0x4738]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], ecx
jmp 0x40b59c
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
je 0x40b59c
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
test byte [esi + 0x470c], 8
je 0x40b5e9
mov ecx, dword [esi + 0x4718]
mov dl, byte [esi + 0x4744]
test ecx, ecx
je 0x40b5c0
movsx eax, byte [edi + 0xd2]
test ecx, eax
je 0x40b5e9
movzx ecx, byte [edi + 0xd2]
mov eax, dword [edi + 0xd0]
and ecx, 0xf1
shl ecx, 0x10
and eax, 0xff00ffff
or ecx, eax
mov byte [edi + 0xad], dl
mov dword [edi + 0xd0], ecx
test byte [esi + 0x470c], 0x20
je 0x40b5fb
xor edx, edx
mov ecx, edi
call fcn.0040d8c0
cmp byte [edi + 0xb0], 0
je 0x40b619
and byte [edi + 0xd0], 0xf7
and byte [edi + 0xd1], 0xf7
and byte [edi + 0xd2], 0xf7
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
je 0x40d1df
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0xe4]
and eax, 0x3000000
mov byte [edi + 0xaa], 1
cmp dword [esp + 0xac], 0
mov dword [esp + 0x40], eax
mov al, byte [edi + 0xcd]
mov byte [esp + 0x3f], al
setne al
mov byte [edi + 0xb4], al
mov dword [edi + 0x210], 0xff7fffff
mov dword [edi + 0x214], 0xff7fffff
mov dword [edi + 0x218], 0x7f7fffff
mov dword [edi + 0x21c], 0x7f7fffff
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
cmp eax, 1
jge 0x40b6bc
test eax, eax
je 0x40b6a1
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [esp + 0x30]
jmp 0x40b6a6
mov edx, 8
mov eax, 1
cmp edx, eax
cmovg eax, edx
push eax
call fcn.00417420
lea ecx, [edi + 0xe4]
mov dword [ecx], 1
mov ecx, dword [edi + 0x264]
call fcn.0041f130
cmp byte [edi + 0x358], 0
mov dword [edi + 0x194], 0xffffffff
je 0x40b723
mov ecx, dword [edi + 0x264]
push dword [edi + 0x350]
add ecx, 0xc
mov byte [edi + 0x358], 0
call fcn.004177f0
mov ecx, dword [edi + 0x264]
push dword [edi + 0x354]
add ecx, 0x18
call fcn.00417600
mov dword [edi + 0x354], 0
mov dword [edi + 0x350], 0
cmp dword [esi + 0x4950], 0
je 0x40b807
test dword [edi + 0xc], 0x80000
jne 0x40b807
cmp dword [esp + 0x6c], 0
je 0x40b807
mov eax, dword [edi + 4]
mov ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b775
test dl, dl
je 0x40b771
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b775
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b755
xor eax, eax
jmp 0x40b77a
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b807
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x28], edx
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b794
sub ecx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp edx, eax
jae 0x40b7ef
test ecx, ecx
je 0x40b7c1
mov eax, dword [0x4a0fd0]
test eax, eax
je 0x40b7c1
dec dword [eax + 0xac]
push ecx
call fcn.00459310
mov eax, dword [0x4a0fd0]
add esp, 4
test eax, eax
je 0x40b7d9
inc dword [eax + 0xac]
push dword [esp + 0x24]
call fcn.0045e179
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
push eax
push dword [esp + 0x68]
push ecx
call fcn.00451a70
mov dword [edi + 4], eax
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [edi + 0x6c], eax
lea eax, [edi + 0x34]
mov ecx, edi
lea edx, [edi + 0x2c]
push eax
call fcn.00409030
mov al, byte [edi + 0xcc]
add esp, 4
test al, al
jle 0x40b82a
dec al
mov byte [edi + 0xcc], al
mov al, byte [edi + 0xcd]
test al, al
jle 0x40b83c
dec al
mov byte [edi + 0xcd], al
mov al, byte [edi + 0xce]
test al, al
jle 0x40b84e
dec al
mov byte [edi + 0xce], al
cmp dword [esp + 0x6c], 0
mov al, byte [esp + 0x18]
mov cl, byte [esp + 0x19]
jne 0x40b86c
test al, al
je 0x40b865
test cl, cl
jne 0x40b86c
mov byte [edi + 0xcd], 1
cmp byte [esp + 0x1b], 0
mov edx, dword [esp + 0x1c]
je 0x40b8cb
test edx, 0x6000000
je 0x40b8cb
mov byte [edi + 0xcd], 1
test dl, 0x40
je 0x40b8cb
test al, al
jne 0x40b89d
mov dword [edi + 0x24], 0
mov dword [edi + 0x1c], 0
test cl, cl
jne 0x40b8af
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov ecx, dword [0x4a0fd0]
mov dword [esp + 0x28], ecx
mov eax, dword [ecx + 0x47d8]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
mov dword [esp + 0x30], eax
mov dword [ecx + 0x3e58], edi
mov eax, dword [edi + 0x194]
cmp eax, 0xffffffff
je 0x40b903
imul eax, eax, 0x1f0
add eax, dword [ecx + 0x4a30]
jmp 0x40b905
xor eax, eax
mov dword [ecx + 0x4a14], eax
mov dword [esp + 0x24], eax
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3bc8]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x40b933
mulss xmm0, dword [eax + 0x25c]
cmp dword [esp + 0x24], 0
movss dword [ecx + 0x3bd8], xmm0
movss dword [ecx + 0x3bc4], xmm0
jne 0x40b957
cmp dword [edi + 0x190], 0
jne 0x40b957
mov al, 1
jmp 0x40b959
xor al, al
mov byte [edi + 0x150], al
mov eax, edx
and eax, 0x1000000
mov dword [esp + 0x24], eax
je 0x40b976
movss xmm0, dword [esi + 0x37b0]
jmp 0x40b998
test edx, 0x6000000
je 0x40b990
test edx, 0x8000000
jne 0x40b990
movss xmm0, dword [esi + 0x37b8]
jmp 0x40b998
movss xmm0, dword [esi + 0x3794]
movss dword [edi + 0x50], xmm0
xorps xmm6, xmm6
mov eax, dword [esi + 0x3788]
mov ecx, dword [esi + 0x378c]
mov dword [edi + 0x44], eax
mov eax, edx
and eax, 0x5010000
mov dword [edi + 0x48], ecx
cmp eax, 0x1000000
jne 0x40b9ea
ucomiss xmm0, xmm6
lahf
test ah, 0x44
jp 0x40b9ea
test edx, 0x400
je 0x40b9db
movss xmm0, dword [esi + 0x378c]
jmp 0x40b9de
xorps xmm0, xmm0
mov dword [edi + 0x44], 0
movss dword [edi + 0x48], xmm0
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [esi + 0x37cc]
maxss xmm0, dword [esi + 0x4764]
movss dword [edi + 0x154], xmm0
mov eax, dword [esi + 0x4768]
mov dword [edi + 0x158], eax
mov al, byte [esp + 0x17]
mov dword [esp + 0x2c], eax
test dl, 0x21
jne 0x40bb6b
test byte [edi + 0xc], 1
mov ecx, dword [edi]
je 0x40ba31
xorps xmm2, xmm2
jmp 0x40ba63
movss xmm0, dword [ecx + 0x3bc8]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x40ba53
mulss xmm0, dword [eax + 0x25c]
movss xmm2, dword [ecx + 0x37c0]
addss xmm2, xmm2
addss xmm2, xmm0
movss xmm4, dword [edi + 0x14]
movaps xmm3, xmm4
movss xmm5, dword [edi + 0x18]
addss xmm3, dword [edi + 0x24]
addss xmm2, dword [edi + 0x18]
mov edx, dword [esp + 0x28]
cmp dword [esi + 0x3e5c], edi
jne 0x40bb1f
cmp dword [esi + 0x3e90], 0
jne 0x40bb1f
cmp dword [esi + 0x3e94], 0
jne 0x40bb1f
mov eax, dword [edx + 0x3e58]
movss xmm1, dword [edx + 0x37e4]
movss xmm0, dword [edx + 0x37e8]
maxss xmm4, dword [eax + 0x210]
minss xmm3, dword [eax + 0x218]
maxss xmm5, dword [eax + 0x214]
minss xmm2, dword [eax + 0x21c]
subss xmm4, xmm1
addss xmm3, xmm1
movss xmm1, dword [edx + 0xdb8]
subss xmm5, xmm0
addss xmm2, xmm0
comiss xmm1, xmm4
jb 0x40bb1f
movss xmm0, dword [edx + 0xdbc]
comiss xmm0, xmm5
jb 0x40bb1f
comiss xmm3, xmm1
jbe 0x40bb1f
comiss xmm2, xmm0
jbe 0x40bb1f
cmp word [esi + 0x3702], 2
jne 0x40bb1f
mov byte [edi + 0xae], 1
cmp byte [edi + 0xae], 0
je 0x40bb72
mov cl, byte [edi + 0xad]
test cl, cl
sete al
test cl, cl
mov byte [edi + 0xad], al
mov ecx, 1
mov eax, dword [esp + 0x2c]
movzx eax, al
cmovne eax, ecx
test dword [edi + 0xc], 0x100
mov dword [esp + 0x2c], eax
jne 0x40bb72
comiss xmm6, dword [edx + 0x5a64]
jb 0x40bb72
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x5a64], eax
jmp 0x40bb72
mov byte [edi + 0xad], 0
movss xmm0, dword [edi + 0xa0]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [edi + 0xa4]
mov byte [edi + 0xae], 0
movss dword [esp + 0x80], xmm0
mov dword [edi + 0x54], 0
mov dword [edi + 0x5c], 0
test dl, 1
je 0x40bbb5
xorps xmm2, xmm2
jmp 0x40bbea
movss xmm0, dword [ecx + 0x3bc8]
mov edx, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test edx, edx
je 0x40bbd7
mulss xmm0, dword [edx + 0x25c]
movss xmm2, dword [ecx + 0x37c0]
mov edx, dword [edi + 0xc]
addss xmm2, xmm2
addss xmm2, xmm0
test edx, 0x400
je 0x40bc2e
movss xmm1, dword [ecx + 0x3bc8]
mov eax, dword [edi + 0x2f8]
mulss xmm1, dword [edi + 0x25c]
test eax, eax
je 0x40bc14
mulss xmm1, dword [eax + 0x25c]
movss xmm0, dword [ecx + 0x37c0]
addss xmm1, dword [edi + 0x158]
addss xmm0, xmm0
addss xmm1, xmm0
jmp 0x40bc31
xorps xmm1, xmm1
addss xmm1, xmm2
mov dword [edi + 0x60], 0
lea eax, [edi + 0x34]
mov dword [edi + 0xa0], 0
push eax
mov edx, edi
mov dword [edi + 0xa4], 0
lea ecx, [esp + 0x74]
movss dword [edi + 0x58], xmm1
call fcn.00409160
add esp, 4
lea eax, [edi + 0xad]
test byte [esp + 0x1c], 0x40
je 0x40bcb5
cmp byte [eax], 0
mov dword [esp + 0x28], eax
jne 0x40bcb5
cmp byte [esp + 0x18], 0
jne 0x40bc94
movss xmm0, dword [esp + 0x70]
movss dword [edi + 0x24], xmm0
mov byte [esp + 0x17], 1
cmp byte [esp + 0x19], 0
jne 0x40bd73
movss xmm0, dword [esp + 0x74]
mov al, 1
movss dword [edi + 0x28], xmm0
mov dword [esp + 0x2c], eax
jmp 0x40bd73
mov ecx, eax
mov al, byte [edi + 0xc4]
test al, al
jg 0x40bcd2
cmp byte [edi + 0xc5], 0
mov dword [esp + 0x28], ecx
jle 0x40bd73
cmp byte [esp + 0x18], 0
jne 0x40bd03
test al, al
jle 0x40bd03
cmp byte [edi + 0xc7], 0
je 0x40bcf3
movss xmm0, dword [edi + 0x24]
maxss xmm0, dword [esp + 0x70]
jmp 0x40bcf9
movss xmm0, dword [esp + 0x70]
movss dword [edi + 0x24], xmm0
mov byte [esp + 0x17], 1
cmp byte [esp + 0x19], 0
jne 0x40bd3a
cmp byte [edi + 0xc5], 0
jle 0x40bd3a
cmp byte [edi + 0xc7], 0
je 0x40bd29
movss xmm0, dword [edi + 0x28]
maxss xmm0, dword [esp + 0x74]
jmp 0x40bd2f
movss xmm0, dword [esp + 0x74]
mov al, 1
movss dword [edi + 0x28], xmm0
mov dword [esp + 0x2c], eax
cmp byte [ecx], 0
mov dword [esp + 0x28], ecx
jne 0x40bd73
test dword [edi + 0xc], 0x100
mov edx, dword [0x4a0fd0]
mov dword [esp + 0x28], ecx
jne 0x40bd73
xorps xmm1, xmm1
mov dword [esp + 0x28], ecx
comiss xmm1, dword [edx + 0x5a64]
jb 0x40bd73
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x5a64], eax
mov dword [esp + 0x28], ecx
lea eax, [edi + 0x24]
mov edx, edi
push eax
lea ecx, [esp + 0x60]
call fcn.00408e30
add esp, 4
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
mov eax, dword [esp + 0x28]
movss dword [edi + 0x24], xmm2
movss dword [edi + 0x28], xmm0
cmp byte [eax], 0
je 0x40be09
cmp dword [esp + 0x24], 0
jne 0x40be09
test byte [edi + 0xc], 1
mov ecx, dword [edi]
je 0x40bdb5
xorps xmm1, xmm1
jmp 0x40bde7
movss xmm0, dword [ecx + 0x3bc8]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x40bdd7
mulss xmm0, dword [eax + 0x25c]
movss xmm1, dword [ecx + 0x37c0]
addss xmm1, xmm1
addss xmm1, xmm0
addss xmm2, dword [edi + 0x14]
addss xmm1, dword [edi + 0x18]
subss xmm2, dword [edi + 0x14]
subss xmm1, dword [edi + 0x18]
movss dword [esp + 0x4c], xmm2
movss dword [esp + 0x50], xmm1
jmp 0x40be17
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
cmp byte [esp + 0x1b], 0
lea ecx, [esp + 0x4c]
mov eax, dword [ecx]
mov edx, edi
mov ecx, dword [ecx + 4]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
je 0x40be7b
mov eax, dword [esp + 0x1c]
and eax, 0xc000000
mov dword [edi + 0xc8], 0xffffffff
cmp eax, 0x4000000
jne 0x40be7b
cmp byte [esp + 0x1a], 0
jne 0x40be7b
mov eax, dword [esi + 0x47c0]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x47c8]
movss xmm0, dword [eax + ecx*8 - 0x10]
movss xmm1, dword [eax + ecx*8 - 0xc]
mov eax, 0x14
movss dword [eax + edx], xmm0
movss dword [eax + edx + 4], xmm1
cmp dword [esp + 0x24], 0
je 0x40bf1f
mov edx, dword [esp + 0x48]
add edx, 0x180
mov dword [esp + 0x34], edx
mov ax, word [edx]
mov word [edi + 0xba], ax
mov ecx, dword [edx + 4]
cmp dword [edx], ecx
jne 0x40bed5
test ecx, ecx
je 0x40beb8
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
add eax, ecx
jmp 0x40bebd
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00417420
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov dword [eax + ecx*4], edi
inc dword [edx]
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 0x1a]
mov edx, dword [esp + 0x40]
test ecx, ecx
jne 0x40bf2b
test al, al
jne 0x40bf2b
cmp edx, 0x3000000
je 0x40bf2b
mov ecx, dword [esp + 0x48]
mov esi, 0x14
mov edx, edi
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
mov dword [esi + edx], eax
mov eax, esi
mov esi, dword [esp + 0x38]
mov dword [eax + edx + 4], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 0x1a]
movss xmm1, dword [edi + 0xd4]
ucomiss xmm1, dword [0x48fa30]
lahf
test ah, 0x44
jnp 0x40c14b
cmp byte [edi + 0xcd], 0
jne 0x40c14b
movss xmm0, dword [edi + 0x1c]
lea edx, [esp + 0x4c]
mulss xmm0, dword [edi + 0xdc]
mov ecx, edi
push 0
subss xmm1, xmm0
movss xmm0, dword [edi + 0xd8]
movss dword [esp + 0x50], xmm1
movss xmm1, dword [edi + 0xe0]
mulss xmm1, dword [edi + 0x20]
subss xmm0, xmm1
movss dword [esp + 0x54], xmm0
call fcn.0040df30
add esp, 4
mov edx, edi
mov eax, 0x14
cmp byte [esp + 0x1a], 0
mov ecx, dword [esp + 0x30]
movss xmm3, dword [esi + 0x3840]
movss xmm2, dword [esi + 0x383c]
maxss xmm3, dword [esi + 0x3848]
movss xmm7, dword [ecx + 0x14]
movss xmm6, dword [ecx + 0x18]
addss xmm7, dword [ecx + 0x1c]
addss xmm6, dword [ecx + 0x20]
movss xmm0, dword [ecx + 4]
movss xmm1, dword [ecx + 8]
movaps xmm4, xmm0
maxss xmm2, dword [esi + 0x3844]
addss xmm4, dword [ecx + 0xc]
movaps xmm5, xmm1
movss dword [esp + 0x90], xmm0
addss xmm5, dword [ecx + 0x10]
subss xmm6, xmm3
movss dword [esp + 0x94], xmm1
addss xmm3, dword [ecx + 0x18]
subss xmm7, xmm2
movss dword [esp + 0x98], xmm4
addss xmm2, dword [ecx + 0x14]
mov ecx, dword [esp + 0x1c]
movss dword [esp + 0x9c], xmm5
movss dword [esp + 0xd4], xmm3
movss dword [esp + 0xd8], xmm7
movss dword [esp + 0xd0], xmm2
movss dword [esp + 0xdc], xmm6
jne 0x40c109
cmp dword [esp + 0x24], 0
jne 0x40c109
subss xmm4, xmm0
xorps xmm0, xmm0
comiss xmm4, xmm0
jbe 0x40c109
subss xmm5, xmm1
comiss xmm5, xmm0
jbe 0x40c109
mov eax, dword [0x4a0fd0]
movss xmm1, dword [edi + 0x20]
cmp byte [eax + 0x4b], 0
je 0x40c0cd
test byte [edi + 0xc], 1
jne 0x40c0cd
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3bc8]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x40c0bb
mulss xmm0, dword [eax + 0x25c]
mov eax, dword [edi]
movss xmm1, dword [eax + 0x37c0]
addss xmm1, xmm1
addss xmm1, xmm0
subss xmm2, dword [edi + 0x1c]
mov eax, 0x14
subss xmm3, xmm1
movss xmm0, dword [eax + edx + 4]
comiss xmm3, xmm0
ja 0x40c0ed
movaps xmm3, xmm6
minss xmm3, xmm0
movss xmm0, dword [eax + edx]
comiss xmm2, xmm0
ja 0x40c0fe
movaps xmm2, xmm7
minss xmm2, xmm0
movss dword [eax + edx], xmm2
movss dword [eax + edx + 4], xmm3
cmp dword [esp + 0x24], 0
cvttss2si eax, dword [eax + edx]
movd xmm1, eax
mov eax, 0x14
cvtdq2ps xmm1, xmm1
cvttss2si eax, dword [eax + edx + 4]
movd xmm0, eax
mov eax, 0x14
cvtdq2ps xmm0, xmm0
movss dword [eax + edx], xmm1
movss dword [eax + edx + 4], xmm0
je 0x40c1b1
movss xmm2, dword [esi + 0x37ac]
jmp 0x40c1d1
cmp dword [esp + 0x68], 0
jne 0x40c160
test ecx, ecx
je 0x40c18b
test al, al
jne 0x40c18b
cmp byte [esp + 0x3f], al
jle 0x40c18b
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.00411460
mov edx, edi
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, 0x14
movss dword [eax + edx], xmm0
movss dword [eax + edx + 4], xmm1
jmp 0x40bf9e
test dword [esp + 0x1c], 0x2000000
je 0x40bf97
test al, al
jne 0x40bf97
cmp edx, 0x3000000
mov edx, edi
je 0x40bf99
jmp 0x40c162
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40c1c9
movss xmm2, dword [esi + 0x37b4]
jmp 0x40c1d1
movss xmm2, dword [esi + 0x3790]
xor dl, dl
movss dword [edi + 0x4c], xmm2
mov dword [esp + 0x24], edx
cmp byte [esp + 0x1b], dl
je 0x40c20c
test ecx, 0x1000
jne 0x40c20c
cmp dword [esp + 0x20], 0
je 0x40c1f8
mov byte [esp + 0x24], 1
jmp 0x40c20c
cmp dword [esp + 0x40], 0
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [esp + 0x24], edx
movss xmm1, dword [esi + 0x3bc4]
xorps xmm0, xmm0
addss xmm2, dword [0x48f91c]
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp byte [esi + 0x4a], cl
movaps xmmword [esp + 0x160], xmm0
movaps xmm0, xmm1
mulss xmm1, dword [0x48f8cc]
setne cl
inc ecx
cmp byte [eax], 0
mulss xmm0, dword [0x48f920]
mov dword [esp + 0xa8], 0xffffffff
addss xmm2, xmm1
mov dword [esp + 0x4c], ecx
maxss xmm0, xmm2
cvttss2si esi, xmm0
jne 0x40c29b
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x164]
push eax
push ecx
lea eax, [esp + 0xb4]
mov ecx, edi
push eax
lea edx, [esp + 0x80]
call fcn.00409470
add esp, 0x10
test al, al
je 0x40c29b
mov cl, 1
mov dl, cl
jmp 0x40c2a3
mov dl, byte [esp + 0x17]
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0xa8]
mov byte [edi + 0xb5], al
mov eax, dword [esp + 0x28]
cmp byte [eax], 0
jne 0x40c429
cmp dword [esp + 0x6c], 0
lea eax, [esp + 0x5c]
movss xmm6, dword [edi + 0x60]
movss xmm2, dword [edi + 0x1d8]
movaps xmm0, xmm6
movss xmm3, dword [edi + 0x1dc]
addss xmm0, dword [edi + 0x58]
subss xmm2, dword [edi + 0x1d0]
subss xmm3, dword [edi + 0x1d4]
movss xmm4, dword [edi + 0x28]
movss xmm5, dword [edi + 0x24]
subss xmm4, xmm0
addss xmm2, dword [esp + 0x44]
addss xmm3, dword [esp + 0x80]
jne 0x40c324
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
jmp 0x40c34c
movss xmm0, dword [edi + 0x44]
movss xmm1, dword [edi + 0x48]
addss xmm0, xmm0
addss xmm1, xmm1
addss xmm0, dword [edi + 0x2c]
addss xmm1, dword [edi + 0x30]
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x60], xmm1
movss xmm7, dword [eax]
movss xmm1, dword [eax + 4]
test dl, dl
jne 0x40c35c
movaps xmm5, xmm2
test cl, cl
jne 0x40c363
movaps xmm4, xmm3
mov ecx, dword [esp + 0x1c]
test ecx, 0x4000
jne 0x40c37d
comiss xmm1, xmm4
jbe 0x40c379
test cl, 8
je 0x40c37d
xor dl, dl
jmp 0x40c37f
mov dl, 1
mov eax, dword [esp + 0x38]
add eax, 0x37f4
mov byte [edi + 0xa9], dl
test ecx, 0x8000
jne 0x40c3d2
mov dword [esp + 0x20], eax
test dl, dl
je 0x40c3a4
movss xmm0, dword [eax]
jmp 0x40c3a7
xorps xmm0, xmm0
subss xmm5, xmm0
comiss xmm7, xmm5
jbe 0x40c3be
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
je 0x40c3ce
mov eax, dword [esp + 0x20]
xorps xmm1, xmm1
mov byte [edi + 0xa8], 0
jmp 0x40c3f7
mov eax, dword [esp + 0x20]
mov byte [edi + 0xa8], 1
test dl, dl
jne 0x40c3f3
comiss xmm1, xmm4
jbe 0x40c3eb
test cl, 8
jne 0x40c3eb
mov dl, 1
jmp 0x40c3ed
xor dl, dl
mov byte [edi + 0xa9], dl
movss xmm1, dword [eax]
test dl, dl
je 0x40c401
movss xmm0, dword [eax]
jmp 0x40c404
xorps xmm0, xmm0
movss dword [edi + 0xa0], xmm0
addss xmm6, xmm1
addss xmm0, dword [edi + 0x5c]
movss dword [edi + 0xa4], xmm1
movss dword [edi + 0x60], xmm6
movss dword [edi + 0x5c], xmm0
jmp 0x40c42d
mov ecx, dword [esp + 0x1c]
mov eax, ecx
and eax, 0x5000000
mov dword [esp + 0x5c], eax
cmp eax, 0x1000000
jne 0x40c454
cmp dword [esp + 0x40], 0x3000000
je 0x40c454
mov eax, dword [esp + 0x48]
add eax, 0x210
jmp 0x40c45b
lea eax, [esp + 0x90]
test byte [edi + 0xc], 1
mov edx, 0x14
movups xmm4, xmmword [eax]
mov eax, edi
mov ecx, dword [esp + 0x1c]
movss xmm6, dword [edi + 0x18]
movaps xmm3, xmm6
movaps xmmword [esp + 0xb0], xmm4
addss xmm3, dword [edi + 0x20]
movss xmm5, dword [edx + eax]
movaps xmm2, xmm5
movss dword [esp + 0x30], xmm5
addss xmm2, dword [edi + 0x1c]
je 0x40c49c
xorps xmm1, xmm1
jmp 0x40c4db
cmp dword [edi + 0x2f8], 0
mov ecx, dword [edi]
movss xmm0, dword [ecx + 0x3bc8]
mulss xmm0, dword [edi + 0x25c]
je 0x40c4c5
mov ecx, dword [edi + 0x2f8]
mulss xmm0, dword [ecx + 0x25c]
mov ecx, dword [edi]
movss xmm1, dword [ecx + 0x37c0]
mov ecx, dword [esp + 0x1c]
addss xmm1, xmm1
addss xmm1, xmm0
movaps xmm7, xmm6
movss dword [esp + 0x90], xmm5
addss xmm7, xmm1
movaps xmm0, xmm5
addss xmm0, dword [edi + 0x24]
movss xmm1, dword [edx + eax + 4]
and ecx, 0x401
movss dword [esp + 0x94], xmm1
movss dword [esp + 0x9c], xmm7
movss dword [esp + 0x98], xmm0
movss dword [edi + 0x1c0], xmm5
movaps xmm5, xmm4
movss dword [edi + 0x1c4], xmm6
movss dword [edi + 0x1c8], xmm2
movaps xmm2, xmm4
movss dword [edi + 0x1cc], xmm3
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [edi + 0x1c0]
shufps xmm5, xmm4, 0x55
maxss xmm0, xmm4
shufps xmm2, xmm4, 0xff
maxss xmm6, xmm5
movss dword [esp + 0x28], xmm7
movups xmmword [esp + 0x150], xmm5
movss dword [edi + 0x1c0], xmm0
movaps xmm0, xmm4
movss dword [edi + 0x1c4], xmm6
movss xmm1, dword [edi + 0x1c8]
shufps xmm0, xmm4, 0xaa
minss xmm1, xmm0
movups xmmword [esp + 0x140], xmm0
movss xmm0, dword [edi + 0x1cc]
minss xmm0, xmm2
movss dword [edi + 0x1c8], xmm1
movups xmmword [esp + 0xc0], xmm2
movss dword [edi + 0x1cc], xmm0
movss xmm6, dword [edx + eax]
movss xmm7, dword [edi + 0x18]
movaps xmm0, xmm6
mov edx, dword [esp + 0x38]
addss xmm0, dword [edi + 0x54]
addss xmm6, dword [edi + 0x1c]
movss dword [esp + 0x80], xmm0
movss dword [edi + 0x1d0], xmm0
movaps xmm0, xmm7
addss xmm7, dword [edi + 0x20]
addss xmm0, dword [edi + 0x58]
subss xmm6, dword [edi + 0x5c]
subss xmm7, dword [edi + 0x60]
movss dword [esp + 0x44], xmm0
movss dword [edi + 0x1d4], xmm0
movss dword [edi + 0x1d8], xmm6
movss dword [edi + 0x1dc], xmm7
cmp ecx, 1
jne 0x40c628
movss xmm0, dword [edi + 0x50]
jmp 0x40c630
movss xmm0, dword [edx + 0x37c8]
movss xmm2, dword [0x48f8e4]
movss dword [esp + 0x34], xmm0
addss xmm6, xmm2
movss xmm0, dword [edi + 0x44]
addss xmm7, xmm2
mulss xmm0, xmm2
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x80]
addss xmm0, xmm2
subss xmm7, dword [edi + 0x50]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, dword [edi + 0x50]
addss xmm0, xmm1
subss xmm6, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1e0], xmm0
movss xmm0, dword [esp + 0x44]
addss xmm0, xmm2
addss xmm0, dword [esp + 0x34]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvttss2si ecx, xmm6
cvtdq2ps xmm0, xmm0
movups xmm6, xmmword [esp + 0xc0]
movss dword [edi + 0x1e4], xmm0
movd xmm0, ecx
cvttss2si ecx, xmm7
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1e8], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1ec], xmm0
movss xmm0, dword [edi + 0x1e4]
comiss xmm5, xmm0
jbe 0x40c6ef
movaps xmm1, xmm5
jmp 0x40c6f6
movaps xmm1, xmm6
minss xmm1, xmm0
movups xmm3, xmmword [esp + 0x140]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm4, xmm2
jbe 0x40c70f
movaps xmm0, xmm4
jmp 0x40c716
movaps xmm0, xmm3
minss xmm0, xmm2
movss dword [edi + 0x1e0], xmm0
movss dword [edi + 0x1e4], xmm1
movss xmm0, dword [edi + 0x1ec]
comiss xmm5, xmm0
jbe 0x40c738
movaps xmm1, xmm5
jmp 0x40c73f
movaps xmm1, xmm6
minss xmm1, xmm0
movss xmm2, dword [edi + 0x1e8]
comiss xmm4, xmm2
jbe 0x40c751
movaps xmm0, xmm4
jmp 0x40c758
movaps xmm0, xmm3
minss xmm0, xmm2
movss dword [edi + 0x1e8], xmm0
xorps xmm2, xmm2
movss dword [edi + 0x1ec], xmm1
movss xmm0, dword [edi + 0x1c]
comiss xmm0, xmm2
jbe 0x40c789
test dword [esp + 0x1c], 0x2000040
jne 0x40c789
mulss xmm0, dword [0x48f8ec]
jmp 0x40c799
movss xmm0, dword [edx + 0x3bc4]
mulss xmm0, dword [0x48f964]
cvttss2si eax, xmm0
mov edx, edi
lea ecx, [esp + 0x80]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x240], xmm0
movss xmm1, dword [edi + 0x44]
movss xmm0, dword [edi + 0x1d8]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x1d0]
addss xmm1, dword [edi + 0x2c]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss xmm1, dword [edi + 0x48]
addss xmm1, xmm1
movss dword [edi + 0x80], xmm0
movss xmm0, dword [edi + 0x1dc]
subss xmm0, dword [edi + 0x1d4]
addss xmm1, dword [edi + 0x30]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x84], xmm0
call fcn.004108c0
mov ecx, dword [edi + 0x264]
mov dword [esp + 0x44], ecx
add ecx, 0x48
mov dword [esp + 0x34], ecx
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [esp + 0x38]
movss dword [edi + 0x78], xmm0
movss dword [edi + 0x7c], xmm1
mov dword [edi + 0x88], 0x7f7fffff
mov dword [edi + 0x8c], 0x7f7fffff
mov dword [edi + 0x68], 0
mov dword [edi + 0x64], 0
mov eax, dword [eax + 0x3bc0]
mov edx, dword [ecx]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x40c8b0
inc edx
mov dword [esp + 0x80], edx
test eax, eax
je 0x40c89c
cdq
sub eax, edx
mov edx, dword [esp + 0x80]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40c8a1
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00417420
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
inc dword [ecx]
mov ecx, dword [esp + 0x44]
mov dword [ecx + 0x70], eax
call fcn.0041f9c0
mov ecx, dword [0x4a0fd0]
movaps xmm0, xmmword [esp + 0xb0]
comiss xmm0, dword [esp + 0x140]
mov eax, dword [ecx + 0x3e58]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e58]
mov dword [esp + 0x34], eax
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [eax + 0x264]
mov dword [esp + 0x68], eax
jb 0x40c92c
movss dword [esp + 0x88], xmm0
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [esp + 0xb0], xmm0
movups xmm0, xmmword [esp + 0x150]
comiss xmm0, dword [esp + 0xc0]
jb 0x40c957
movss dword [esp + 0x8c], xmm0
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [esp + 0xb0], xmm0
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], ecx
cmp edx, eax
jne 0x40c999
inc edx
mov dword [esp + 0x80], edx
test eax, eax
je 0x40c985
cdq
sub eax, edx
mov edx, dword [esp + 0x80]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40c98a
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00417b30
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
movaps xmm0, xmmword [esp + 0xb0]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, dword [esp + 0x68]
movups xmmword [ecx + 0x60], xmm0
call fcn.0041f920
mov edx, dword [esp + 0x34]
mov byte [esp + 0x18], 0
mov eax, dword [edx + 0x264]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
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 + 0x210], eax
movss dword [edx + 0x214], xmm0
movss dword [edx + 0x218], xmm1
movss dword [edx + 0x21c], xmm2
cmp dword [esp + 0x5c], 0x1000000
jne 0x40cacd
cmp dword [esp + 0x40], 0x3000000
je 0x40cacd
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x180]
cmp edx, 2
jl 0x40ca91
mov eax, dword [eax + 0x188]
mov edx, dword [eax + edx*4 - 8]
test edx, edx
je 0x40ca91
movss xmm5, dword [edx + 0x18]
mov eax, edi
movss xmm7, dword [edx + 0x14]
mov ecx, 0x14
movss xmm2, dword [edi + 0x18]
movaps xmm0, xmm5
addss xmm0, dword [edx + 0x20]
addss xmm2, dword [edi + 0x20]
movss xmm6, dword [ecx + eax]
movaps xmm3, xmm7
addss xmm3, dword [edx + 0x1c]
movaps xmm4, xmm6
comiss xmm0, dword [edi + 0x18]
addss xmm4, dword [edi + 0x1c]
jbe 0x40ca91
comiss xmm2, xmm5
jbe 0x40ca91
comiss xmm3, xmm6
jbe 0x40ca91
comiss xmm4, xmm7
mov byte [esp + 0x17], 1
ja 0x40ca96
mov byte [esp + 0x17], 0
mov edx, dword [edi + 0x264]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x40cacd
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x264]
cmp dword [eax + 0x18], 0
je 0x40cacd
cmp byte [esp + 0x17], 0
jne 0x40cacd
mov byte [esp + 0x18], 1
mov dword [edi + 0x264], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x4948]
test ecx, ecx
jne 0x40cae1
mov ecx, dword [eax + 0x47dc]
cmp byte [esp + 0x24], 0
jne 0x40cb01
test ecx, ecx
je 0x40cafa
mov eax, dword [edi + 0x308]
cmp eax, dword [ecx + 0x308]
je 0x40cb01
mov byte [esp + 0x34], 0
jmp 0x40cb06
mov byte [esp + 0x34], 1
movd xmm0, esi
lea eax, [esp + 0x160]
push ecx
cvtdq2ps xmm0, xmm0
lea edx, [esp + 0x94]
movss dword [esp], xmm0
push eax
push dword [esp + 0x54]
push ecx
push dword [esp + 0x44]
mov ecx, edi
call fcn.0040a360
add esp, 0x14
cmp byte [esp + 0x18], 0
je 0x40cb48
lea eax, [edi + 0x268]
mov dword [edi + 0x264], eax
mov ecx, dword [esp + 0x1c]
xorps xmm2, xmm2
movss xmm4, dword [edi + 0x3c]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm4, xmm2
lahf
test ah, 0x44
jnp 0x40cb6c
movaps xmm7, xmm4
jmp 0x40cba8
movss xmm0, dword [edi + 0x44]
mov eax, ecx
movss xmm1, dword [edi + 0x1c]
addss xmm0, xmm0
and eax, 0x808
subss xmm1, xmm0
movss xmm0, dword [edi + 0x5c]
addss xmm0, dword [edi + 0x54]
subss xmm1, xmm0
cmp eax, 0x800
jne 0x40cba1
movss xmm7, dword [edi + 0x2c]
jmp 0x40cba4
xorps xmm7, xmm7
maxss xmm7, xmm1
movss xmm5, dword [edi + 0x40]
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jnp 0x40cbbb
movaps xmm6, xmm5
jmp 0x40cbed
movss xmm0, dword [edi + 0x48]
movss xmm1, dword [edi + 0x20]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x58]
addss xmm0, dword [edi + 0x60]
subss xmm1, xmm0
test dl, dl
je 0x40cbe6
movss xmm6, dword [edi + 0x30]
jmp 0x40cbe9
xorps xmm6, xmm6
maxss xmm6, xmm1
movss xmm1, dword [edi + 0x44]
mov ecx, 0x14
movss xmm2, dword [edi + 0x78]
movss xmm0, dword [edi + 0x1d0]
subss xmm0, xmm2
movss dword [esp + 0x4c], xmm1
maxss xmm1, dword [edi + 0x50]
movss dword [esp + 0x34], xmm2
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [edi + 0x1f0], xmm2
addss xmm7, xmm2
movss xmm0, dword [edi + 0x7c]
movss xmm1, dword [edi + 0x48]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [edi + 0x1d4]
subss xmm0, dword [esp + 0x20]
movss dword [esp + 0x5c], xmm1
maxss xmm1, dword [edi + 0x50]
movss xmm2, dword [esp + 0x4c]
addss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x5c]
movd xmm0, eax
mov eax, edi
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1f4], xmm0
addss xmm0, xmm6
movss dword [edi + 0x1f8], xmm7
movss dword [edi + 0x1fc], xmm0
movups xmm0, xmmword [edi + 0x1f0]
movups xmmword [edi + 0x200], xmm0
movss xmm0, dword [ecx + eax]
movss xmm6, dword [edi + 0x54]
movaps xmm3, xmm0
subss xmm3, dword [esp + 0x34]
movss dword [esp + 0x80], xmm0
addss xmm3, xmm2
addss xmm3, xmm6
movss dword [edi + 0x220], xmm3
movss xmm0, dword [edi + 0x18]
movss xmm7, dword [edi + 0x58]
movss dword [esp + 0x44], xmm0
subss xmm0, dword [esp + 0x20]
addss xmm0, xmm1
addss xmm0, xmm7
movss dword [esp + 0x4c], xmm0
movss dword [edi + 0x224], xmm0
xorps xmm0, xmm0
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jp 0x40cd27
movss xmm4, dword [edi + 0x1c]
movaps xmm0, xmm2
addss xmm0, xmm2
subss xmm4, xmm0
movaps xmm0, xmm6
addss xmm0, dword [edi + 0x5c]
subss xmm4, xmm0
xorps xmm0, xmm0
ucomiss xmm5, xmm0
addss xmm4, xmm3
lahf
movss dword [edi + 0x228], xmm4
test ah, 0x44
jp 0x40cd58
movss xmm5, dword [edi + 0x20]
movaps xmm0, xmm1
addss xmm0, xmm1
subss xmm5, xmm0
movaps xmm0, xmm7
addss xmm0, dword [edi + 0x60]
subss xmm5, xmm0
movss xmm4, dword [esp + 0x34]
lea ecx, [edi + 0x15c]
addss xmm5, dword [esp + 0x4c]
movaps xmm0, xmm6
mov esi, dword [esp + 0x38]
addss xmm0, xmm2
cvtps2pd xmm3, xmm2
movss dword [edi + 0x22c], xmm5
subss xmm0, xmm4
cvtps2pd xmm2, xmm1
movss dword [edi + 0x134], xmm0
movss xmm0, dword [esp + 0x80]
cvtps2pd xmm0, xmm0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x138], 0
addsd xmm3, xmm0
cvtps2pd xmm0, xmm4
subsd xmm3, xmm0
cvtps2pd xmm0, xmm6
addsd xmm3, xmm0
movss xmm0, dword [esp + 0x44]
cvtps2pd xmm0, xmm0
addsd xmm3, qword [0x48f8a0]
addsd xmm2, xmm0
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
subsd xmm2, xmm0
cvtps2pd xmm0, xmm7
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm3
cvtpd2ps xmm1, xmm2
movss dword [edi + 0x100], xmm0
movss dword [edi + 0x104], xmm1
movss xmm0, dword [edi + 0x100]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [edi + 0x104]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
subsd xmm2, xmm0
movss dword [edi + 0x140], xmm1
cvtpd2ps xmm0, xmm2
movss dword [edi + 0x144], xmm0
movss xmm1, dword [edi + 0x100]
movss xmm0, dword [edi + 0x104]
movss dword [edi + 0xf0], xmm1
movss dword [edi + 0xf4], xmm0
movss dword [edi + 0xf8], xmm1
movss dword [edi + 0xfc], xmm0
movss dword [edi + 0x108], xmm1
movss dword [edi + 0x10c], xmm0
movss dword [edi + 0x110], xmm1
xorps xmm1, xmm1
movss dword [edi + 0x114], xmm0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
mov dword [edi + 0x118], 0
mov dword [edi + 0x11c], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x128], 0
mov word [edi + 0x130], 0
mov dword [edi + 0x148], 0
mov ax, word [edi + 0x14e]
mov word [edi + 0x14c], ax
mov dword [edi + 0x14e], 0x10000
movss xmm0, dword [edi + 0x84]
comiss xmm0, xmm1
seta al
cmp byte [esp + 0x1b], 0
mov byte [edi + 0x152], al
mov byte [edi + 0x153], 0
movss xmm1, dword [esi + 0x37cc]
je 0x40cf24
xorps xmm0, xmm0
movq qword [ecx + 0x12], xmm0
cvttss2si eax, xmm1
push ecx
mov word [ecx + 8], ax
call fcn.0042ce20
xorps xmm0, xmm0
movq qword [edi + 0x16e], xmm0
mov eax, dword [edi + 0x160]
mov dword [edi + 0x15c], eax
lea eax, [edi + 0x180]
mov dword [edi + 0x160], 0
mov dword [edi + 0x178], 0
mov dword [edi + 0x17c], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40cf96
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 + 0x180]
call fcn.00417420
lea eax, [edi + 0x180]
mov dword [eax], 0
lea eax, [edi + 0x244]
mov dword [edi + 0x18c], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x190], 0
mov dword [edi + 0x198], 1
test eax, eax
je 0x40cfcc
mov eax, dword [eax + 0x198]
jmp 0x40cfd1
mov eax, 1
mov dword [edi + 0x19c], eax
mov eax, dword [edi + 0x240]
mov dword [edi + 0x1a0], eax
lea eax, [edi + 0x1a8]
mov dword [edi + 0x1a4], 0xbf800000
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40d01c
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 + 0x1a8]
call fcn.00417420
lea eax, [edi + 0x1a8]
mov dword [eax], 0
lea eax, [edi + 0x1b4]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40d051
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.00417420
lea eax, [edi + 0x1b4]
mov dword [eax], 0
mov al, byte [edi + 0xc4]
test al, al
jle 0x40d069
dec al
mov byte [edi + 0xc4], al
mov al, byte [edi + 0xc5]
test al, al
jle 0x40d07b
dec al
mov byte [edi + 0xc5], al
cmp byte [esp + 0x24], 0
je 0x40d09f
mov edx, 2
mov ecx, edi
call fcn.0040d8c0
cmp edi, dword [esi + 0x47dc]
jne 0x40d09f
xor dl, dl
mov ecx, edi
call fcn.00412860
test byte [esp + 0x1c], 1
jne 0x40d10b
movss xmm0, dword [esp + 0x30]
lea edx, [esp + 0xb0]
addss xmm0, dword [edi + 0x50]
push dword [esp + 0xac]
mov ecx, edi
push dword [esp + 0x68]
movss dword [esp + 0xb8], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 0xbc], xmm0
movss xmm0, dword [esp + 0x34]
subss xmm0, dword [edi + 0x50]
movss dword [esp + 0xc0], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0xc4], xmm0
call fcn.0040a980
add esp, 8
mov edx, dword [0x4a0fd0]
xor eax, eax
movss xmm2, dword [esp + 0x30]
movss xmm3, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x28]
movss xmm5, dword [esp + 0x94]
mov dword [edi + 0x230], eax
movss xmm1, dword [edx + 0x37e4]
movss xmm0, dword [edx + 0x37e8]
subss xmm2, xmm1
addss xmm3, xmm1
movss xmm1, dword [edx + 0xdb8]
addss xmm4, xmm0
subss xmm5, xmm0
comiss xmm1, xmm2
jb 0x40d180
movss xmm0, dword [edx + 0xdbc]
comiss xmm0, xmm5
jb 0x40d180
comiss xmm3, xmm1
jbe 0x40d180
comiss xmm4, xmm0
mov dword [esp + 0x30], 1
ja 0x40d184
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x70]
mov ecx, dword [esi + 0x46b0]
movaps xmm0, xmmword [esp + 0x90]
mov dword [edx + 0x46d0], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x46d4], ecx
mov dword [edx + 0x46d8], eax
movups xmmword [edx + 0x46ec], xmm0
movups xmmword [edx + 0x46dc], xmm0
mov eax, dword [esi + 0x46b4]
test eax, eax
je 0x40d258
cmp dword [edi + 8], eax
je 0x40d1d5
cmp dword [edi + 0x70], eax
jne 0x40d258
call fcn.00416950
jmp 0x40d258
mov edx, dword [0x4a0fd0]
mov dword [edx + 0x3e58], edi
mov eax, dword [edi + 0x194]
cmp eax, 0xffffffff
je 0x40d204
imul ecx, eax, 0x1f0
add ecx, dword [edx + 0x4a30]
jmp 0x40d206
xor ecx, ecx
mov dword [edx + 0x4a14], ecx
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3bc8]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x40d230
mulss xmm0, dword [eax + 0x25c]
movss dword [edx + 0x3bd8], xmm0
movss dword [edx + 0x3bc4], xmm0
test ecx, ecx
jne 0x40d250
cmp dword [edi + 0x190], ecx
jne 0x40d250
mov al, 1
jmp 0x40d252
xor al, al
mov byte [edi + 0x150], al
mov ecx, dword [0x4a0fd0]
mov eax, dword [ecx + 0x3e58]
mov byte [eax + 0xac], 1
mov eax, dword [ecx + 0x3e58]
movss xmm1, dword [edi + 0x1e0]
movss xmm0, dword [edi + 0x1e4]
movss xmm2, dword [edi + 0x1e8]
mov edx, dword [eax + 0x264]
movss xmm3, dword [edi + 0x1ec]
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], edx
movups xmm4, xmmword [edx + 0x60]
movss dword [esp + 0x70], xmm1
comiss xmm4, xmm1
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm2
movss dword [esp + 0x7c], xmm3
movaps xmmword [esp + 0xc0], xmm4
jbe 0x40d2d4
movaps xmm1, xmm4
movss dword [esp + 0x70], xmm1
movss xmm4, dword [esp + 0xc4]
comiss xmm4, xmm0
jbe 0x40d2eb
movaps xmm0, xmm4
movss dword [esp + 0x74], xmm0
movss xmm4, dword [esp + 0xc8]
comiss xmm2, xmm4
jbe 0x40d302
movaps xmm2, xmm4
movss dword [esp + 0x78], xmm2
movss xmm4, dword [esp + 0xcc]
comiss xmm3, xmm4
jbe 0x40d319
movaps xmm3, xmm4
movss dword [esp + 0x7c], xmm3
comiss xmm1, xmm2
jb 0x40d324
movss dword [esp + 0x78], xmm1
comiss xmm0, xmm3
jb 0x40d32f
movss dword [esp + 0x7c], xmm0
mov eax, dword [edx + 0x40]
lea ecx, [edx + 0x3c]
mov dword [esp + 0x5c], ecx
cmp dword [ecx], eax
jne 0x40d371
mov edx, dword [ecx]
inc edx
mov dword [esp + 0x4c], edx
test eax, eax
je 0x40d356
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40d35b
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00417b30
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x80]
mov eax, dword [ecx]
movaps xmm0, xmmword [esp + 0x70]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, edx
movups xmmword [edx + 0x60], xmm0
call fcn.0041f920
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x264]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
shl ecx, 4
movss xmm0, dword [ecx + eax - 0xc]
movss xmm1, dword [ecx + eax - 8]
movss xmm2, dword [ecx + eax - 4]
mov eax, dword [ecx + eax - 0x10]
mov dword [edx + 0x210], eax
mov eax, dword [esp + 0x54]
movss dword [edx + 0x214], xmm0
movss dword [edx + 0x218], xmm1
movss dword [edx + 0x21c], xmm2
mov byte [edi + 0xac], 0
inc word [edi + 0xb6]
mov dword [esi + 0x470c], 0
cmp eax, dword [esp + 0x58]
je 0x40d558
mov eax, dword [esp + 0x1c]
test eax, 0x1000000
je 0x40d4c2
test al, 0x40
jne 0x40d488
cmp byte [edi + 0xc4], 0
jg 0x40d488
cmp byte [edi + 0xc5], 0
jg 0x40d488
test eax, 0x800000
je 0x40d450
cmp byte [esi + 0x4818], 0
je 0x40d450
mov eax, dword [esi + 0x47dc]
test eax, eax
je 0x40d450
mov eax, dword [eax + 0x30c]
cmp eax, dword [edi + 0x30c]
jne 0x40d450
mov al, 1
jmp 0x40d452
xor al, al
cmp byte [esi + 0x5ac8], 0
jne 0x40d488
test al, al
jne 0x40d488
movss xmm0, dword [edi + 0x1c0]
comiss xmm0, dword [edi + 0x1c8]
jae 0x40d481
movss xmm0, dword [edi + 0x1c4]
comiss xmm0, dword [edi + 0x1cc]
jb 0x40d488
mov byte [edi + 0xcc], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40d4c2
cmp byte [eax + 0xad], 0
jne 0x40d4a2
cmp byte [eax + 0xcc], 0
jle 0x40d4a9
mov byte [edi + 0xcc], 1
cmp byte [eax + 0xad], 0
jne 0x40d4bb
cmp byte [eax + 0xcd], 0
jle 0x40d4c2
mov byte [edi + 0xcd], 1
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x3780]
jb 0x40d4d5
mov byte [edi + 0xcc], 1
cmp byte [edi + 0xcc], 0
jg 0x40d4f5
cmp byte [edi + 0xcd], 0
jg 0x40d4f5
xor cl, cl
cmp byte [edi + 0xce], cl
jg 0x40d4f7
xor al, al
jmp 0x40d4f9
mov cl, 1
mov al, 1
mov byte [edi + 0xb1], al
mov al, byte [edi + 0xcf]
test al, al
jle 0x40d518
dec al
mov byte [edi + 0xcf], al
or dword [edi + 0xc], 0xc0200
xor al, al
cmp byte [edi + 0xad], al
jne 0x40d52e
cmp byte [edi + 0xaa], al
je 0x40d52e
test cl, cl
je 0x40d552
cmp byte [edi + 0xc4], 0
jg 0x40d552
cmp byte [edi + 0xc5], 0
jg 0x40d552
cmp byte [edi + 0xcd], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov byte [edi + 0xaf], al
cmp byte [edi + 0xb2], 0
jne 0x40d5bd
cmp byte [esi + 0x64], 0
je 0x40d56e
cmp dword [esp + 0x6c], 0
je 0x40d583
cmp byte [esi + 0x65], 0
je 0x40d5bd
movsx eax, byte [esi + 0x5b1e]
cmp eax, dword [esi + 0x3e34]
jne 0x40d5bd
mov al, byte [edi + 0xc4]
test al, al
jle 0x40d595
inc al
mov byte [edi + 0xc4], al
mov al, byte [edi + 0xc5]
test al, al
jle 0x40d5a7
inc al
mov byte [edi + 0xc5], al
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.00439b00
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0xaf], 0
mov ecx, dword [esp + 0x17c]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00439b00
mov esp, ebp
pop ebp
ret