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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x5a8314]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push esi
mov esi, dword [0x5a9890]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebx + 0x14]
push eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x64], esi
call fcn.0040bce0
add esp, 4
mov dword [ebp - 0x68], eax
mov edi, eax
test edi, edi
sete cl
mov byte [ebp - 0x5d], cl
test eax, eax
jne 0x406af9
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.0040a620
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xc0200
mov edx, eax
or edx, 6
cmp ecx, 0xc0200
mov ecx, dword [edi + 0x268]
cmovne edx, eax
mov dword [ebp - 0x6c], ecx
cmp dword [esi + 0x1fcc], 0
lea ecx, [esi + 0x1fcc]
mov eax, dword [esi + 0x1f90]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], eax
jne 0x406b43
cmp byte [esi + 0x1f9d], 0
mov byte [ebp - 0x51], 1
jne 0x406b47
mov byte [ebp - 0x51], 0
mov dl, byte [ebp - 0x51]
dec eax
cmp dword [ebp - 0x6c], eax
mov byte [edi + 0x86], dl
mov edx, dword [edi + 0xa0]
setl al
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x58]
mov byte [ebp - 0x9c], al
test edx, 0x4000000
je 0x406ba8
imul edx, dword [esi + 0x2114], 0x2c
mov eax, dword [edi + 0x90]
add edx, dword [esi + 0x2110]
cmp edi, dword [edx + 4]
setne cl
cmp eax, dword [edx]
mov edx, dword [ebp - 0x58]
setne al
or cl, al
mov al, byte [ebp - 0x9c]
or al, cl
lea ecx, [esi + 0x1fcc]
mov byte [ebp - 0x9c], al
test al, al
jne 0x406bba
cmp dword [ebp - 0x7c], 0
jg 0x406bba
mov byte [edi + 0x84], al
jmp 0x406bd6
or dword [edi + 0xa4], 8
or dword [edi + 0xa8], 8
or dword [edi + 0xac], 8
mov byte [edi + 0x84], 1
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x6c], eax
je 0x406c1a
mov dword [edi + 0x268], eax
xor eax, eax
mov dword [edi + 8], edx
movsd xmm0, qword [esi + 0x1f88]
cvtpd2ps xmm0, xmm0
mov word [edi + 0x8c], ax
movss dword [edi + 0x26c], xmm0
movzx eax, word [esi + 0x1fe4]
inc dword [esi + 0x1fe4]
mov word [edi + 0x8e], ax
jmp 0x406c20
mov edx, dword [edi + 8]
mov dword [ebp - 0x58], edx
cmp dword [ecx], 0
jne 0x406c2e
mov dword [ebp - 0x70], 0
jmp 0x406c40
mov eax, dword [esi + 0x1fd4]
mov esi, dword [ecx]
mov eax, dword [eax + esi*4 - 4]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x5c]
je 0x406c5a
and edx, 0x5000000
neg edx
sbb edx, edx
and edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
jmp 0x406c63
mov eax, dword [edi + 0x334]
mov dword [ebp - 0x78], eax
cmp dword [edi + 0xc0], 0
lea eax, [edi + 0xc0]
jne 0x406c9e
cmp dword [eax + 4], 0
jne 0x406c87
push 8
mov ecx, eax
call fcn.00416de0
lea eax, [edi + 0xc0]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 4]
mov dword [ecx + edx*4], eax
lea ecx, [esi + 0x1fcc]
inc dword [edi + 0xc0]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x406cd8
inc edx
mov dword [ebp - 0x88], edx
test eax, eax
je 0x406cc2
cdq
sub eax, edx
mov edx, dword [ebp - 0x88]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x406cc7
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00416de0
lea ecx, [esi + 0x1fcc]
mov ecx, dword [ecx]
lea edx, [edi + 0x1e4]
mov eax, dword [esi + 0x1fd4]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x1fcc]
mov dword [esi + 0x1fe8], 0
mov ecx, dword [0x5a9890]
movzx eax, word [edi + 0xc0]
mov word [edx], ax
movzx eax, word [edi + 0x1d8]
mov word [edx + 2], ax
movzx eax, word [ecx + 0x2114]
mov word [edx + 4], ax
movzx eax, word [ecx + 0x20e4]
mov word [edx + 6], ax
movzx eax, word [ecx + 0x20f0]
mov word [edx + 8], ax
movzx eax, word [ecx + 0x20fc]
mov ecx, dword [ebp - 0x58]
mov word [edx + 0xa], ax
mov eax, ecx
and eax, 0x4000000
mov dword [ebp - 0x70], eax
je 0x406d78
mov edx, dword [ebp - 0x64]
lea ecx, [esi + 0x2114]
imul esi, dword [ecx], 0x2c
add esi, dword [edx + 0x2110]
push esi
mov dword [esi + 4], edi
call fcn.00416ba0
mov eax, dword [esi]
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x58]
mov dword [edi + 0x90], eax
cmp dword [ebp - 0x7c], 0
jle 0x406d90
test ecx, 0x1000000
jne 0x406d90
mov dword [edi + 0x348], 0
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x5c]
je 0x406e17
mov edx, dword [ebp - 0x78]
mov dword [edi + 0x334], edx
mov dword [edi + 0x340], edi
mov dword [edi + 0x33c], edi
mov dword [edi + 0x338], edi
test edx, edx
je 0x406ded
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x406dd1
mov eax, dword [edx + 0x338]
mov dword [edi + 0x338], eax
test ecx, 0x8000000
jne 0x406ded
test ecx, 0x5000000
je 0x406ded
mov eax, dword [edx + 0x33c]
mov dword [edi + 0x33c], eax
test dword [edi + 8], 0x800000
je 0x406e17
mov ecx, edi
nop dword [eax + eax]
mov eax, dword [ecx + 0x334]
mov ecx, eax
mov dword [edi + 0x340], eax
test dword [ecx + 8], 0x800000
jne 0x406e00
test byte [esi + 0x2070], 1
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x52], 0
je 0x406eb9
mov ecx, dword [esi + 0x2074]
mov edx, dword [edi + 0xa4]
test ecx, edx
mov eax, edx
setne byte [ebp - 0x53]
test ecx, eax
je 0x406ea8
movss xmm1, dword [esi + 0x208c]
movss xmm0, dword [esi + 0x2088]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x50ac94]
jbe 0x406ea8
mov eax, dword [esi + 0x2080]
and edx, 0xfffffff1
mov ecx, dword [esi + 0x2084]
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], ecx
mov eax, dword [esi + 0x2088]
mov ecx, dword [esi + 0x208c]
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], ecx
mov dword [edi + 0xa4], edx
jmp 0x406eb9
push ecx
lea eax, [esi + 0x2080]
push eax
push edi
call fcn.00413d80
add esp, 0xc
test byte [esi + 0x2070], 2
xorps xmm1, xmm1
je 0x406f15
mov eax, dword [edi + 0xa8]
lea ecx, [esi + 0x2090]
mov edx, dword [esi + 0x2078]
and eax, edx
je 0x406eea
movss xmm0, dword [ecx]
comiss xmm0, xmm1
jbe 0x406eea
mov byte [ebp - 0x54], 1
jmp 0x406ef2
mov byte [ebp - 0x54], 0
test eax, eax
je 0x406f03
movss xmm0, dword [esi + 0x2094]
comiss xmm0, xmm1
mov byte [ebp - 0x52], 1
ja 0x406f07
mov byte [ebp - 0x52], 0
push edx
push ecx
push edi
call fcn.00413e60
add esp, 0xc
xorps xmm1, xmm1
test byte [esi + 0x2070], 0x80
je 0x406f50
movss xmm0, dword [esi + 0x20a0]
comiss xmm0, xmm1
jb 0x406f37
movss dword [edi + 0x64], xmm0
mov dword [edi + 0x6c], 0
movss xmm0, dword [esi + 0x20a4]
comiss xmm0, xmm1
jb 0x406f50
movss dword [edi + 0x68], xmm0
mov dword [edi + 0x70], 0
test byte [esi + 0x2070], 4
je 0x406f6d
mov eax, dword [esi + 0x2098]
mov ecx, dword [esi + 0x209c]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
jmp 0x406f83
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x5c]
je 0x406f83
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
test byte [esi + 0x2070], 8
je 0x406fb1
mov eax, dword [esi + 0x207c]
mov cl, byte [esi + 0x20a8]
test eax, eax
je 0x406fa4
test dword [edi + 0xac], eax
je 0x406fb1
and dword [edi + 0xac], 0xfffffff1
mov byte [edi + 0x81], cl
test byte [esi + 0x2070], 0x20
je 0x406fc3
push edi
call fcn.0040bed0
add esp, 4
cmp byte [edi + 0x84], 0
je 0x406fe1
and dword [edi + 0xa4], 0xfffffff7
and dword [edi + 0xa8], 0xfffffff7
and dword [edi + 0xac], 0xfffffff7
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x5c]
je 0x408844
mov eax, dword [ebp - 0x58]
lea ecx, [edi + 0xc0]
and eax, 0x3000000
mov byte [edi + 0x7e], 1
cmp dword [ebp - 0xa0], 0
mov dword [ebp - 0x84], eax
setne al
mov byte [edi + 0x87], al
mov dword [edi + 0x240], 0xff7fffff
mov dword [edi + 0x244], 0xff7fffff
mov dword [edi + 0x248], 0x7f7fffff
mov dword [edi + 0x24c], 0x7f7fffff
mov eax, dword [ecx + 4]
mov dword [ebp - 0x88], eax
cmp eax, 1
jge 0x407079
test eax, eax
je 0x40705e
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [ebp - 0x88]
jmp 0x407063
mov edx, 8
mov eax, 1
cmp edx, eax
cmovg eax, edx
push eax
call fcn.00416de0
lea ecx, [edi + 0xc0]
mov dword [ecx], 1
mov ecx, dword [edi + 0x294]
call fcn.00421830
cmp byte [edi + 0x370], 0
je 0x4070d6
mov ecx, dword [edi + 0x294]
push dword [edi + 0x374]
add ecx, 0xc
mov byte [edi + 0x370], 0
call fcn.00416d60
mov ecx, dword [edi + 0x294]
push dword [edi + 0x378]
add ecx, 0x18
call fcn.00416e70
mov dword [edi + 0x378], 0
mov dword [edi + 0x374], 0
cmp dword [esi + 0x2230], 0
je 0x4071be
test dword [edi + 8], 0x80000
jne 0x4071be
cmp dword [ebp - 0x68], 0
je 0x4071be
mov eax, dword [edi]
mov ecx, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x74]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407124
test dl, dl
je 0x407120
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407124
add eax, 2
add ecx, 2
test dl, dl
jne 0x407104
xor eax, eax
jmp 0x407129
sbb eax, eax
or eax, 1
test eax, eax
je 0x4071be
mov ecx, dword [ebp - 0x74]
mov edx, dword [edi + 0x44]
mov dword [ebp - 0x6c], edx
lea eax, [ecx + 1]
mov dword [ebp - 0x88], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407143
sub ecx, dword [ebp - 0x88]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x80], eax
cmp edx, eax
jae 0x4071a9
test ecx, ecx
je 0x407170
mov eax, dword [0x5a9890]
test eax, eax
je 0x407170
dec dword [eax + 0x37c]
push dword [0x5a9898]
push ecx
call dword [0x5a803c]
mov eax, dword [0x5a9890]
add esp, 8
test eax, eax
je 0x40718f
inc dword [eax + 0x37c]
push dword [0x5a9898]
push dword [ebp - 0x80]
call dword [0x5a8038]
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
push eax
push dword [ebp - 0x74]
push ecx
call fcn.004dedf0
mov dword [edi], eax
add esp, 0xc
mov eax, dword [ebp - 0x6c]
mov dword [edi + 0x44], eax
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.00409b70
add esp, 8
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [edi + 0x9c]
movss dword [edi + 0x24], xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
jle 0x4071f2
dec eax
mov dword [edi + 0x9c], eax
mov eax, dword [edi + 0xa0]
test eax, eax
jle 0x407203
dec eax
mov dword [edi + 0xa0], eax
cmp dword [ebp - 0x68], 0
mov al, byte [ebp - 0x54]
mov cl, byte [ebp - 0x52]
jne 0x407221
test al, al
je 0x407217
test cl, cl
jne 0x407221
mov dword [edi + 0xa0], 1
cmp byte [ebp - 0x9c], 0
mov edx, dword [ebp - 0x58]
je 0x407276
test edx, 0x6000000
je 0x407276
mov dword [edi + 0xa0], 1
test dl, 0x40
je 0x407276
test al, al
jne 0x407256
mov dword [edi + 0x1c], 0
mov dword [edi + 0x14], 0
test cl, cl
jne 0x407268
mov dword [edi + 0x20], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov ecx, dword [0x5a9890]
mov dword [ecx + 0x1fe8], edi
mov eax, dword [0x5a9890]
movss xmm0, dword [eax + 0x1ea8]
mov eax, dword [edi + 0x334]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x4072a9
mulss xmm0, dword [eax + 0x28c]
mov eax, edx
movss dword [ecx + 0x1eb8], xmm0
and eax, 0x1000000
movss dword [ecx + 0x1ea4], xmm0
mov dword [ebp - 0x6c], eax
je 0x4072cf
movss xmm1, dword [esi + 0x1554]
jmp 0x4072f1
test edx, 0x6000000
je 0x4072e9
test edx, 0x8000000
jne 0x4072e9
movss xmm1, dword [esi + 0x155c]
jmp 0x4072f1
movss xmm1, dword [esi + 0x1538]
movss dword [edi + 0x40], xmm1
mov eax, dword [esi + 0x152c]
mov ecx, dword [esi + 0x1530]
mov dword [edi + 0x34], eax
mov eax, edx
and eax, 0x5010000
mov dword [edi + 0x38], ecx
cmp eax, 0x1000000
jne 0x40733e
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x40733e
test edx, 0x400
je 0x407332
movss xmm0, dword [esi + 0x1530]
mov dword [edi + 0x34], 0
movss dword [edi + 0x38], xmm0
movss xmm0, dword [edi + 0x34]
maxss xmm0, dword [esi + 0x1570]
maxss xmm0, dword [esi + 0x20c8]
movss dword [edi + 0x150], xmm0
mov eax, dword [esi + 0x20cc]
mov dword [edi + 0x154], eax
test dl, 0x21
jne 0x4073db
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00414750
cmp dword [esi + 0x1fec], edi
jne 0x4073b7
cmp dword [esi + 0x200c], 0
jne 0x4073b7
cmp dword [esi + 0x2010], 0
jne 0x4073b7
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040d2e0
add esp, 0xc
test al, al
je 0x4073b7
cmp byte [esi + 0x3ed], 0
je 0x4073b7
mov byte [edi + 0x82], 1
cmp byte [edi + 0x82], 0
je 0x4073e2
cmp byte [edi + 0x81], 0
push edi
sete al
mov byte [edi + 0x81], al
call fcn.0040bed0
add esp, 4
jmp 0x4073e2
mov byte [edi + 0x81], 0
lea eax, [edi + 0x24]
mov byte [edi + 0x82], 0
push eax
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.004098f0
mov al, byte [ebp - 0x5d]
add esp, 0xc
mov byte [ebp - 0x51], al
mov eax, dword [ebp - 0x58]
and eax, 0x40
mov dword [ebp - 0x88], eax
je 0x4074c3
cmp byte [edi + 0x81], 0
jne 0x4074c3
cmp byte [ebp - 0x54], 0
jne 0x407439
movss xmm0, dword [ebp - 0x98]
movss dword [edi + 0x1c], xmm0
mov byte [ebp - 0x5d], 1
cmp byte [ebp - 0x52], 0
jne 0x407450
movss xmm0, dword [ebp - 0x94]
mov byte [ebp - 0x51], 1
movss dword [edi + 0x20], xmm0
push dword [edi + 0x20]
lea eax, [ebp - 0x90]
push dword [edi + 0x1c]
push edi
push eax
call fcn.00409c20
add esp, 0x10
cmp byte [edi + 0x81], 0
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [edi + 0x1c], xmm0
movss dword [edi + 0x20], xmm1
je 0x407543
cmp dword [ebp - 0x6c], 0
jne 0x407543
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00414750
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [eax + 4]
movss dword [ebp - 0x8c], xmm0
jmp 0x407555
mov al, byte [edi + 0x94]
test al, al
jg 0x4074da
cmp byte [edi + 0x95], 0
jle 0x407450
cmp byte [ebp - 0x54], 0
jne 0x40750d
test al, al
jle 0x40750d
cmp byte [edi + 0x97], 0
je 0x4074fc
movss xmm0, dword [edi + 0x1c]
maxss xmm0, dword [ebp - 0x98]
jmp 0x407504
movss xmm0, dword [ebp - 0x98]
movss dword [edi + 0x1c], xmm0
mov byte [ebp - 0x5d], 1
cmp byte [ebp - 0x52], 0
jne 0x407450
cmp byte [edi + 0x95], 0
jle 0x407450
cmp byte [edi + 0x97], 0
je 0x40743f
movss xmm0, dword [edi + 0x20]
maxss xmm0, dword [ebp - 0x94]
jmp 0x407447
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov edx, dword [edi + 8]
lea ecx, [ebp - 0x90]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov eax, dword [0x5a9890]
test dl, 1
je 0x407578
xorps xmm1, xmm1
jmp 0x4075b2
movss xmm0, dword [eax + 0x1ea8]
mov ecx, dword [edi + 0x334]
mulss xmm0, dword [edi + 0x28c]
test ecx, ecx
je 0x40759a
mulss xmm0, dword [ecx + 0x28c]
movss xmm1, dword [eax + 0x1564]
addss xmm1, xmm1
addss xmm1, xmm0
addss xmm1, dword [eax + 0x15e8]
test edx, 0x400
je 0x4075f6
movss xmm0, dword [eax + 0x1ea8]
mov ecx, dword [edi + 0x334]
mulss xmm0, dword [edi + 0x28c]
test ecx, ecx
je 0x4075dc
mulss xmm0, dword [ecx + 0x28c]
movss xmm2, dword [eax + 0x1564]
addss xmm0, dword [edi + 0x154]
addss xmm2, xmm2
addss xmm2, xmm0
jmp 0x4075f9
xorps xmm2, xmm2
cmp byte [ebp - 0x9c], 0
addss xmm2, xmm1
movss dword [ebp - 0x80], xmm2
je 0x40764d
mov eax, dword [ebp - 0x58]
and eax, 0xc000000
mov dword [edi + 0x98], 0xffffffff
cmp eax, 0x4000000
jne 0x40764d
cmp byte [ebp - 0x53], 0
jne 0x40764d
imul ecx, dword [esi + 0x2114], 0x2c
mov eax, dword [esi + 0x211c]
movss xmm0, dword [ecx + eax - 0x18]
movss xmm1, dword [ecx + eax - 0x14]
movss dword [edi + 0xc], xmm0
movss dword [edi + 0x10], xmm1
cmp dword [ebp - 0x6c], 0
je 0x4076dc
mov edx, dword [ebp - 0x78]
add edx, 0x184
mov dword [ebp - 0x5c], edx
mov ax, word [edx]
mov word [edi + 0x8c], ax
mov ecx, dword [edx + 4]
cmp dword [edx], ecx
jne 0x4076a1
test ecx, ecx
je 0x407686
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x5c]
sar eax, 1
add eax, ecx
jmp 0x40768b
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00416de0
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov dword [eax + ecx*4], edi
inc dword [edx]
mov edx, dword [ebp - 0x70]
mov cl, byte [ebp - 0x53]
test edx, edx
jne 0x4076e2
test cl, cl
jne 0x4076e2
cmp dword [ebp - 0x84], 0x3000000
je 0x4076e2
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ecx + 0xd0]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
jmp 0x4076df
mov edx, dword [ebp - 0x70]
mov cl, byte [ebp - 0x53]
movss xmm1, dword [edi + 0xb0]
ucomiss xmm1, dword [0x50ad4c]
lahf
test ah, 0x44
jnp 0x40774e
cmp dword [edi + 0xa0], 0
jne 0x40774e
movss xmm0, dword [edi + 0xb8]
lea eax, [ebp - 0x90]
mulss xmm0, dword [edi + 0x1c]
push 0
push eax
push edi
subss xmm1, xmm0
movss xmm0, dword [edi + 0xb4]
movss dword [ebp - 0x90], xmm1
movss xmm1, dword [edi + 0xbc]
mulss xmm1, dword [edi + 0x20]
subss xmm0, xmm1
movss dword [ebp - 0x8c], xmm0
call fcn.00413d80
add esp, 0xc
jmp 0x4077a0
mov eax, dword [ebp - 0x58]
test eax, 0x10000000
jne 0x40777d
test edx, edx
je 0x407766
test cl, cl
jne 0x407766
cmp dword [ebp - 0x7c], 0
jg 0x40777d
test eax, 0x2000000
je 0x4077a0
test cl, cl
jne 0x4077a0
cmp dword [ebp - 0x84], 0x3000000
je 0x4077a0
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.0040b460
add esp, 8
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
movss dword [edi + 0xc], xmm0
movss dword [edi + 0x10], xmm1
cmp byte [ebp - 0x53], 0
xorps xmm2, xmm2
mov eax, dword [0x5a9890]
movss xmm1, dword [esi + 0x15cc]
movss xmm0, dword [esi + 0x15c8]
maxss xmm1, dword [esi + 0x15d4]
movss xmm3, dword [eax + 0x10]
movss xmm4, dword [eax + 0x14]
movaps xmm6, xmm3
maxss xmm0, dword [esi + 0x15d0]
movaps xmm5, xmm4
mov dword [ebp - 0x40], 0
subss xmm5, xmm1
mov dword [ebp - 0x3c], 0
addss xmm1, xmm2
movss dword [ebp - 0x38], xmm3
movss dword [ebp - 0x34], xmm4
subss xmm6, xmm0
addss xmm0, xmm2
movss dword [ebp - 0xa8], xmm5
movss dword [ebp - 0xa4], xmm1
movss dword [ebp - 0x2c], xmm1
movss dword [ebp - 0xac], xmm6
movss dword [ebp - 0x5c], xmm0
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0x28], xmm6
movss dword [ebp - 0x24], xmm5
jne 0x4078d0
cmp dword [ebp - 0x6c], 0
jne 0x4078d0
subss xmm3, xmm2
comiss xmm3, xmm2
jbe 0x4078d0
subss xmm4, xmm2
comiss xmm4, xmm2
jbe 0x4078d0
cmp byte [eax + 0xbc], 0
movss xmm2, dword [edi + 0x18]
je 0x40789b
test byte [edi + 8], 1
jne 0x40789b
mov ecx, edi
call fcn.004146e0
movss xmm0, dword [ebp - 0x5c]
movss xmm1, dword [ebp - 0xa4]
movss xmm5, dword [ebp - 0xa8]
movss xmm6, dword [ebp - 0xac]
fstp dword [ebp - 0x7c]
movss xmm2, dword [ebp - 0x7c]
subss xmm0, dword [edi + 0x14]
subss xmm1, xmm2
movss xmm2, dword [edi + 0x10]
comiss xmm1, xmm2
ja 0x4078b5
movaps xmm1, xmm5
minss xmm1, xmm2
movss xmm2, dword [edi + 0xc]
comiss xmm0, xmm2
ja 0x4078c6
movaps xmm0, xmm6
minss xmm0, xmm2
movss dword [edi + 0xc], xmm0
movss dword [edi + 0x10], xmm1
cmp dword [ebp - 0x6c], 0
cvttss2si eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x58]
movd xmm1, eax
cvttss2si eax, dword [edi + 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0xc], xmm1
movss dword [edi + 0x10], xmm0
je 0x407905
movss xmm2, dword [esi + 0x1550]
jmp 0x407925
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40791d
movss xmm2, dword [esi + 0x1558]
jmp 0x407925
movss xmm2, dword [esi + 0x1534]
xor dl, dl
movss dword [edi + 0x3c], xmm2
mov dword [ebp - 0x7c], edx
cmp byte [ebp - 0x9c], dl
je 0x407960
test ecx, 0x1000
jne 0x407960
cmp dword [ebp - 0x70], 0
je 0x40794b
mov byte [ebp - 0x7c], 1
jmp 0x407960
cmp dword [ebp - 0x84], 0
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0x7c], edx
movss xmm1, dword [esi + 0x1ea4]
xorps xmm0, xmm0
addss xmm2, dword [0x50acdc]
movaps xmmword [ebp - 0x20], xmm0
xor eax, eax
cmp byte [esi + 0xbb], al
movaps xmm0, xmm1
mulss xmm1, dword [0x50acb4]
setne al
mov dword [ebp - 0x70], 0xffffffff
mulss xmm0, dword [0x50ace4]
inc eax
cmp byte [edi + 0x81], 0
addss xmm2, xmm1
mov dword [ebp - 0x8c], eax
maxss xmm0, xmm2
cvttss2si esi, xmm0
jne 0x4079df
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.00415470
add esp, 0x18
test al, al
je 0x4079df
mov cl, 1
mov dl, cl
jmp 0x4079e5
mov dl, byte [ebp - 0x5d]
mov cl, byte [ebp - 0x51]
cmp byte [edi + 0x81], 0
mov al, byte [ebp - 0x70]
mov byte [edi + 0x88], al
jne 0x407b79
cmp dword [ebp - 0x68], 0
lea eax, [ebp - 0x98]
movss xmm2, dword [edi + 0x208]
movss xmm3, dword [edi + 0x20c]
subss xmm2, dword [edi + 0x200]
subss xmm3, dword [edi + 0x204]
movss xmm4, dword [edi + 0x20]
movss xmm5, dword [edi + 0x1c]
subss xmm4, dword [ebp - 0x80]
addss xmm2, dword [edi + 0x74]
addss xmm3, dword [edi + 0x78]
jne 0x407a56
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
jmp 0x407a82
movss xmm0, dword [edi + 0x34]
movss xmm1, dword [edi + 0x38]
addss xmm0, xmm0
addss xmm1, xmm1
addss xmm0, dword [edi + 0x24]
addss xmm1, dword [edi + 0x28]
movss dword [ebp - 0x98], xmm0
movss dword [ebp - 0x94], xmm1
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
test dl, dl
jne 0x407a92
movaps xmm5, xmm2
test cl, cl
jne 0x407a99
movaps xmm4, xmm3
mov ecx, dword [ebp - 0x58]
test ecx, 0x4000
jne 0x407ab2
comiss xmm6, xmm4
jbe 0x407aae
test cl, 8
je 0x407ab2
xor dl, dl
jmp 0x407ab4
mov dl, 1
mov byte [ebp - 0x51], dl
mov byte [edi + 0x7d], dl
test ecx, 0x8000
jne 0x407b03
mov eax, dword [ebp - 0x64]
xorps xmm0, xmm0
add eax, 0x1590
mov dword [ebp - 0x5c], eax
test dl, dl
je 0x407ada
movss xmm1, dword [eax]
jmp 0x407add
xorps xmm1, xmm1
subss xmm5, xmm1
comiss xmm7, xmm5
jbe 0x407af4
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
je 0x407b14
mov dl, byte [ebp - 0x51]
xorps xmm1, xmm1
mov eax, dword [ebp - 0x64]
mov byte [edi + 0x7c], 0
jmp 0x407b55
mov ecx, dword [ebp - 0x64]
add ecx, 0x1590
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x58]
jmp 0x407b17
mov dl, byte [ebp - 0x51]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x64]
mov byte [edi + 0x7c], 1
test dl, dl
jne 0x407b3b
comiss xmm6, xmm4
jbe 0x407b36
test cl, 8
jne 0x407b36
mov dl, 1
jmp 0x407b38
xor dl, dl
mov byte [edi + 0x7d], dl
mov ecx, dword [ebp - 0x5c]
xorps xmm0, xmm0
movss xmm1, dword [ecx]
addss xmm1, dword [eax + 0x1594]
mov ecx, dword [ebp - 0x58]
addss xmm1, dword [edi + 0x38]
test dl, dl
je 0x407b6d
movss xmm0, dword [eax + 0x1594]
mov eax, dword [ebp - 0x5c]
addss xmm0, dword [eax]
addss xmm0, dword [edi + 0x34]
movss dword [edi + 0x74], xmm0
movss dword [edi + 0x78], xmm1
jmp 0x407b7c
mov ecx, dword [ebp - 0x58]
mov eax, ecx
and eax, 0x5000000
mov dword [ebp - 0xa4], eax
cmp eax, 0x1000000
jne 0x407ba6
cmp dword [ebp - 0x84], 0x3000000
je 0x407ba6
mov eax, dword [ebp - 0x78]
add eax, 0x240
jmp 0x407ba9
lea eax, [ebp - 0x40]
test byte [edi + 8], 1
movups xmm0, xmmword [eax]
mov eax, dword [0x5a9890]
movss xmm6, dword [edi + 0xc]
movss xmm7, dword [edi + 0x10]
movaps xmm3, xmm6
addss xmm3, dword [edi + 0x14]
movaps xmm5, xmm7
addss xmm5, dword [edi + 0x18]
movups xmmword [ebp - 0x30], xmm0
je 0x407bda
xorps xmm0, xmm0
jmp 0x407c14
movss xmm1, dword [eax + 0x1ea8]
mov edx, dword [edi + 0x334]
mulss xmm1, dword [edi + 0x28c]
test edx, edx
je 0x407bfc
mulss xmm1, dword [edx + 0x28c]
movss xmm0, dword [eax + 0x1564]
addss xmm0, xmm0
addss xmm0, xmm1
addss xmm0, dword [eax + 0x15e8]
movaps xmm1, xmm7
movss dword [ebp - 0x50], xmm6
addss xmm1, xmm0
mov edx, dword [ebp - 0x64]
movss xmm0, dword [edi + 0x10]
movaps xmm2, xmm6
addss xmm2, dword [edi + 0x1c]
movss dword [ebp - 0x4c], xmm0
mov eax, ecx
and eax, 0x401
xorps xmm4, xmm4
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x48], xmm2
movss dword [edi + 0x1f0], xmm6
movss dword [edi + 0x1f4], xmm7
movss dword [edi + 0x1f8], xmm3
movss dword [edi + 0x1fc], xmm5
movss xmm0, dword [edi + 0x1f0]
movss xmm5, dword [ebp - 0x30]
movss xmm6, dword [ebp - 0x2c]
maxss xmm0, xmm5
maxss xmm7, xmm6
movss dword [edi + 0x1f0], xmm0
movss dword [edi + 0x1f4], xmm7
movss xmm1, dword [edi + 0x1f8]
movss xmm0, dword [edi + 0x1fc]
minss xmm0, dword [ebp - 0x24]
minss xmm1, dword [ebp - 0x28]
movss dword [edi + 0x1fc], xmm0
movss dword [edi + 0x1f8], xmm1
movss xmm7, dword [edi + 0x10]
movss xmm1, dword [edi + 0xc]
movaps xmm0, xmm7
movss dword [edi + 0x200], xmm1
addss xmm0, dword [ebp - 0x80]
addss xmm7, dword [edi + 0x18]
movss dword [ebp - 0xac], xmm0
movss dword [edi + 0x204], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x14]
subss xmm7, dword [edi + 0x78]
subss xmm0, dword [edi + 0x74]
movss dword [edi + 0x20c], xmm7
movss dword [ebp - 0xa8], xmm0
movss dword [edi + 0x208], xmm0
cmp eax, 1
jne 0x407d22
movss xmm0, dword [edi + 0x40]
jmp 0x407d2a
movss xmm0, dword [edx + 0x156c]
movss xmm2, dword [0x50a5c8]
movss dword [ebp - 0x68], xmm0
addss xmm7, xmm2
movss xmm0, dword [edi + 0x34]
mulss xmm0, xmm2
movss xmm3, dword [ebp - 0x24]
subss xmm7, dword [edi + 0x40]
cvttss2si eax, xmm0
movss xmm0, dword [edi + 0xc]
addss xmm0, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, dword [edi + 0x40]
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x210], xmm0
movss xmm0, dword [ebp - 0xac]
addss xmm0, xmm2
addss xmm0, dword [ebp - 0x68]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x214], xmm0
movss xmm0, dword [ebp - 0xa8]
addss xmm0, xmm2
subss xmm0, xmm1
cvttss2si ecx, xmm0
movd xmm0, ecx
cvttss2si ecx, xmm7
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x218], xmm0
movd xmm0, ecx
lea ecx, [edi + 0x210]
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x21c], xmm0
movss xmm0, dword [ecx + 4]
comiss xmm6, xmm0
jbe 0x407ded
movaps xmm1, xmm6
jmp 0x407df4
movaps xmm1, xmm3
minss xmm1, xmm0
movss xmm7, dword [ebp - 0x28]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm5, xmm2
jbe 0x407e0a
movaps xmm0, xmm5
jmp 0x407e11
movaps xmm0, xmm7
minss xmm0, xmm2
movss dword [ecx], xmm0
movss dword [ecx + 4], xmm1
movss xmm0, dword [ecx + 0xc]
comiss xmm6, xmm0
ja 0x407e2b
movaps xmm6, xmm3
minss xmm6, xmm0
movss xmm0, dword [ecx + 8]
comiss xmm5, xmm0
ja 0x407e3c
movaps xmm5, xmm7
minss xmm5, xmm0
movss dword [ecx + 8], xmm5
movss dword [ecx + 0xc], xmm6
movss xmm0, dword [edi + 0x14]
comiss xmm0, xmm4
jbe 0x407e63
test dword [ebp - 0x58], 0x2000040
jne 0x407e63
mulss xmm0, dword [0x50acc0]
jmp 0x407e73
movss xmm0, dword [edx + 0x1ea4]
mulss xmm0, dword [0x50ad0c]
cvttss2si eax, xmm0
push edi
movd xmm0, eax
lea eax, [ebp - 0x98]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 0x270], xmm0
movss xmm1, dword [edi + 0x34]
movss xmm0, dword [edi + 0x208]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x200]
addss xmm1, dword [edi + 0x24]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss xmm1, dword [edi + 0x38]
addss xmm1, xmm1
movss dword [edi + 0x5c], xmm0
movss xmm0, dword [edi + 0x20c]
subss xmm0, dword [edi + 0x204]
addss xmm1, dword [edi + 0x28]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x60], xmm0
call fcn.004095c0
mov edx, dword [ebp - 0x64]
add esp, 8
mov ecx, dword [edi + 0x294]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [edi + 0x50], xmm0
movss dword [edi + 0x54], xmm1
mov dword [edi + 0x64], 0x7f7fffff
mov dword [edi + 0x68], 0x7f7fffff
mov eax, dword [edx + 0x1ea0]
mov eax, dword [eax + 0x38]
push dword [eax + 8]
call fcn.0041e1b0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00411740
add esp, 0xc
test dword [ebp - 0x58], 0x8000000
je 0x407f5e
call fcn.0040cb00
cmp edi, eax
jne 0x407f5e
cmp dword [edi + 0xa0], 0
jg 0x407f5e
mov dl, 1
jmp 0x407f60
xor dl, dl
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x222c]
test ecx, ecx
je 0x407f79
cmp edi, dword [ecx + 0x338]
jne 0x407f79
mov cl, 1
jmp 0x407f7b
xor cl, cl
mov byte [ebp - 0x51], cl
test dl, dl
jne 0x407f8a
test cl, cl
je 0x40808b
movss xmm0, dword [eax + 0x22a0]
push ecx
movzx eax, dl
add eax, 0x3d
movss dword [esp], xmm0
push eax
call fcn.0040c4b0
add esp, 8
push 0xf
push ecx
mov ecx, dword [edi + 0x294]
mov dword [esp], 0
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00419740
cmp byte [ebp - 0x51], 0
mov eax, dword [ebp - 0x64]
je 0x40808b
cmp edi, dword [eax + 0x222c]
jne 0x40808b
movss xmm2, dword [edi + 0xc]
movss xmm3, dword [edi + 0x10]
movaps xmm1, xmm2
movss xmm0, dword [eax + 0x1ea4]
movaps xmm4, xmm3
addss xmm2, dword [edi + 0x14]
addss xmm3, dword [edi + 0x18]
subss xmm1, xmm0
subss xmm4, xmm0
addss xmm2, xmm0
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x40]
comiss xmm0, xmm1
movss dword [ebp - 0x30], xmm1
movss dword [ebp - 0x2c], xmm4
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x24], xmm3
jb 0x408044
movss xmm0, dword [ebp - 0x3c]
comiss xmm0, xmm4
jb 0x408044
comiss xmm2, dword [ebp - 0x38]
jb 0x408044
comiss xmm3, dword [ebp - 0x34]
jae 0x40808b
movss xmm0, dword [eax + 0x2238]
mulss xmm0, dword [0x50acb8]
push ecx
movss dword [esp], xmm0
push 0x3c
call fcn.0040c4b0
mov edx, dword [ebp - 0x64]
add esp, 8
movss xmm0, dword [edx + 0x1534]
push 0xf
push ecx
mov ecx, dword [edi + 0x294]
movss dword [esp], xmm0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00419740
cmp dword [ebp - 0xa4], 0x1000000
mov byte [ebp - 0x51], 0
jne 0x4080d5
cmp dword [ebp - 0x84], 0x3000000
je 0x4080d5
mov edx, dword [edi + 0x294]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x4080d5
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x294]
cmp dword [eax + 0x18], 0
jle 0x4080d5
mov byte [ebp - 0x51], 1
mov dword [edi + 0x294], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x2228]
test ecx, ecx
jne 0x4080e8
mov ecx, dword [eax + 0x2120]
cmp byte [ebp - 0x7c], 0
jne 0x408106
test ecx, ecx
je 0x408100
mov eax, dword [edi + 0x33c]
cmp eax, dword [ecx + 0x33c]
je 0x408106
mov byte [ebp - 0x68], 0
jmp 0x40810a
mov byte [ebp - 0x68], 1
movd xmm0, esi
lea eax, [ebp - 0x20]
push ecx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push eax
push dword [ebp - 0x8c]
lea eax, [ebp - 0x50]
push dword [ebp - 0x68]
push eax
push edi
call fcn.004128b0
add esp, 0x18
cmp byte [ebp - 0x51], 0
je 0x408143
lea eax, [edi + 0x298]
mov dword [edi + 0x294], eax
mov esi, dword [ebp - 0x64]
cmp dword [esi + 0x222c], edi
jne 0x408248
movss xmm2, dword [edi + 0xc]
movss xmm3, dword [edi + 0x10]
movaps xmm5, xmm2
movss xmm6, dword [edi + 0x3c]
movaps xmm4, xmm3
movss xmm1, dword [esi + 0x1ea4]
movaps xmm0, xmm6
addss xmm2, dword [edi + 0x14]
addss xmm3, dword [edi + 0x18]
maxss xmm0, dword [esi + 0x1534]
subss xmm5, xmm1
subss xmm4, xmm1
addss xmm2, xmm1
addss xmm3, xmm1
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [ebp - 0x40]
comiss xmm0, xmm5
movss dword [ebp - 0x30], xmm5
movss dword [ebp - 0x2c], xmm4
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x24], xmm3
jb 0x408208
movss xmm0, dword [ebp - 0x3c]
comiss xmm0, xmm4
jb 0x408208
comiss xmm2, dword [ebp - 0x38]
jb 0x408208
comiss xmm3, dword [ebp - 0x34]
jb 0x408208
xorps xmm1, xmmword [0x50ada0]
subss xmm1, dword [0x50acdc]
movss dword [ebp - 0x68], xmm6
movaps xmm0, xmm1
subss xmm5, xmm1
subss xmm4, xmm1
addss xmm0, xmm2
addss xmm1, xmm3
movss dword [ebp - 0x30], xmm5
movss dword [ebp - 0x2c], xmm4
movss dword [ebp - 0x28], xmm0
movss dword [ebp - 0x24], xmm1
movss xmm0, dword [esi + 0x2238]
push ecx
movss dword [esp], xmm0
push 0x3c
call fcn.0040c4b0
movss xmm0, dword [ebp - 0x68]
add esp, 4
mov dword [esp], 0x40400000
push 0xffffffffffffffff
push ecx
mov ecx, dword [edi + 0x294]
movss dword [esp], xmm0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00419650
mov ecx, dword [ebp - 0x58]
xorps xmm2, xmm2
movss xmm7, dword [edi + 0x2c]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm7, xmm2
lahf
test ah, 0x44
jnp 0x40826d
movss dword [ebp - 0x70], xmm7
jmp 0x4082a5
movss xmm0, dword [edi + 0x34]
mov eax, ecx
movss xmm1, dword [edi + 0x14]
addss xmm0, xmm0
and eax, 0x808
subss xmm1, xmm0
subss xmm1, dword [edi + 0x74]
cmp eax, 0x800
jne 0x408299
movss xmm0, dword [edi + 0x24]
jmp 0x40829c
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [ebp - 0x70], xmm0
movss xmm5, dword [edi + 0x30]
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jnp 0x4082bd
movss dword [ebp - 0x84], xmm5
jmp 0x4082f3
movss xmm0, dword [edi + 0x38]
movss xmm1, dword [edi + 0x18]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, dword [ebp - 0x80]
subss xmm1, dword [edi + 0x78]
test dl, dl
je 0x4082e4
movss xmm0, dword [edi + 0x28]
jmp 0x4082e7
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [ebp - 0x84], xmm0
movss xmm4, dword [edi + 0x34]
movss xmm2, dword [edi + 0x50]
movaps xmm1, xmm4
maxss xmm1, dword [edi + 0x40]
movss xmm0, dword [edi + 0x200]
movss xmm6, dword [edi + 0x38]
subss xmm0, xmm2
movss dword [ebp - 0x5c], xmm2
movss xmm3, dword [edi + 0x10]
addss xmm1, xmm0
movss xmm0, dword [edi + 0x54]
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [edi + 0x204]
subss xmm0, dword [ebp - 0x68]
subss xmm3, dword [ebp - 0x68]
cvttss2si eax, xmm1
movaps xmm1, xmm6
addss xmm3, xmm6
maxss xmm1, dword [edi + 0x40]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm1, xmm0
movss dword [edi + 0x220], xmm2
addss xmm2, dword [ebp - 0x70]
cvttss2si eax, xmm1
movss dword [edi + 0x228], xmm2
xorps xmm1, xmm1
ucomiss xmm7, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lahf
movss dword [edi + 0x224], xmm0
addss xmm0, dword [ebp - 0x84]
movss dword [edi + 0x22c], xmm0
movups xmm0, xmmword [edi + 0x220]
movups xmmword [edi + 0x230], xmm0
movss xmm0, dword [edi + 0xc]
movss dword [ebp - 0x8c], xmm0
movaps xmm2, xmm0
movss xmm0, dword [ebp - 0x80]
addss xmm3, xmm0
subss xmm2, dword [ebp - 0x5c]
movss dword [edi + 0x254], xmm3
addss xmm2, xmm4
movss dword [edi + 0x250], xmm2
test ah, 0x44
jp 0x4083f9
movss xmm7, dword [edi + 0x14]
movaps xmm0, xmm4
addss xmm0, xmm4
subss xmm7, xmm0
movss xmm0, dword [ebp - 0x80]
subss xmm7, dword [edi + 0x74]
ucomiss xmm5, xmm1
addss xmm2, xmm7
lahf
movss dword [edi + 0x258], xmm2
test ah, 0x44
jp 0x40842c
movss xmm5, dword [edi + 0x18]
movaps xmm0, xmm6
addss xmm0, xmm6
subss xmm5, xmm0
movss xmm0, dword [ebp - 0x80]
subss xmm5, xmm0
subss xmm5, dword [edi + 0x78]
cmp dword [ebp - 0x6c], 0
addss xmm4, xmm1
addss xmm3, xmm5
addss xmm6, xmm0
subss xmm4, dword [ebp - 0x5c]
movss dword [edi + 0x25c], xmm3
subss xmm6, dword [ebp - 0x68]
movss dword [edi + 0x104], xmm4
addss xmm4, xmm1
mov dword [edi + 0x10c], 0
mov dword [edi + 0x108], 0
addss xmm6, dword [edi + 0x10]
addss xmm4, dword [ebp - 0x8c]
movss dword [edi + 0xdc], xmm4
movss dword [edi + 0xe0], xmm6
movss dword [edi + 0xcc], xmm4
movss dword [edi + 0xd0], xmm6
movss dword [edi + 0xd4], xmm4
movss dword [edi + 0xd8], xmm6
movss dword [edi + 0xe4], xmm4
movss dword [edi + 0xe8], xmm6
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0xfc], 0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 1
mov eax, dword [edi + 0x144]
mov dword [edi + 0x140], eax
mov dword [edi + 0x144], 0
je 0x40852e
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x148]
jmp 0x408530
xor eax, eax
push dword [ebp - 0x9c]
mov dword [edi + 0x148], eax
mov byte [edi + 0x14c], 0
movss xmm0, dword [edi + 0x60]
comiss xmm0, xmm1
push ecx
lea ecx, [edi + 0x158]
seta al
mov byte [edi + 0x14d], al
mov byte [edi + 0x14e], 0
movss xmm0, dword [esi + 0x1570]
movss dword [esp], xmm0
push 3
call fcn.004286a0
mov dword [edi + 0x17c], 0
lea eax, [edi + 0x184]
mov dword [edi + 0x180], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x4085b9
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 + 0x184]
call fcn.00416de0
lea eax, [edi + 0x184]
mov dword [eax], 0
lea eax, [edi + 0x274]
mov dword [edi + 0x190], eax
mov eax, dword [ebp - 0x78]
mov dword [edi + 0x194], 0
mov dword [edi + 0x198], 1
test eax, eax
je 0x4085ee
mov eax, dword [eax + 0x198]
jmp 0x4085f3
mov eax, 1
mov dword [edi + 0x19c], eax
mov dword [edi + 0x1a4], 0xffffffff
mov dword [edi + 0x1a0], 0xffffffff
mov eax, dword [edi + 0x270]
mov dword [edi + 0x1ac], eax
lea eax, [edi + 0x1b4]
mov dword [edi + 0x1b0], 0xbf800000
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x408652
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.00416de0
lea eax, [edi + 0x1b4]
mov dword [eax], 0
lea eax, [edi + 0x1c0]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x408687
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1c0]
call fcn.00416de0
lea eax, [edi + 0x1c0]
lea ecx, [edi + 0x1cc]
mov dword [eax], 0
mov eax, dword [ecx + 4]
test eax, eax
jns 0x4086b5
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, dword [ecx + 4]
test eax, eax
cmovg edx, eax
push edx
call fcn.00416de0
lea ecx, [edi + 0x1cc]
mov dword [ecx], 0
lea ecx, [edi + 0x1d8]
push 0
call fcn.00416fc0
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x4086eb
mov eax, dword [eax + 0x1a8]
lea edx, [edi + 0x1a8]
push edx
lea ecx, [edi + 0x1b4]
mov dword [edx], eax
call fcn.00416a80
jmp 0x4086f5
mov dword [edi + 0x1a8], 0
mov cl, byte [edi + 0x94]
test cl, cl
jle 0x408707
dec cl
mov byte [edi + 0x94], cl
mov cl, byte [edi + 0x95]
test cl, cl
jle 0x408719
dec cl
mov byte [edi + 0x95], cl
cmp byte [ebp - 0x7c], 0
je 0x408730
push edi
call fcn.0040bed0
push 0
push edi
call fcn.0040dec0
add esp, 0xc
test byte [ebp - 0x58], 1
jne 0x40878a
push dword [ebp - 0xa0]
movss xmm2, dword [ebp - 0x48]
lea eax, [ebp - 0x30]
push dword [ebp - 0xb0]
movss xmm1, dword [ebp - 0x44]
subss xmm2, dword [0x50ac90]
subss xmm1, dword [esi + 0x15e8]
movss xmm0, dword [ebp - 0x50]
push dword [ebp - 0x74]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x4c]
push eax
push edi
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x24], xmm1
call fcn.00412fe0
add esp, 0x14
movss xmm2, dword [ebp - 0x50]
xor eax, eax
movss xmm3, dword [ebp - 0x48]
movss xmm4, dword [ebp - 0x44]
mov dword [edi + 0x260], eax
mov eax, dword [0x5a9890]
movss xmm1, dword [eax + 0x1580]
movss xmm0, dword [eax + 0x1584]
subss xmm2, xmm1
movss xmm5, dword [eax + 0xf0]
addss xmm3, xmm1
movss xmm1, dword [ebp - 0x4c]
addss xmm4, xmm0
subss xmm1, xmm0
comiss xmm5, xmm2
jb 0x4087f6
movss xmm0, dword [eax + 0xf4]
comiss xmm0, xmm1
jb 0x4087f6
comiss xmm3, xmm5
jbe 0x4087f6
comiss xmm4, xmm0
jbe 0x4087f6
mov ecx, 1
jmp 0x4087f8
xor ecx, ecx
mov eax, dword [edi + 0x48]
movups xmm0, xmmword [ebp - 0x50]
mov dword [edi + 0x110], eax
lea eax, [edi + 0x218]
mov dword [edi + 0x114], ecx
lea ecx, [edi + 0x210]
push 1
push eax
push ecx
movups xmmword [edi + 0x118], xmm0
call fcn.00411740
lea ecx, [edi + 0x95]
mov byte [edi + 0x80], 0
lea edx, [edi + 0x94]
mov dword [ebp - 0x68], ecx
mov eax, edx
jmp 0x4088dc
mov ecx, dword [0x5a9890]
mov dword [ecx + 0x1fe8], edi
mov eax, dword [0x5a9890]
movss xmm0, dword [eax + 0x1ea8]
mov eax, dword [edi + 0x334]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x408877
mulss xmm0, dword [eax + 0x28c]
mov edx, dword [ebp - 0x58]
lea eax, [edi + 0x210]
mov esi, edx
movss dword [ecx + 0x1eb8], xmm0
and edx, 0x40
movss dword [ecx + 0x1ea4], xmm0
mov dword [ebp - 0x58], edx
lea ecx, [edi + 0x218]
lea edx, [edi + 0x94]
and esi, 0x1000000
push 1
mov dword [ebp - 0xa0], edx
lea edx, [edi + 0x95]
push ecx
push eax
mov dword [ebp - 0x68], edx
call fcn.00411740
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
mov eax, edx
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x64]
inc word [edi + 0x8a]
add esp, 0xc
cmp dword [ebp - 0x6c], 0
mov dword [esi + 0x2070], 0
je 0x4089b7
cmp dword [ebp - 0x88], 0
jne 0x40893c
cmp byte [eax], 0
jg 0x40893c
mov eax, dword [ebp - 0x68]
cmp byte [eax], 0
jg 0x40893c
movss xmm0, dword [edi + 0x1f0]
comiss xmm0, dword [edi + 0x1f8]
jae 0x408932
movss xmm0, dword [edi + 0x1f4]
comiss xmm0, dword [edi + 0x1fc]
jb 0x40893c
mov dword [edi + 0x9c], 1
lea eax, [edi + 0x9c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x408990
cmp byte [eax + 0x81], 0
jne 0x40895e
cmp dword [eax + 0x9c], 0
jle 0x408968
mov dword [edi + 0x9c], 1
cmp byte [eax + 0x81], 0
lea esi, [edi + 0x9c]
mov dword [ebp - 0x74], esi
mov esi, dword [ebp - 0x64]
jne 0x408986
cmp dword [eax + 0xa0], 0
jle 0x408990
mov dword [edi + 0xa0], 1
mov eax, dword [ebp - 0x74]
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x1528]
jb 0x4089a5
mov dword [eax], 1
cmp dword [eax], 0
jg 0x4089bf
cmp dword [edi + 0xa0], 0
jg 0x4089bf
xor al, al
jmp 0x4089c1
lea eax, [edi + 0x9c]
jmp 0x408993
mov al, 1
mov byte [edi + 0x85], al
mov byte [ebp - 0x51], al
xor al, al
cmp byte [edi + 0x81], al
jne 0x4089de
cmp byte [edi + 0x7e], al
je 0x4089de
cmp byte [ebp - 0x51], al
je 0x4089fa
cmp byte [edx], 0
jg 0x4089fa
cmp byte [ecx], 0
jg 0x4089fa
cmp dword [edi + 0xa0], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov ecx, dword [ebp - 4]
mov byte [edi + 0x83], al
xor ecx, ebp
pop edi
xor al, 1
pop esi
call fcn.00496b5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret