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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x64e2c0]
xor eax, esp
mov dword [esp + 0x124], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x653a14]
push edi
push 0
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x10]
push 0
push ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], esi
call fcn.0040ad00
mov edi, eax
add esi, 0x3e48
push edi
push esi
call fcn.0040c720
mov edx, dword [esi]
add esp, 0x14
mov ecx, dword [esi + 8]
lea ecx, [ecx + edx*8]
cmp eax, ecx
je 0x4045f1
cmp dword [eax], edi
jne 0x4045f1
mov edi, dword [eax + 4]
test edi, edi
mov dword [esp + 0x3c], edi
sete al
mov byte [esp + 0x14], al
mov byte [esp + 0x1c], al
test edi, edi
jne 0x404615
jmp 0x404603
mov al, 1
mov dword [esp + 0x3c], 0
mov byte [esp + 0x14], al
mov byte [esp + 0x1c], al
push dword [esp + 0x18]
push dword [esp + 0x60]
call fcn.00407e90
add esp, 8
mov edi, eax
mov edx, dword [esp + 0x18]
mov ecx, edx
and ecx, 0xc0200
cmp ecx, 0xc0200
jne 0x404630
or edx, 6
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x28]
mov eax, dword [edi + 0x238]
mov dword [esp + 0x48], eax
cmp dword [esi + 0x3e3c], 0
mov ecx, dword [esi + 0x3de0]
mov dword [esp + 0x4c], ecx
jne 0x40465e
cmp byte [esi + 0x3ded], 0
je 0x40465e
mov al, 1
jmp 0x404660
xor al, al
mov byte [edi + 0xb2], al
lea eax, [ecx - 1]
cmp dword [esp + 0x48], eax
setl ch
mov byte [esp + 0x58], ch
test edx, 0x4000000
je 0x4046b2
mov eax, dword [esi + 0x47c8]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x47c4]
mov eax, dword [edi + 0xc0]
cmp edi, dword [edx + esi*8 + 4]
setne cl
cmp eax, dword [edx + esi*8]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
setne al
or cl, al
or ch, cl
mov byte [esp + 0x58], ch
mov byte [edi + 0xb0], ch
test ch, ch
je 0x4046d1
or byte [edi + 0xd0], 8
or byte [edi + 0xd1], 8
or byte [edi + 0xd2], 8
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
je 0x40472d
push edx
push dword [esp + 0x20]
push edi
call fcn.00417840
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [edi + 0x238], eax
xor eax, eax
mov dword [edi + 0xc], edx
movsd xmm0, qword [esi + 0x3dd8]
cvtpd2ps xmm0, xmm0
mov word [edi + 0xba], ax
movss dword [edi + 0x23c], xmm0
movzx eax, word [esi + 0x3e54]
inc dword [esi + 0x3e54]
mov word [edi + 0xbc], ax
jmp 0x404734
mov edx, dword [edi + 0xc]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0x3e3c]
test eax, eax
jne 0x404742
xor ecx, ecx
jmp 0x40474f
imul ecx, eax, 0x54
mov eax, dword [esi + 0x3e44]
mov ecx, dword [eax + ecx - 0x54]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
cmp eax, dword [esp + 0x4c]
je 0x40476c
mov eax, edx
and eax, 0x5000000
neg eax
sbb eax, eax
and eax, ecx
jmp 0x404772
mov eax, dword [edi + 0x2f8]
cmp dword [edi + 0xe4], 0
mov dword [esp + 0x38], eax
lea eax, [edi + 0xe4]
jne 0x4047ab
cmp dword [eax + 4], 0
jne 0x40479a
push 8
mov ecx, eax
call fcn.00419050
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 0x3c
lea eax, [esp + 0xb8]
mov dword [esi + 0x3e60], edi
push 0
push eax
call fcn.005b4c50
mov eax, dword [esi + 0x4710]
lea edx, [esi + 0x3e3c]
mov dword [esp + 0xf8], eax
xorps xmm0, xmm0
movzx eax, word [edi + 0xe4]
add esp, 0xc
movups xmmword [esp + 0xf0], xmm0
mov word [esp + 0xf0], ax
movzx eax, word [esi + 0x4774]
movups xmm0, xmmword [esi + 0x46d8]
mov ecx, dword [edx]
mov word [esp + 0xf2], ax
movzx eax, word [esi + 0x4780]
mov word [esp + 0xf4], ax
movzx eax, word [esi + 0x478c]
mov word [esp + 0xf6], ax
movzx eax, word [esi + 0x4798]
mov word [esp + 0xf8], ax
movzx eax, word [esi + 0x47b0]
movups xmmword [esp + 0xb4], xmm0
mov word [esp + 0xfa], ax
movups xmm0, xmmword [esi + 0x46e8]
movzx eax, word [esi + 0x47a4]
mov word [esp + 0xfc], ax
movzx eax, word [esi + 0x47c8]
movups xmmword [esp + 0xc4], xmm0
mov word [esp + 0xfe], ax
movups xmm0, xmmword [esi + 0x46f8]
movzx eax, word [esi + 0x5a38]
mov word [esp + 0x100], 0
movups xmmword [esp + 0xd4], xmm0
mov word [esp + 0x100], ax
mov eax, dword [edx + 4]
movq xmm0, qword [esi + 0x4708]
mov dword [esp + 0xb0], edi
movq qword [esp + 0xe4], xmm0
mov dword [esp + 0x24], eax
cmp ecx, eax
jne 0x4048f4
inc ecx
test eax, eax
je 0x4048dc
cdq
sub eax, edx
lea edx, [esi + 0x3e3c]
sar eax, 1
add eax, dword [esp + 0x24]
jmp 0x4048e1
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00419300
lea edx, [esi + 0x3e3c]
imul ecx, dword [edx], 0x54
movups xmm0, xmmword [esp + 0xb0]
mov eax, dword [esp + 0x100]
add ecx, dword [edx + 8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [esp + 0xd0]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [ecx + 0x40], xmm0
mov dword [ecx + 0x50], eax
inc dword [edx]
mov ecx, dword [esp + 0x18]
test ecx, 0x10000000
je 0x404953
inc dword [esi + 0x47e0]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
je 0x404a01
mov edx, dword [esp + 0x38]
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 0x4049d1
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x4049a1
mov eax, dword [edx + 0x300]
mov dword [edi + 0x300], eax
test ecx, 0x4000000
je 0x4049b5
mov eax, dword [edx + 0x304]
mov dword [edi + 0x304], eax
test ecx, 0x8000000
jne 0x4049d1
test ecx, 0x5000000
je 0x4049d1
mov eax, dword [edx + 0x308]
mov dword [edi + 0x308], eax
test dword [edi + 0xc], 0x800000
je 0x4049f7
mov ecx, edi
nop dword [eax]
mov eax, dword [ecx + 0x2f8]
mov ecx, eax
mov dword [edi + 0x30c], eax
test dword [ecx + 0xc], 0x800000
jne 0x4049e0
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x2fc], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [0x653a14]
mov ecx, dword [eax + 0x479c]
lea edx, [eax + 0x4798]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edx
cmp dword [edx], ecx
jne 0x404a51
test ecx, ecx
je 0x404a38
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, ecx
jmp 0x404a3d
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00419050
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4], esi
mov eax, esi
inc dword [edx]
test dword [esp + 0x18], 0x4000000
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov dword [ecx + 0x46b4], eax
mov eax, dword [esi + 0x46b4]
mov dword [edi + 0x34c], eax
mov dword [esi + 0x3e60], 0
je 0x404ace
mov eax, dword [esi + 0x47c8]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x47c4]
mov dword [eax + ecx*8 + 4], edi
lea esi, [eax + ecx*8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push esi
mov eax, dword [eax + 0x148]
lea ecx, [ecx + 0x47c8]
mov dword [esi + 0xc], eax
call fcn.00418e20
mov eax, dword [esi]
mov esi, dword [esp + 0x28]
mov dword [edi + 0xc0], eax
xor dl, dl
mov byte [esp + 0x17], 0
test byte [esi + 0x4714], 1
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], dl
je 0x404b88
mov dl, byte [edi + 0xd0]
mov ecx, dword [esi + 0x4718]
movsx eax, dl
test ecx, eax
setne byte [esp + 0x17]
test ecx, eax
je 0x404b77
movss xmm1, dword [esi + 0x4730]
movss xmm0, dword [esi + 0x472c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x5eeaa0]
jbe 0x404b77
mov eax, dword [esi + 0x4724]
mov ecx, dword [esi + 0x4728]
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xd4], eax
mov eax, dword [esi + 0x472c]
mov ecx, dword [esi + 0x4730]
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 0x404b88
push ecx
lea eax, [esi + 0x4724]
push eax
push edi
call fcn.00414780
add esp, 0xc
test byte [esi + 0x4714], 2
xorps xmm1, xmm1
je 0x404bee
movsx eax, byte [edi + 0xd1]
mov ecx, dword [esi + 0x471c]
and eax, ecx
je 0x404bb9
movss xmm0, dword [esi + 0x4734]
comiss xmm0, xmm1
jbe 0x404bb9
mov byte [esp + 0x15], 1
jmp 0x404bc3
xor dl, dl
mov byte [esp + 0x15], dl
test eax, eax
je 0x404bd5
movss xmm0, dword [esi + 0x4738]
comiss xmm0, xmm1
mov byte [esp + 0x16], 1
ja 0x404bda
mov byte [esp + 0x16], 0
push ecx
lea eax, [esi + 0x4734]
push eax
push edi
call fcn.004148e0
add esp, 0xc
xorps xmm1, xmm1
test byte [esi + 0x4714], 0x80
je 0x404c35
movss xmm0, dword [esi + 0x4744]
comiss xmm0, xmm1
jb 0x404c16
movss dword [edi + 0x88], xmm0
mov dword [edi + 0x90], 0
movss xmm0, dword [esi + 0x4748]
comiss xmm0, xmm1
jb 0x404c35
movss dword [edi + 0x8c], xmm0
mov dword [edi + 0x94], 0
test byte [esi + 0x4714], 4
je 0x404c52
mov eax, dword [esi + 0x473c]
mov ecx, dword [esi + 0x4740]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], ecx
jmp 0x404c6a
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
je 0x404c6a
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
test byte [esi + 0x4714], 8
je 0x404cb7
mov ecx, dword [esi + 0x4720]
mov dl, byte [esi + 0x474c]
test ecx, ecx
je 0x404c8e
movsx eax, byte [edi + 0xd2]
test ecx, eax
je 0x404cb7
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 + 0x4714], 0x20
je 0x404ccb
push 0
push edi
call fcn.00409c40
add esp, 8
cmp byte [edi + 0xb0], 0
je 0x404ce9
and byte [edi + 0xd0], 0xf7
and byte [edi + 0xd1], 0xf7
and byte [edi + 0xd2], 0xf7
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
je 0x4066a6
mov eax, dword [esp + 0x18]
and eax, 0x3000000
mov byte [edi + 0xaa], 1
cmp dword [esp + 0x60], 0
mov dword [esp + 0x2c], eax
mov al, byte [edi + 0xcd]
mov byte [esp + 0x33], 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 [edi + 0xe8]
cmp eax, 1
jge 0x404d89
test eax, eax
je 0x404d6c
cdq
sub eax, edx
lea edx, [edi + 0xe4]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x404d77
mov ecx, 8
lea edx, [edi + 0xe4]
mov eax, 1
cmp ecx, eax
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.00419050
mov dword [edi + 0xe4], 1
mov ecx, dword [edi + 0x264]
call fcn.004221f0
cmp byte [edi + 0x358], 0
mov dword [edi + 0x194], 0xffffffff
je 0x404e8a
mov ecx, dword [edi + 0x264]
push dword [edi + 0x350]
add ecx, 0xc
mov byte [edi + 0x358], 0
call fcn.00418fd0
mov eax, dword [edi + 0x264]
mov ecx, dword [edi + 0x354]
add eax, 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
cmp ecx, dword [eax + 4]
jle 0x404e76
mov eax, dword [0x653a14]
test eax, eax
je 0x404dff
inc dword [eax + 0xb0]
push dword [0x653a18]
lea eax, [ecx + ecx*4]
shl eax, 2
push eax
call dword [section..data]
mov dword [esp + 0x28], eax
add esp, 8
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
test edx, edx
je 0x404e68
mov ecx, dword [eax]
lea ecx, [ecx + ecx*4]
shl ecx, 2
push ecx
push edx
push dword [esp + 0x28]
call fcn.005b46d0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x404e54
mov eax, dword [0x653a14]
test eax, eax
je 0x404e54
dec dword [eax + 0xb0]
push dword [0x653a18]
push ecx
call dword [0x64d004]
mov eax, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov dword [edi + 0x354], 0
mov dword [edi + 0x350], 0
cmp dword [esi + 0x4964], 0
je 0x404f86
test dword [edi + 0xc], 0x80000
jne 0x404f86
cmp dword [esp + 0x3c], 0
je 0x404f86
mov eax, dword [edi + 4]
mov ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404ee0
test dl, dl
je 0x404edc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404ee0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404ec0
xor eax, eax
jmp 0x404ee5
sbb eax, eax
or eax, 1
test eax, eax
je 0x404f86
mov ecx, dword [esp + 0x5c]
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x34], edx
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404f00
sub ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
cmp edx, eax
mov eax, dword [esp + 0x20]
jae 0x404f6a
test eax, eax
je 0x404f2e
mov ecx, dword [0x653a14]
test ecx, ecx
je 0x404f2e
dec dword [ecx + 0xb0]
push dword [0x653a18]
push eax
call dword [0x64d004]
mov eax, dword [0x653a14]
add esp, 8
test eax, eax
je 0x404f4d
inc dword [eax + 0xb0]
push dword [0x653a18]
push dword [esp + 0x20]
call dword [section..data]
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x34], ecx
jmp 0x404f6e
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x60]
push eax
call fcn.005b46d0
mov dword [edi + 4], eax
add esp, 0xc
mov eax, dword [esp + 0x34]
mov dword [edi + 0x6c], eax
lea eax, [edi + 0x34]
push eax
lea eax, [edi + 0x2c]
push eax
push edi
call fcn.00407140
mov al, byte [edi + 0xcc]
add esp, 0xc
test al, al
jle 0x404fa9
dec al
mov byte [edi + 0xcc], al
mov al, byte [edi + 0xcd]
test al, al
jle 0x404fbb
dec al
mov byte [edi + 0xcd], al
mov al, byte [edi + 0xce]
test al, al
jle 0x404fcd
dec al
mov byte [edi + 0xce], al
cmp dword [esp + 0x3c], 0
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
jne 0x404feb
test al, al
je 0x404fe4
test cl, cl
jne 0x404feb
mov byte [edi + 0xcd], 1
cmp byte [esp + 0x58], 0
mov edx, dword [esp + 0x18]
je 0x40504a
test edx, 0x6000000
je 0x40504a
mov byte [edi + 0xcd], 1
test dl, 0x40
je 0x40504a
test al, al
jne 0x40501c
mov dword [edi + 0x24], 0
mov dword [edi + 0x1c], 0
test cl, cl
jne 0x40502e
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 eax, dword [0x653a14]
mov eax, dword [eax + 0x47ec]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
mov ecx, dword [0x653a14]
mov dword [esp + 0x64], eax
mov dword [ecx + 0x3e60], edi
mov eax, dword [edi + 0x194]
cmp eax, 0xffffffff
je 0x405083
imul eax, eax, 0x1f0
add eax, dword [ecx + 0x4a44]
jmp 0x405085
xor eax, eax
mov dword [ecx + 0x4a28], eax
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3bd0]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x4050af
mulss xmm0, dword [eax + 0x25c]
movss dword [ecx + 0x3be0], xmm0
movss dword [ecx + 0x3bcc], xmm0
mov eax, dword [0x653a14]
cmp dword [eax + 0x4a28], 0
mov ecx, dword [eax + 0x3e60]
jne 0x4050e0
cmp dword [ecx + 0x190], 0
jne 0x4050e0
mov al, 1
jmp 0x4050e2
xor al, al
mov byte [ecx + 0x150], al
test edx, 0x1000000
je 0x4050fa
movss xmm1, dword [esi + 0x37b8]
jmp 0x40511c
test edx, 0x6000000
je 0x405114
test edx, 0x8000000
jne 0x405114
movss xmm1, dword [esi + 0x37c0]
jmp 0x40511c
movss xmm1, dword [esi + 0x379c]
mov eax, edi
movss dword [eax + 0x50], xmm1
mov eax, dword [esi + 0x3790]
mov ecx, dword [esi + 0x3794]
mov dword [edi + 0x44], eax
mov eax, edx
and eax, 0x5010000
mov dword [edi + 0x48], ecx
cmp eax, 0x1000000
jne 0x40516b
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x40516b
test edx, 0x400
je 0x40515f
movss xmm0, dword [esi + 0x3794]
mov dword [edi + 0x44], 0
movss dword [edi + 0x48], xmm0
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [esi + 0x37d4]
maxss xmm0, dword [esi + 0x476c]
movss dword [edi + 0x154], xmm0
mov eax, dword [esi + 0x4770]
mov dword [edi + 0x158], eax
mov al, byte [esp + 0x14]
mov dword [esp + 0x20], eax
test dl, 0x21
jne 0x40522e
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call fcn.00415920
cmp dword [esi + 0x3e64], edi
jne 0x4051f4
cmp dword [esi + 0x3e98], 0
jne 0x4051f4
cmp dword [esi + 0x3e9c], 0
jne 0x4051f4
push 1
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0040ba90
add esp, 0xc
test al, al
je 0x4051f4
cmp word [esi + 0x370a], 2
jne 0x4051f4
mov byte [edi + 0xae], 1
cmp byte [edi + 0xae], 0
je 0x405235
mov cl, byte [edi + 0xad]
test cl, cl
push edi
sete al
test cl, cl
mov byte [edi + 0xad], al
mov ecx, 1
mov eax, dword [esp + 0x24]
movzx eax, al
cmovne eax, ecx
mov dword [esp + 0x24], eax
call fcn.0040c760
add esp, 4
jmp 0x405235
mov byte [edi + 0xad], 0
movss xmm0, dword [edi + 0xa0]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [edi + 0xa4]
mov byte [edi + 0xae], 0
movss dword [esp + 0x6c], xmm0
mov dword [edi + 0x54], 0
mov dword [edi + 0x5c], 0
test dl, 1
je 0x405275
xorps xmm2, xmm2
jmp 0x4052aa
movss xmm0, dword [edi + 0x25c]
mov edx, dword [edi + 0x2f8]
mulss xmm0, dword [ecx + 0x3bd0]
test edx, edx
je 0x405297
mulss xmm0, dword [edx + 0x25c]
movss xmm2, dword [ecx + 0x37c8]
mov edx, dword [edi + 0xc]
addss xmm2, xmm2
addss xmm2, xmm0
test edx, 0x400
je 0x4052ee
movss xmm1, dword [edi + 0x25c]
mov eax, dword [edi + 0x2f8]
mulss xmm1, dword [ecx + 0x3bd0]
test eax, eax
je 0x4052d4
mulss xmm1, dword [eax + 0x25c]
movss xmm0, dword [ecx + 0x37c8]
addss xmm1, dword [edi + 0x158]
addss xmm0, xmm0
addss xmm1, xmm0
jmp 0x4052f1
xorps xmm1, xmm1
lea eax, [edi + 0x34]
mov dword [edi + 0x60], 0
push eax
addss xmm1, xmm2
mov dword [edi + 0xa0], 0
lea eax, [esp + 0x54]
mov dword [edi + 0xa4], 0
push edi
push eax
movss dword [edi + 0x58], xmm1
call fcn.00406f40
add esp, 0xc
test byte [esp + 0x18], 0x40
je 0x405372
cmp byte [edi + 0xad], 0
jne 0x405372
cmp byte [esp + 0x15], 0
jne 0x40534e
movss xmm0, dword [esp + 0x50]
movss dword [edi + 0x24], xmm0
mov byte [esp + 0x14], 1
cmp byte [esp + 0x16], 0
jne 0x40541e
movss xmm0, dword [esp + 0x54]
mov eax, 1
movss dword [edi + 0x28], xmm0
mov dword [esp + 0x20], eax
jmp 0x40541e
mov al, byte [edi + 0xc4]
test al, al
jg 0x405389
cmp byte [edi + 0xc5], 0
jle 0x40541e
cmp byte [esp + 0x15], 0
jne 0x4053ba
test al, al
jle 0x4053ba
cmp byte [edi + 0xc7], 0
je 0x4053aa
movss xmm0, dword [edi + 0x24]
maxss xmm0, dword [esp + 0x50]
jmp 0x4053b0
movss xmm0, dword [esp + 0x50]
movss dword [edi + 0x24], xmm0
mov byte [esp + 0x14], 1
cmp byte [esp + 0x16], 0
jne 0x4053f1
cmp byte [edi + 0xc5], 0
jle 0x4053f1
cmp byte [edi + 0xc7], 0
je 0x4053e0
movss xmm0, dword [edi + 0x28]
maxss xmm0, dword [esp + 0x54]
jmp 0x4053e6
movss xmm0, dword [esp + 0x54]
mov al, 1
movss dword [edi + 0x28], xmm0
mov dword [esp + 0x20], eax
cmp byte [edi + 0xad], 0
jne 0x40541e
test dword [edi + 0xc], 0x100
mov ecx, dword [0x653a14]
jne 0x40541e
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x5a7c]
jb 0x40541e
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5a7c], eax
lea eax, [edi + 0x24]
push eax
lea eax, [esp + 0x44]
push edi
push eax
call fcn.00407270
add esp, 0xc
cmp byte [edi + 0xad], 0
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [edi + 0x24], xmm0
movss dword [edi + 0x28], xmm1
je 0x405486
test dword [esp + 0x18], 0x1000000
jne 0x405486
lea eax, [esp + 0x110]
mov ecx, edi
push eax
call fcn.00415920
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [eax + 4]
movss dword [esp + 0x44], xmm0
jmp 0x405494
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
cmp byte [esp + 0x58], 0
lea ecx, [esp + 0x40]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x1c], eax
je 0x4054f6
mov eax, ecx
mov dword [edi + 0xc8], 0xffffffff
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x4054f6
cmp byte [esp + 0x17], 0
jne 0x4054f6
mov eax, dword [esi + 0x47c8]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x47d0]
movss xmm0, dword [eax + ecx*8 - 0x10]
movss xmm1, dword [eax + ecx*8 - 0xc]
mov ecx, dword [esp + 0x18]
movss dword [edi + 0x14], xmm0
movss dword [edi + 0x18], xmm1
test ecx, 0x1000000
je 0x40559b
mov edx, dword [esp + 0x38]
mov ax, word [edx + 0x180]
lea ecx, [edx + 0x180]
mov word [edi + 0xba], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
cmp dword [ecx], eax
jne 0x405556
mov edx, dword [ecx]
inc edx
mov dword [esp + 0x34], edx
test eax, eax
je 0x40553e
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x405543
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00419050
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov eax, dword [edx + 0x188]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x180]
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x17]
test ecx, 0x4000000
jne 0x40559f
test al, al
jne 0x40559f
cmp dword [esp + 0x2c], 0x3000000
je 0x40559f
mov ecx, dword [edx + 0xf4]
mov eax, dword [edx + 0xf0]
mov dword [edi + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x14], eax
mov al, byte [esp + 0x17]
movss xmm1, dword [edi + 0xd4]
ucomiss xmm1, dword [0x5eeb58]
lahf
test ah, 0x44
jnp 0x405605
cmp byte [edi + 0xcd], 0
jne 0x405605
movss xmm0, dword [edi + 0xdc]
lea eax, [esp + 0x40]
mulss xmm0, dword [edi + 0x1c]
push 0
push eax
push edi
subss xmm1, xmm0
movss xmm0, dword [edi + 0xd8]
movss dword [esp + 0x4c], xmm1
movss xmm1, dword [edi + 0x20]
mulss xmm1, dword [edi + 0xe0]
subss xmm0, xmm1
movss dword [esp + 0x50], xmm0
call fcn.00414780
add esp, 0xc
jmp 0x405656
test ecx, 0x10000000
jne 0x405635
test ecx, 0x4000000
je 0x40561f
test al, al
jne 0x40561f
cmp byte [esp + 0x33], al
jg 0x405635
test ecx, 0x2000000
je 0x40565a
test al, al
jne 0x40565a
cmp dword [esp + 0x2c], 0x3000000
je 0x40565a
lea eax, [esp + 0x40]
push edi
push eax
call fcn.00409090
add esp, 8
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
movss dword [edi + 0x14], xmm0
movss dword [edi + 0x18], xmm1
mov ecx, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
mov eax, dword [esp + 0x64]
movss xmm3, dword [esi + 0x3848]
movss xmm2, dword [esi + 0x3844]
maxss xmm3, dword [esi + 0x3850]
movss xmm7, dword [eax + 0x14]
movss xmm6, dword [eax + 0x18]
maxss xmm2, dword [esi + 0x384c]
addss xmm7, dword [eax + 0x1c]
addss xmm6, dword [eax + 0x20]
movss xmm0, dword [eax + 4]
movss xmm1, dword [eax + 8]
movaps xmm5, xmm0
addss xmm5, dword [eax + 0xc]
movaps xmm4, xmm1
movss dword [esp + 0x70], xmm0
addss xmm4, dword [eax + 0x10]
subss xmm7, xmm2
movss dword [esp + 0x74], xmm1
addss xmm2, dword [eax + 0x14]
subss xmm6, xmm3
movss dword [esp + 0x78], xmm5
addss xmm3, dword [eax + 0x18]
movss dword [esp + 0x7c], xmm4
movss dword [esp + 0xa8], xmm7
movss dword [esp + 0xa0], xmm2
movss dword [esp + 0xac], xmm6
movss dword [esp + 0xa4], xmm3
jne 0x4057ad
test ecx, 0x1000000
jne 0x4057ad
subss xmm5, xmm0
xorps xmm0, xmm0
comiss xmm5, xmm0
jbe 0x4057ad
subss xmm4, xmm1
comiss xmm4, xmm0
jbe 0x4057ad
mov eax, dword [0x653a14]
movss xmm1, dword [edi + 0x20]
cmp byte [eax + 0x4b], 0
je 0x405778
test byte [edi + 0xc], 1
jne 0x405778
mov edx, dword [edi]
mov eax, dword [edi + 0x2f8]
movss xmm0, dword [edx + 0x3bd0]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x405768
mulss xmm0, dword [eax + 0x25c]
movss xmm1, dword [edx + 0x37c8]
addss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [edi + 0x18]
subss xmm3, xmm1
subss xmm2, dword [edi + 0x1c]
comiss xmm3, xmm0
ja 0x405792
movaps xmm3, xmm6
minss xmm3, xmm0
movss xmm0, dword [edi + 0x14]
comiss xmm2, xmm0
ja 0x4057a3
movaps xmm2, xmm7
minss xmm2, xmm0
movss dword [edi + 0x14], xmm2
movss dword [edi + 0x18], xmm3
cvttss2si eax, dword [edi + 0x14]
movd xmm1, eax
cvttss2si eax, dword [edi + 0x18]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [edi + 0x14], xmm1
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x18], xmm0
test ecx, 0x1000000
je 0x4057e1
movss xmm2, dword [esi + 0x37b4]
jmp 0x405801
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x4057f9
movss xmm2, dword [esi + 0x37bc]
jmp 0x405801
movss xmm2, dword [esi + 0x3798]
xor al, al
movss dword [edi + 0x4c], xmm2
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x58], al
je 0x40583e
test ecx, 0x1000
jne 0x40583e
test ecx, 0x4000000
je 0x405829
mov byte [esp + 0x1c], 1
jmp 0x40583e
test ecx, 0x3000000
movzx eax, al
mov edx, 1
cmove eax, edx
mov dword [esp + 0x1c], eax
movss xmm1, dword [esi + 0x3bcc]
xorps xmm0, xmm0
addss xmm2, dword [0x5eeaf4]
movaps xmmword [esp + 0x110], xmm0
xor eax, eax
cmp byte [esi + 0x4a], al
movaps xmm0, xmm1
mulss xmm1, dword [0x5eeabc]
setne al
mov dword [esp + 0x34], 0xffffffff
mulss xmm0, dword [0x5eeaf8]
inc eax
cmp byte [edi + 0xad], 0
addss xmm1, xmm2
mov dword [esp + 0x40], eax
maxss xmm0, xmm1
cvttss2si esi, xmm0
jne 0x4058ca
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x114]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.00417980
mov ecx, dword [esp + 0x30]
add esp, 0x18
test al, al
je 0x4058ca
mov dl, 1
mov byte [esp + 0x14], dl
jmp 0x4058ce
mov edx, dword [esp + 0x20]
cmp byte [edi + 0xad], 0
mov al, byte [esp + 0x34]
mov byte [edi + 0xb5], al
jne 0x405a6e
cmp dword [esp + 0x3c], 0
lea eax, [esp + 0x50]
movss xmm0, dword [edi + 0x60]
movss xmm2, dword [edi + 0x1d8]
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 + 0x68]
addss xmm3, dword [esp + 0x6c]
jne 0x405946
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
jmp 0x40596e
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 + 0x50], xmm0
movss dword [esp + 0x54], xmm1
cmp byte [esp + 0x14], 0
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
jne 0x405981
movaps xmm5, xmm2
test dl, dl
jne 0x405988
movaps xmm4, xmm3
test ecx, 0x4000
jne 0x40599e
comiss xmm6, xmm4
jbe 0x40599a
test cl, 8
je 0x40599e
xor al, al
jmp 0x4059a0
mov al, 1
mov byte [esp + 0x14], al
mov byte [edi + 0xa9], al
test ecx, 0x8000
jne 0x4059fd
mov edx, dword [esp + 0x28]
xorps xmm0, xmm0
test al, al
je 0x4059c7
movss xmm1, dword [edx + 0x37fc]
jmp 0x4059ca
xorps xmm1, xmm1
subss xmm5, xmm1
comiss xmm7, xmm5
jbe 0x4059e5
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
mov al, byte [esp + 0x14]
je 0x4059fd
mov ecx, dword [esp + 0x3c]
xorps xmm1, xmm1
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
mov byte [edi + 0xa8], 0
jmp 0x405a39
mov edx, dword [esp + 0x3c]
mov byte [edi + 0xa8], 1
mov dword [esp + 0x3c], edx
test al, al
jne 0x405a2a
comiss xmm6, xmm4
jbe 0x405a1e
test cl, 8
jne 0x405a1e
mov al, 1
jmp 0x405a20
xor al, al
mov byte [edi + 0xa9], al
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
xorps xmm0, xmm0
movss xmm1, dword [edx + 0x37fc]
test al, al
je 0x405a45
movss xmm0, dword [edx + 0x37fc]
movss dword [edi + 0xa0], xmm0
addss xmm0, dword [edi + 0x5c]
movss dword [edi + 0xa4], xmm1
movss dword [edi + 0x5c], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x60]
movss dword [edi + 0x60], xmm0
jmp 0x405a72
mov edx, dword [esp + 0x28]
mov eax, ecx
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x405a95
cmp dword [esp + 0x2c], 0x3000000
je 0x405a95
mov eax, dword [esp + 0x38]
add eax, 0x210
jmp 0x405a99
lea eax, [esp + 0x70]
test byte [edi + 0xc], 1
movups xmm0, xmmword [eax]
mov eax, dword [edi]
movss xmm7, dword [edi + 0x18]
movups xmmword [esp + 0x90], xmm0
movss xmm0, dword [edi + 0x14]
movaps xmm6, xmm7
addss xmm6, dword [edi + 0x20]
movaps xmm5, xmm0
movss dword [esp + 0x24], xmm0
addss xmm5, dword [edi + 0x1c]
je 0x405ad1
xorps xmm3, xmm3
jmp 0x405b0b
movss xmm0, dword [eax + 0x3bd0]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x405af3
mulss xmm0, dword [eax + 0x25c]
mov eax, dword [edi]
movss xmm3, dword [eax + 0x37c8]
addss xmm3, xmm3
addss xmm3, xmm0
movss xmm0, dword [esp + 0x24]
movaps xmm2, xmm0
movss dword [esp + 0x80], xmm0
addss xmm2, dword [edi + 0x24]
movss xmm0, dword [edi + 0x18]
movaps xmm1, xmm7
movss dword [esp + 0x84], xmm0
addss xmm1, xmm3
movss xmm0, dword [esp + 0x24]
mov eax, ecx
and eax, 0x401
xorps xmm4, xmm4
movss dword [esp + 0x88], xmm2
movss dword [esp + 0x8c], xmm1
movss dword [edi + 0x1c0], xmm0
movss dword [edi + 0x1c4], xmm7
movss dword [edi + 0x1c8], xmm5
movss dword [edi + 0x1cc], xmm6
movss xmm0, dword [edi + 0x1c0]
movss xmm5, dword [esp + 0x90]
movss xmm6, dword [esp + 0x94]
maxss xmm0, xmm5
maxss xmm7, xmm6
movss dword [edi + 0x1c0], xmm0
movss dword [edi + 0x1c4], xmm7
movss xmm1, dword [edi + 0x1c8]
movss xmm0, dword [edi + 0x1cc]
minss xmm0, dword [esp + 0x9c]
minss xmm1, dword [esp + 0x98]
movss dword [edi + 0x1cc], xmm0
movss dword [edi + 0x1c8], xmm1
movss xmm7, dword [edi + 0x14]
movaps xmm0, xmm7
addss xmm0, dword [edi + 0x54]
addss xmm7, dword [edi + 0x1c]
movss dword [esp + 0x6c], xmm0
movss dword [edi + 0x1d0], xmm0
movss xmm0, dword [edi + 0x18]
movaps xmm1, xmm0
addss xmm0, dword [edi + 0x20]
addss xmm1, dword [edi + 0x58]
subss xmm7, dword [edi + 0x5c]
subss xmm0, dword [edi + 0x60]
movss dword [esp + 0x68], xmm1
movss dword [edi + 0x1d4], xmm1
movss dword [edi + 0x1d8], xmm7
movss dword [esp + 0x64], xmm0
movss dword [edi + 0x1dc], xmm0
cmp eax, 1
jne 0x405c43
movss xmm0, dword [edi + 0x50]
jmp 0x405c4b
movss xmm0, dword [edx + 0x37d0]
movss xmm2, dword [0x5eeacc]
movss dword [esp + 0x24], xmm0
addss xmm7, xmm2
movss xmm0, dword [edi + 0x44]
mulss xmm0, xmm2
movss xmm3, dword [esp + 0x9c]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x6c]
addss xmm0, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, dword [edi + 0x50]
addss xmm0, xmm1
subss xmm7, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1e0], xmm0
movss xmm0, dword [esp + 0x68]
addss xmm0, xmm2
addss xmm0, dword [esp + 0x24]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvttss2si ecx, xmm7
movss dword [edi + 0x1e4], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1e8], xmm0
movss xmm0, dword [esp + 0x64]
addss xmm0, xmm2
subss xmm0, dword [edi + 0x50]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1ec], xmm0
movss xmm0, dword [edi + 0x1e4]
comiss xmm6, xmm0
jbe 0x405d0e
movaps xmm1, xmm6
jmp 0x405d15
movaps xmm1, xmm3
minss xmm1, xmm0
movss xmm7, dword [esp + 0x98]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm5, xmm2
jbe 0x405d2f
movaps xmm0, xmm5
jmp 0x405d36
movaps xmm0, xmm7
minss xmm0, xmm2
movss dword [edi + 0x1e0], xmm0
movss dword [edi + 0x1e4], xmm1
movss xmm0, dword [edi + 0x1ec]
comiss xmm6, xmm0
ja 0x405d5a
movaps xmm6, xmm3
minss xmm6, xmm0
movss xmm0, dword [edi + 0x1e8]
comiss xmm5, xmm0
ja 0x405d6e
movaps xmm5, xmm7
minss xmm5, xmm0
movss dword [edi + 0x1e8], xmm5
movss dword [edi + 0x1ec], xmm6
movss xmm0, dword [edi + 0x1c]
comiss xmm0, xmm4
jbe 0x405d9c
test dword [esp + 0x18], 0x2000040
jne 0x405d9c
mulss xmm0, dword [0x5eead4]
jmp 0x405dac
movss xmm0, dword [edx + 0x3bcc]
mulss xmm0, dword [0x5eeb30]
cvttss2si eax, xmm0
mov ecx, edi
push edi
movd xmm0, eax
lea eax, [esp + 0x54]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ecx + 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.00406cc0
mov ecx, dword [edi + 0x264]
add esp, 8
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [esp + 0x28]
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 + 0x3bc8]
mov eax, dword [eax + 0x30]
push dword [eax + 4]
call fcn.0041f960
push 0
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004114f0
mov eax, dword [esp + 0x24]
add esp, 0xc
and eax, 0x5000000
mov byte [esp + 0x15], 0
cmp eax, 0x1000000
jne 0x405fa1
cmp dword [esp + 0x2c], 0x3000000
je 0x405fa1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x180]
cmp ecx, 2
jl 0x405f65
mov eax, dword [eax + 0x188]
mov eax, dword [eax + ecx*4 - 8]
test eax, eax
je 0x405f65
movss xmm1, dword [eax + 0x14]
lea ecx, [esp + 0xa0]
movss xmm0, dword [eax + 0x18]
movss dword [esp + 0xa0], xmm1
addss xmm1, dword [eax + 0x1c]
movss dword [esp + 0xa4], xmm0
addss xmm0, dword [eax + 0x20]
lea eax, [esp + 0x70]
push eax
movss dword [esp + 0xac], xmm1
movss xmm1, dword [edi + 0x14]
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [edi + 0x18]
movss dword [esp + 0x74], xmm1
addss xmm1, dword [edi + 0x1c]
movss dword [esp + 0x78], xmm0
addss xmm0, dword [edi + 0x20]
movss dword [esp + 0x7c], xmm1
movss dword [esp + 0x80], xmm0
call fcn.00411250
mov byte [esp + 0x14], al
jmp 0x405f6a
mov byte [esp + 0x14], 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 0x405fa1
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x264]
cmp dword [eax + 0x18], 0
je 0x405fa1
cmp byte [esp + 0x14], 0
jne 0x405fa1
mov byte [esp + 0x15], 1
mov dword [edi + 0x264], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x495c]
test ecx, ecx
jne 0x405fb5
mov ecx, dword [eax + 0x47f0]
cmp byte [esp + 0x1c], 0
jne 0x405fd5
test ecx, ecx
je 0x405fce
mov eax, dword [edi + 0x308]
cmp eax, dword [ecx + 0x308]
je 0x405fd5
mov byte [esp + 0x24], 0
jmp 0x405fda
mov byte [esp + 0x24], 1
movd xmm0, esi
lea eax, [esp + 0x110]
push ecx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x8c]
push 1
push dword [esp + 0x34]
push eax
push edi
call fcn.00412a20
add esp, 0x1c
cmp byte [esp + 0x15], 0
je 0x40601d
lea eax, [edi + 0x268]
mov dword [edi + 0x264], eax
mov ecx, dword [esp + 0x18]
xorps xmm4, xmm4
movss xmm5, dword [edi + 0x3c]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm5, xmm4
lahf
test ah, 0x44
jnp 0x406044
movss dword [esp + 0x24], xmm5
jmp 0x406086
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 0x406079
movss xmm0, dword [edi + 0x2c]
jmp 0x40607c
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [esp + 0x24], xmm0
movss xmm6, dword [edi + 0x40]
ucomiss xmm6, xmm4
lahf
test ah, 0x44
jnp 0x406099
movaps xmm7, xmm6
jmp 0x4060cb
movss xmm0, dword [edi + 0x48]
movss xmm1, dword [edi + 0x20]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x60]
addss xmm0, dword [edi + 0x58]
subss xmm1, xmm0
test dl, dl
je 0x4060c4
movss xmm7, dword [edi + 0x30]
jmp 0x4060c7
xorps xmm7, xmm7
maxss xmm7, xmm1
movss xmm0, dword [edi + 0x44]
movss xmm4, dword [edi + 0x78]
movss xmm1, dword [edi + 0x1d0]
movss dword [esp + 0x40], xmm0
subss xmm1, xmm4
maxss xmm0, dword [edi + 0x50]
movss dword [esp + 0x68], xmm4
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [edi + 0x1f0], 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 + 0x6c], xmm1
maxss xmm1, dword [edi + 0x50]
addss xmm2, dword [esp + 0x24]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1f4], xmm0
addss xmm7, xmm0
movss dword [edi + 0x1f8], xmm2
movss xmm2, dword [esp + 0x40]
movss dword [edi + 0x1fc], xmm7
movups xmm0, xmmword [edi + 0x1f0]
movups xmmword [edi + 0x200], xmm0
movss xmm0, dword [edi + 0x14]
movss xmm7, dword [edi + 0x54]
movaps xmm3, xmm0
subss xmm3, xmm4
movss dword [esp + 0x64], xmm0
addss xmm3, xmm2
addss xmm3, xmm7
movss dword [edi + 0x220], xmm3
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [edi + 0x58]
movss dword [esp + 0x40], xmm1
subss xmm1, dword [esp + 0x20]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x2c], xmm1
movss xmm4, dword [esp + 0x2c]
movss xmm1, dword [esp + 0x6c]
addss xmm4, xmm1
addss xmm4, xmm0
movaps xmm0, xmm4
movss dword [esp + 0x2c], xmm4
xorps xmm4, xmm4
movss dword [edi + 0x224], xmm0
ucomiss xmm5, xmm4
lahf
test ah, 0x44
jp 0x40620d
movss xmm5, dword [edi + 0x1c]
movaps xmm0, xmm2
addss xmm0, xmm2
subss xmm5, xmm0
movaps xmm0, xmm7
addss xmm0, dword [edi + 0x5c]
subss xmm5, xmm0
ucomiss xmm6, xmm4
addss xmm5, xmm3
lahf
movss dword [edi + 0x228], xmm5
movss xmm5, dword [esp + 0x24]
test ah, 0x44
jp 0x406244
movss xmm6, dword [edi + 0x20]
movaps xmm0, xmm1
addss xmm0, xmm1
subss xmm6, xmm0
movaps xmm0, xmm5
addss xmm0, dword [edi + 0x60]
subss xmm6, xmm0
movss xmm0, dword [esp + 0x2c]
addss xmm0, xmm6
mov esi, dword [esp + 0x28]
movss xmm6, dword [esp + 0x68]
cvtps2pd xmm3, xmm2
movss dword [edi + 0x22c], xmm0
movaps xmm0, xmm7
addss xmm0, xmm2
cvtps2pd xmm2, xmm1
subss xmm0, xmm6
push dword [esp + 0x58]
push ecx
lea ecx, [edi + 0x15c]
movss dword [edi + 0x134], xmm0
movss xmm0, dword [esp + 0x6c]
cvtps2pd xmm0, xmm0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x138], 0
addsd xmm3, xmm0
cvtps2pd xmm0, xmm6
subsd xmm3, xmm0
cvtps2pd xmm0, xmm7
addsd xmm3, xmm0
movss xmm0, dword [esp + 0x48]
cvtps2pd xmm0, xmm0
addsd xmm3, qword [0x5eea98]
addsd xmm2, xmm0
movss xmm0, dword [esp + 0x28]
cvtps2pd xmm0, xmm0
subsd xmm2, xmm0
cvtps2pd xmm0, xmm5
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
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, xmm4
seta al
mov byte [edi + 0x152], al
mov byte [edi + 0x153], 0
movss xmm0, dword [esi + 0x37d4]
movss dword [esp], xmm0
call fcn.0042e550
mov dword [edi + 0x178], 0
lea eax, [edi + 0x180]
mov dword [edi + 0x17c], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x406451
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.00419050
lea eax, [edi + 0x180]
mov dword [eax], 0
lea eax, [edi + 0x244]
mov dword [edi + 0x18c], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x190], 0
mov dword [edi + 0x198], 1
test eax, eax
je 0x406487
mov eax, dword [eax + 0x198]
jmp 0x40648c
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 0x4064d7
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.00419050
lea eax, [edi + 0x1a8]
mov dword [eax], 0
lea eax, [edi + 0x1b4]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40650c
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.00419050
lea eax, [edi + 0x1b4]
mov dword [eax], 0
mov al, byte [edi + 0xc4]
test al, al
jle 0x406524
dec al
mov byte [edi + 0xc4], al
mov al, byte [edi + 0xc5]
test al, al
jle 0x406536
dec al
mov byte [edi + 0xc5], al
cmp byte [esp + 0x1c], 0
je 0x40655b
push 2
push edi
call fcn.00409c40
add esp, 8
cmp edi, dword [esi + 0x47f0]
jne 0x40655b
push 0
push edi
call fcn.0040cab0
add esp, 8
test byte [esp + 0x18], 1
jne 0x4065c4
movss xmm0, dword [esp + 0x80]
lea eax, [esp + 0x70]
addss xmm0, dword [edi + 0x50]
push dword [esp + 0x60]
push dword [esp + 0x60]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x90]
subss xmm0, dword [edi + 0x50]
push eax
push edi
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 0x8c], xmm0
call fcn.00413560
add esp, 0x10
movss xmm2, dword [esp + 0x80]
xor eax, eax
mov dword [edi + 0x230], eax
mov edx, dword [0x653a14]
movss xmm1, dword [edx + 0x37ec]
movss xmm0, dword [edx + 0x37f0]
subss xmm2, xmm1
movss xmm5, dword [edx + 0xdbc]
movaps xmm3, xmm1
movss xmm1, dword [esp + 0x84]
movaps xmm4, xmm0
addss xmm3, dword [esp + 0x88]
addss xmm4, dword [esp + 0x8c]
comiss xmm5, xmm2
subss xmm1, xmm0
jb 0x406640
movss xmm0, dword [edx + 0xdc0]
comiss xmm0, xmm1
jb 0x406640
comiss xmm3, xmm5
jbe 0x406640
comiss xmm4, xmm0
mov dword [esp + 0x60], 1
ja 0x406644
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x70]
mov ecx, dword [esi + 0x46b8]
mov dword [edx + 0x46d8], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 0x46dc], ecx
mov dword [edx + 0x46e0], eax
movups xmm0, xmmword [esp + 0x80]
movups xmmword [edx + 0x46f4], xmm0
movups xmm0, xmmword [edx + 0x46f4]
movups xmmword [edx + 0x46e4], xmm0
mov eax, dword [esi + 0x46bc]
test eax, eax
je 0x406730
cmp dword [edi + 8], eax
je 0x40669c
cmp dword [edi + 0x70], eax
jne 0x406730
call fcn.004083c0
jmp 0x406730
mov ecx, dword [0x653a14]
mov dword [ecx + 0x3e60], edi
mov eax, dword [edi + 0x194]
cmp eax, 0xffffffff
je 0x4066cb
imul eax, eax, 0x1f0
add eax, dword [ecx + 0x4a44]
jmp 0x4066cd
xor eax, eax
mov dword [ecx + 0x4a28], eax
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3bd0]
mov eax, dword [edi + 0x2f8]
mulss xmm0, dword [edi + 0x25c]
test eax, eax
je 0x4066f7
mulss xmm0, dword [eax + 0x25c]
movss dword [ecx + 0x3be0], xmm0
movss dword [ecx + 0x3bcc], xmm0
mov eax, dword [0x653a14]
cmp dword [eax + 0x4a28], 0
mov ecx, dword [eax + 0x3e60]
jne 0x406728
cmp dword [ecx + 0x190], 0
jne 0x406728
mov al, 1
jmp 0x40672a
xor al, al
mov byte [ecx + 0x150], al
mov ecx, dword [0x653a14]
push 1
mov eax, dword [ecx + 0x3e60]
mov byte [eax + 0xac], 1
lea eax, [edi + 0x1e8]
mov esi, dword [ecx + 0x3e60]
push eax
lea eax, [edi + 0x1e0]
push eax
mov ecx, dword [esi + 0x264]
call fcn.0041f830
mov eax, dword [esi + 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 ecx, dword [esp + 0x28]
mov dword [esi + 0x210], eax
mov eax, dword [esp + 0x48]
movss dword [esi + 0x214], xmm0
movss dword [esi + 0x218], xmm1
movss dword [esi + 0x21c], xmm2
mov byte [edi + 0xac], 0
inc word [edi + 0xb6]
mov dword [ecx + 0x4714], 0
cmp eax, dword [esp + 0x4c]
je 0x40692d
mov eax, dword [esp + 0x18]
test eax, 0x1000000
je 0x406893
test al, 0x40
jne 0x406859
cmp byte [edi + 0xc4], 0
jg 0x406859
cmp byte [edi + 0xc5], 0
jg 0x406859
test eax, 0x800000
je 0x406821
cmp byte [ecx + 0x482c], 0
je 0x406821
mov eax, dword [ecx + 0x47f0]
test eax, eax
je 0x406821
mov eax, dword [eax + 0x30c]
cmp eax, dword [edi + 0x30c]
jne 0x406821
mov al, 1
jmp 0x406823
xor al, al
cmp byte [ecx + 0x5ae0], 0
jne 0x406859
test al, al
jne 0x406859
movss xmm0, dword [edi + 0x1c0]
comiss xmm0, dword [edi + 0x1c8]
jae 0x406852
movss xmm0, dword [edi + 0x1c4]
comiss xmm0, dword [edi + 0x1cc]
jb 0x406859
mov byte [edi + 0xcc], 1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x406893
cmp byte [eax + 0xad], 0
jne 0x406873
cmp byte [eax + 0xcc], 0
jle 0x40687a
mov byte [edi + 0xcc], 1
cmp byte [eax + 0xad], 0
jne 0x40688c
cmp byte [eax + 0xcd], 0
jle 0x406893
mov byte [edi + 0xcd], 1
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x3788]
jb 0x4068a6
mov byte [edi + 0xcc], 1
cmp byte [edi + 0xcc], 0
jg 0x4068c6
cmp byte [edi + 0xcd], 0
jg 0x4068c6
xor dl, dl
cmp byte [edi + 0xce], dl
jg 0x4068c8
xor al, al
jmp 0x4068ca
mov dl, 1
mov al, 1
mov byte [edi + 0xb1], al
mov al, byte [edi + 0xcf]
test al, al
jle 0x4068ed
dec al
mov byte [edi + 0xcf], al
mov eax, dword [edi + 0xc]
or eax, 0xc0200
mov dword [edi + 0xc], eax
xor al, al
cmp byte [edi + 0xad], al
jne 0x406903
cmp byte [edi + 0xaa], al
je 0x406903
test dl, dl
je 0x406927
cmp byte [edi + 0xc4], 0
jg 0x406927
cmp byte [edi + 0xc5], 0
jg 0x406927
cmp byte [edi + 0xcd], 0
mov edx, 1
movzx eax, al
cmovle eax, edx
mov byte [edi + 0xaf], al
cmp byte [edi + 0xb2], 0
jne 0x406992
cmp byte [ecx + 0x64], 0
je 0x406943
cmp dword [esp + 0x3c], 0
je 0x406958
cmp byte [ecx + 0x65], 0
je 0x406992
movsx eax, byte [ecx + 0x5b36]
cmp eax, dword [ecx + 0x3e3c]
jne 0x406992
mov al, byte [edi + 0xc4]
test al, al
jle 0x40696a
inc al
mov byte [edi + 0xc4], al
mov al, byte [edi + 0xc5]
test al, al
jle 0x40697c
inc al
mov byte [edi + 0xc5], al
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0xaf], 0
mov ecx, dword [esp + 0x12c]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret