Function at 0x1005a700
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, 0x108
mov eax, dword [0x1070fd80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push esi
mov esi, dword [0x107111bc]
push edi
push 0
mov dword [ebp - 0xe4], eax
mov eax, dword [ebx + 0x10]
push 0
push ecx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xbc], esi
call fcn.10061d40
push eax
call fcn.100606b0
mov ecx, eax
add esp, 0x10
mov edi, ecx
mov dword [ebp - 0xe0], ecx
test edi, edi
push dword [ebp - 0xa8]
sete al
mov byte [ebp - 0xa2], al
mov byte [ebp - 0xb4], al
test ecx, ecx
jne 0x1005a799
push dword [ebp - 0xf0]
call fcn.1005eca0
add esp, 8
mov edi, eax
jmp 0x1005a7a8
push dword [ebp - 0xb4]
push edi
call fcn.1006def0
add esp, 0xc
mov edx, dword [ebp - 0xa8]
mov eax, edx
and eax, 0xc0200
cmp eax, 0xc0200
jne 0x1005a7c5
or edx, 6
mov dword [ebp - 0xa8], edx
cmp dword [esi + 0x1b84], 0
mov ecx, dword [esi + 0x1b48]
mov eax, dword [edi + 0x228]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xdc], eax
jne 0x1005a7f3
cmp byte [esi + 0x1b55], 0
je 0x1005a7f3
mov al, 1
jmp 0x1005a7f5
xor al, al
mov byte [edi + 0x9e], al
lea eax, [ecx - 1]
cmp dword [ebp - 0xdc], eax
setl ch
mov byte [ebp - 0xec], ch
test edx, 0x4000000
je 0x1005a853
mov eax, dword [esi + 0x1d38]
lea esi, [eax + eax*8]
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax + 0x1d34]
mov eax, dword [edi + 0xac]
cmp edi, dword [edx + esi*4 + 4]
setne cl
cmp eax, dword [edx + esi*4]
mov esi, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xa8]
setne al
or cl, al
or ch, cl
mov byte [ebp - 0xec], ch
mov byte [edi + 0x9c], ch
test ch, ch
je 0x1005a872
or byte [edi + 0xbc], 8
or byte [edi + 0xbd], 8
or byte [edi + 0xbe], 8
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xdc]
cmp ecx, eax
je 0x1005a8be
mov dword [edi + 0x228], eax
xor eax, eax
mov dword [edi + 0x14], edx
movsd xmm0, qword [esi + 0x1b40]
cvtpd2ps xmm0, xmm0
mov word [edi + 0xa4], ax
movss dword [edi + 0x22c], xmm0
movzx eax, word [esi + 0x1b9c]
inc dword [esi + 0x1b9c]
mov word [edi + 0xa6], ax
jmp 0x1005a8c7
mov edx, dword [edi + 0x14]
mov dword [ebp - 0xa8], edx
mov eax, dword [esi + 0x1b84]
test eax, eax
je 0x1005a8e4
imul ecx, eax, 0x54
mov eax, dword [esi + 0x1b8c]
mov eax, dword [ecx + eax - 0x54]
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
cmp ecx, dword [ebp - 0xe8]
je 0x1005a908
mov ecx, edx
and ecx, 0x5000000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0xc8], ecx
jmp 0x1005a914
mov eax, dword [edi + 0x2e8]
mov dword [ebp - 0xc8], eax
cmp dword [edi + 0xd0], 0
lea eax, [edi + 0xd0]
jne 0x1005a949
cmp dword [eax + 4], 0
jne 0x1005a938
push 8
mov ecx, eax
call fcn.1006f480
lea eax, [edi + 0xd0]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 0x10]
mov dword [ecx + edx*4], eax
inc dword [edi + 0xd0]
push 0x3c
lea eax, [ebp - 0x9c]
mov dword [esi + 0x1ba8], edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x107111bc]
lea edx, [esi + 0x1b84]
mov eax, dword [esi + 0x1c80]
xorps xmm0, xmm0
mov dword [ebp - 0x64], eax
add esp, 0xc
movups xmmword [ebp - 0x60], xmm0
mov eax, dword [ecx + 0x1ba8]
movups xmm0, xmmword [esi + 0x1c48]
mov word [ebp - 0x50], 0
mov dword [ebp - 0xa0], edi
movzx eax, word [eax + 0xd0]
mov word [ebp - 0x60], ax
movzx eax, word [ecx + 0x1ce4]
mov word [ebp - 0x5e], ax
movzx eax, word [ecx + 0x1cf0]
mov word [ebp - 0x5c], ax
movzx eax, word [ecx + 0x1cfc]
mov word [ebp - 0x5a], ax
movzx eax, word [ecx + 0x1d08]
mov word [ebp - 0x58], ax
movzx eax, word [ecx + 0x1d20]
movups xmmword [ebp - 0x9c], xmm0
mov word [ebp - 0x56], ax
movups xmm0, xmmword [esi + 0x1c58]
movzx eax, word [ecx + 0x1d14]
mov word [ebp - 0x54], ax
movzx eax, word [ecx + 0x1d38]
movups xmmword [ebp - 0x8c], xmm0
mov word [ebp - 0x52], ax
movups xmm0, xmmword [esi + 0x1c68]
movzx eax, word [ecx + 0x2f2c]
mov ecx, dword [edx]
movups xmmword [ebp - 0x7c], xmm0
mov word [ebp - 0x50], ax
mov eax, dword [edx + 4]
movq xmm0, qword [esi + 0x1c78]
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0xb4], eax
cmp ecx, eax
jne 0x1005aa66
inc ecx
test eax, eax
je 0x1005aa4e
cdq
sub eax, edx
lea edx, [esi + 0x1b84]
sar eax, 1
add eax, dword [ebp - 0xb4]
jmp 0x1005aa53
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.1006f6b0
lea edx, [esi + 0x1b84]
imul ecx, dword [edx], 0x54
movups xmm0, xmmword [ebp - 0xa0]
mov eax, dword [ebp - 0x50]
add ecx, dword [edx + 8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x90]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x80]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [ecx + 0x40], xmm0
mov dword [ecx + 0x50], eax
inc dword [edx]
mov ecx, dword [ebp - 0xa8]
mov dword [esi + 0x1ba8], 0
test ecx, 0x10000000
je 0x1005aabf
inc dword [esi + 0x1d44]
mov eax, ecx
and eax, 0x4000000
mov dword [ebp - 0xb4], eax
je 0x1005ab04
mov eax, dword [esi + 0x1d38]
lea ecx, [esi + 0x1d38]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x1d34]
mov dword [eax + edx*4 + 4], edi
lea esi, [eax + edx*4]
push esi
call fcn.1006f250
mov eax, dword [esi]
mov esi, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xa8]
mov dword [edi + 0xac], eax
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xe8]
je 0x1005abc3
mov edx, dword [ebp - 0xc8]
mov dword [edi + 0x2e8], edx
mov dword [edi + 0x2fc], edi
mov dword [edi + 0x2f8], edi
mov dword [edi + 0x2f4], edi
mov dword [edi + 0x2f0], edi
test edx, edx
je 0x1005ab89
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x1005ab58
mov eax, dword [edx + 0x2f0]
mov dword [edi + 0x2f0], eax
cmp dword [ebp - 0xb4], 0
je 0x1005ab6d
mov eax, dword [edx + 0x2f4]
mov dword [edi + 0x2f4], eax
test ecx, 0x8000000
jne 0x1005ab89
test ecx, 0x5000000
je 0x1005ab89
mov eax, dword [edx + 0x2f8]
mov dword [edi + 0x2f8], eax
test dword [edi + 0x14], 0x800000
je 0x1005abb7
mov ecx, edi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ecx + 0x2e8]
mov ecx, eax
mov dword [edi + 0x2fc], eax
test dword [ecx + 0x14], 0x800000
jne 0x1005aba0
mov eax, dword [ebp - 0xd4]
mov dword [edi + 0x2ec], eax
xor dl, dl
mov byte [ebp - 0xa4], 0
test byte [esi + 0x1c84], 1
mov byte [ebp - 0xa9], dl
mov byte [ebp - 0xa3], dl
je 0x1005ac85
mov dl, byte [edi + 0xbc]
mov ecx, dword [esi + 0x1c88]
movsx eax, dl
test ecx, eax
setne byte [ebp - 0xa4]
test ecx, eax
je 0x1005ac74
movss xmm1, dword [esi + 0x1ca0]
movss xmm0, dword [esi + 0x1c9c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x101ce6ec]
jbe 0x1005ac74
mov eax, dword [esi + 0x1c94]
mov ecx, dword [esi + 0x1c98]
mov dword [edi + 0xc4], ecx
mov dword [edi + 0xc0], eax
mov eax, dword [esi + 0x1c9c]
mov ecx, dword [esi + 0x1ca0]
mov dword [edi + 0xcc], ecx
mov dword [edi + 0xc8], eax
mov eax, dword [edi + 0xbc]
movzx ecx, dl
and eax, 0xffffff00
and ecx, 0xf1
or ecx, eax
mov dword [edi + 0xbc], ecx
jmp 0x1005ac85
push ecx
lea eax, [esi + 0x1c94]
push eax
push edi
call fcn.1006c3e0
add esp, 0xc
test byte [esi + 0x1c84], 2
xorps xmm1, xmm1
je 0x1005acf3
movsx eax, byte [edi + 0xbd]
mov ecx, dword [esi + 0x1c8c]
and eax, ecx
je 0x1005acb8
movss xmm0, dword [esi + 0x1ca4]
comiss xmm0, xmm1
jbe 0x1005acb8
mov byte [ebp - 0xa9], 1
jmp 0x1005acc4
xor dl, dl
mov byte [ebp - 0xa9], dl
test eax, eax
je 0x1005acd8
movss xmm0, dword [esi + 0x1ca8]
comiss xmm0, xmm1
mov byte [ebp - 0xa3], 1
ja 0x1005acdf
mov byte [ebp - 0xa3], 0
push ecx
lea eax, [esi + 0x1ca4]
push eax
push edi
call fcn.1006c500
add esp, 0xc
xorps xmm1, xmm1
test byte [esi + 0x1c84], 0x80
je 0x1005ad31
movss xmm0, dword [esi + 0x1cb4]
comiss xmm0, xmm1
jb 0x1005ad15
movss dword [edi + 0x74], xmm0
mov dword [edi + 0x7c], 0
movss xmm0, dword [esi + 0x1cb8]
comiss xmm0, xmm1
jb 0x1005ad31
movss dword [edi + 0x78], xmm0
mov dword [edi + 0x80], 0
test byte [esi + 0x1c84], 4
je 0x1005ad4e
mov eax, dword [esi + 0x1cac]
mov ecx, dword [esi + 0x1cb0]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
jmp 0x1005ad6a
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xe8]
je 0x1005ad6a
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
test byte [esi + 0x1c84], 8
je 0x1005adb7
mov ecx, dword [esi + 0x1c90]
mov dl, byte [esi + 0x1cbc]
test ecx, ecx
je 0x1005ad8e
movsx eax, byte [edi + 0xbe]
test ecx, eax
je 0x1005adb7
movzx ecx, byte [edi + 0xbe]
mov eax, dword [edi + 0xbc]
and ecx, 0xf1
shl ecx, 0x10
and eax, 0xff00ffff
or ecx, eax
mov byte [edi + 0x99], dl
mov dword [edi + 0xbc], ecx
test byte [esi + 0x1c84], 0x20
je 0x1005adc9
push edi
call fcn.100608a0
add esp, 4
cmp byte [edi + 0x9c], 0
je 0x1005ade7
and byte [edi + 0xbc], 0xf7
and byte [edi + 0xbd], 0xf7
and byte [edi + 0xbe], 0xf7
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xe8]
je 0x1005c8cd
mov eax, dword [ebp - 0xa8]
and eax, 0x3000000
mov byte [edi + 0x96], 1
cmp dword [ebp - 0xe4], 0
mov dword [ebp - 0xd4], eax
setne al
mov byte [edi + 0xa0], al
mov dword [edi + 0x200], 0xff7fffff
mov dword [edi + 0x204], 0xff7fffff
mov dword [edi + 0x208], 0x7f7fffff
mov dword [edi + 0x20c], 0x7f7fffff
mov eax, dword [edi + 0xd4]
cmp eax, 1
jge 0x1005ae87
test eax, eax
je 0x1005ae6a
cdq
sub eax, edx
lea edx, [edi + 0xd0]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x1005ae75
mov ecx, 8
lea edx, [edi + 0xd0]
mov eax, 1
cmp ecx, eax
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.1006f480
mov dword [edi + 0xd0], 1
mov ecx, dword [edi + 0x254]
call fcn.10077e40
cmp byte [edi + 0x334], 0
mov dword [edi + 0x180], 0xffffffff
je 0x1005af9a
mov ecx, dword [edi + 0x254]
push dword [edi + 0x32c]
add ecx, 0xc
mov byte [edi + 0x334], 0
call fcn.1006f400
mov eax, dword [edi + 0x254]
mov ecx, dword [edi + 0x330]
add eax, 0x18
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], ecx
cmp ecx, dword [eax + 4]
jle 0x1005af86
mov eax, dword [0x107111bc]
test eax, eax
je 0x1005af01
inc dword [eax + 0x36c]
push dword [0x107111c4]
lea eax, [ecx + ecx*4]
shl eax, 2
push eax
call dword [0x105f2fd8]
mov dword [ebp - 0xcc], eax
add esp, 8
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax + 8]
test edx, edx
je 0x1005af74
mov ecx, dword [eax]
lea ecx, [ecx + ecx*4]
shl ecx, 2
push ecx
push edx
push dword [ebp - 0xcc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xb0]
add esp, 0xc
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1005af5e
mov eax, dword [0x107111bc]
test eax, eax
je 0x1005af5e
dec dword [eax + 0x36c]
push dword [0x107111c4]
push ecx
call dword [0x105f2fdc]
mov eax, dword [ebp - 0xb0]
add esp, 8
mov ecx, dword [ebp - 0xcc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [eax + 4], ecx
mov dword [edi + 0x330], 0
mov dword [edi + 0x32c], 0
cmp dword [esi + 0x1eac], 0
je 0x1005b0af
test dword [edi + 0x14], 0x80000
jne 0x1005b0af
cmp dword [ebp - 0xe0], 0
je 0x1005b0af
mov eax, dword [edi + 0xc]
mov ecx, eax
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xf0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005aff2
test dl, dl
je 0x1005afee
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005aff2
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005afd2
xor eax, eax
jmp 0x1005aff7
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005b0af
mov ecx, dword [ebp - 0xf0]
mov edx, dword [edi + 0x58]
mov dword [ebp - 0xd0], edx
lea eax, [ecx + 1]
mov dword [ebp - 0xb4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005b017
sub ecx, dword [ebp - 0xb4]
lea eax, [ecx + 1]
mov dword [ebp - 0xb0], eax
cmp edx, eax
mov eax, dword [ebp - 0xcc]
jae 0x1005b08d
test eax, eax
je 0x1005b04b
mov ecx, dword [0x107111bc]
test ecx, ecx
je 0x1005b04b
dec dword [ecx + 0x36c]
push dword [0x107111c4]
push eax
call dword [0x105f2fdc]
mov eax, dword [0x107111bc]
add esp, 8
test eax, eax
je 0x1005b06a
inc dword [eax + 0x36c]
push dword [0x107111c4]
push dword [ebp - 0xb0]
call dword [0x105f2fd8]
mov ecx, dword [ebp - 0xb0]
add esp, 8
mov dword [ebp - 0xd0], ecx
jmp 0x1005b093
mov ecx, dword [ebp - 0xb0]
push ecx
push dword [ebp - 0xf0]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi + 0xc], eax
add esp, 0xc
mov eax, dword [ebp - 0xd0]
mov dword [edi + 0x58], eax
mov al, byte [edi + 0xb9]
mov byte [ebp - 0xc1], al
lea eax, [edi + 0x38]
push eax
lea eax, [edi + 0x30]
push eax
push edi
call fcn.1005dd40
mov al, byte [edi + 0xb8]
add esp, 0xc
test al, al
jle 0x1005b0de
dec al
mov byte [edi + 0xb8], al
mov al, byte [edi + 0xb9]
test al, al
jle 0x1005b0f0
dec al
mov byte [edi + 0xb9], al
mov al, byte [edi + 0xba]
test al, al
jle 0x1005b102
dec al
mov byte [edi + 0xba], al
cmp dword [ebp - 0xe0], 0
mov al, byte [ebp - 0xa9]
mov cl, byte [ebp - 0xa3]
jne 0x1005b126
test al, al
je 0x1005b11f
test cl, cl
jne 0x1005b126
mov byte [edi + 0xb9], 1
cmp byte [ebp - 0xec], 0
mov edx, dword [ebp - 0xa8]
je 0x1005b189
test edx, 0x6000000
je 0x1005b189
mov byte [edi + 0xb9], 1
test dl, 0x40
je 0x1005b189
test al, al
jne 0x1005b15b
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0
test cl, cl
jne 0x1005b16d
mov dword [edi + 0x2c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [0x107111bc]
mov dword [ecx + 0x1ba8], edi
mov eax, dword [edi + 0x180]
cmp eax, 0xffffffff
je 0x1005b1ae
imul eax, eax, 0x1c8
add eax, dword [ecx + 0x1f80]
jmp 0x1005b1b0
xor eax, eax
mov dword [ecx + 0x1f64], eax
mov eax, dword [0x107111bc]
movss xmm0, dword [eax + 0x1948]
mov eax, dword [edi + 0x2e8]
mulss xmm0, dword [edi + 0x24c]
test eax, eax
je 0x1005b1dd
mulss xmm0, dword [eax + 0x24c]
movss dword [ecx + 0x1958], xmm0
movss dword [ecx + 0x1944], xmm0
test edx, 0x1000000
je 0x1005b1ff
movss xmm0, dword [esi + 0x1558]
jmp 0x1005b221
test edx, 0x6000000
je 0x1005b219
test edx, 0x8000000
jne 0x1005b219
movss xmm0, dword [esi + 0x1560]
jmp 0x1005b221
movss xmm0, dword [esi + 0x153c]
movss dword [edi + 0x54], xmm0
mov eax, dword [esi + 0x1530]
mov ecx, dword [esi + 0x1534]
mov dword [edi + 0x48], eax
mov eax, edx
and eax, 0x5010000
mov dword [edi + 0x4c], ecx
cmp eax, 0x1000000
jne 0x1005b26e
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1005b26e
test edx, 0x400
je 0x1005b262
movss xmm1, dword [esi + 0x1534]
mov dword [edi + 0x48], 0
movss dword [edi + 0x4c], xmm1
movss xmm0, dword [edi + 0x48]
maxss xmm0, dword [esi + 0x1574]
maxss xmm0, dword [esi + 0x1cdc]
movss dword [edi + 0x140], xmm0
mov eax, dword [esi + 0x1ce0]
mov dword [edi + 0x144], eax
test dl, 0x21
jne 0x1005b30c
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.1006d090
cmp dword [esi + 0x1bac], edi
jne 0x1005b2e8
cmp dword [esi + 0x1bcc], 0
jne 0x1005b2e8
cmp dword [esi + 0x1bd0], 0
jne 0x1005b2e8
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10063100
add esp, 0xc
test al, al
je 0x1005b2e8
cmp word [esi + 0x3ea], 2
jne 0x1005b2e8
mov byte [edi + 0x9a], 1
cmp byte [edi + 0x9a], 0
je 0x1005b313
cmp byte [edi + 0x99], 0
push edi
sete al
mov byte [edi + 0x99], al
call fcn.10063d50
add esp, 4
jmp 0x1005b313
mov byte [edi + 0x99], 0
lea eax, [edi + 0x38]
mov byte [edi + 0x9a], 0
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.1005dad0
mov al, byte [ebp - 0xa2]
add esp, 0xc
test byte [ebp - 0xa8], 0x40
mov byte [ebp - 0xa1], al
je 0x1005b38f
cmp byte [edi + 0x99], 0
jne 0x1005b38f
cmp byte [ebp - 0xa9], 0
jne 0x1005b369
movss xmm0, dword [ebp - 0x108]
movss dword [edi + 0x28], xmm0
mov byte [ebp - 0xa2], 1
cmp byte [ebp - 0xa3], 0
jne 0x1005b44a
movss xmm0, dword [ebp - 0x104]
movss dword [edi + 0x2c], xmm0
mov byte [ebp - 0xa1], 1
jmp 0x1005b44a
mov al, byte [edi + 0xb0]
test al, al
jg 0x1005b3a6
cmp byte [edi + 0xb1], 0
jle 0x1005b44a
cmp byte [ebp - 0xa9], 0
jne 0x1005b3df
test al, al
jle 0x1005b3df
cmp byte [edi + 0xb3], 0
je 0x1005b3cb
movss xmm0, dword [edi + 0x28]
maxss xmm0, dword [ebp - 0x108]
jmp 0x1005b3d3
movss xmm0, dword [ebp - 0x108]
movss dword [edi + 0x28], xmm0
mov byte [ebp - 0xa2], 1
cmp byte [ebp - 0xa3], 0
jne 0x1005b41d
cmp byte [edi + 0xb1], 0
jle 0x1005b41d
cmp byte [edi + 0xb3], 0
je 0x1005b409
movss xmm0, dword [edi + 0x2c]
maxss xmm0, dword [ebp - 0x104]
jmp 0x1005b411
movss xmm0, dword [ebp - 0x104]
movss dword [edi + 0x2c], xmm0
mov byte [ebp - 0xa1], 1
cmp byte [edi + 0x99], 0
jne 0x1005b44a
test dword [edi + 0x14], 0x100
mov ecx, dword [0x107111bc]
jne 0x1005b44a
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x2f60]
jb 0x1005b44a
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2f60], eax
lea esi, [edi + 0x28]
push esi
lea eax, [ebp - 0xb8]
push edi
push eax
call fcn.1005dec0
add esp, 0xc
cmp byte [edi + 0x99], 0
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
je 0x1005b4a3
test dword [ebp - 0xa8], 0x1000000
jne 0x1005b4a3
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.1006d090
movss xmm0, dword [eax + 8]
movss xmm1, dword [eax + 0xc]
subss xmm0, dword [eax]
subss xmm1, dword [eax + 4]
mov edx, dword [edi + 0x14]
movss dword [edi + 0x20], xmm0
movss dword [edi + 0x24], xmm1
mov eax, dword [0x107111bc]
test dl, 1
je 0x1005b4bf
xorps xmm1, xmm1
jmp 0x1005b4f1
movss xmm0, dword [eax + 0x1948]
mov ecx, dword [edi + 0x2e8]
mulss xmm0, dword [edi + 0x24c]
test ecx, ecx
je 0x1005b4e1
mulss xmm0, dword [ecx + 0x24c]
movss xmm1, dword [eax + 0x1568]
addss xmm1, xmm1
addss xmm1, xmm0
test edx, 0x400
je 0x1005b535
movss xmm2, dword [eax + 0x1948]
mov ecx, dword [edi + 0x2e8]
mulss xmm2, dword [edi + 0x24c]
test ecx, ecx
je 0x1005b51b
mulss xmm2, dword [ecx + 0x24c]
movss xmm0, dword [eax + 0x1568]
addss xmm2, dword [edi + 0x144]
addss xmm0, xmm0
addss xmm2, xmm0
jmp 0x1005b538
xorps xmm2, xmm2
cmp byte [ebp - 0xec], 0
addss xmm2, xmm1
mov edx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xbc]
movss dword [ebp - 0xd0], xmm2
je 0x1005b59f
mov eax, edx
mov dword [edi + 0xb4], 0xffffffff
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x1005b59f
cmp byte [ebp - 0xa4], 0
jne 0x1005b59f
mov eax, dword [esi + 0x1d38]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x1d40]
movss xmm0, dword [eax + ecx*4 - 0x10]
movss xmm1, dword [eax + ecx*4 - 0xc]
movss dword [edi + 0x18], xmm0
movss dword [edi + 0x1c], xmm1
test edx, 0x1000000
je 0x1005b654
mov ecx, dword [ebp - 0xc8]
add ecx, 0x16c
mov dword [ebp - 0xc0], ecx
mov ax, word [ecx]
mov word [edi + 0xa4], ax
mov eax, dword [ecx + 4]
cmp dword [ecx], eax
jne 0x1005b607
mov edx, dword [ecx]
inc edx
mov dword [ebp - 0xb4], edx
test eax, eax
je 0x1005b5eb
cdq
sub eax, edx
mov edx, dword [ebp - 0xb4]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1005b5f0
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.1006f480
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x174]
mov dword [eax + ecx*4], edi
mov ecx, dword [ebp - 0xc8]
mov al, byte [ebp - 0xa4]
inc dword [ecx + 0x16c]
test edx, 0x4000000
jne 0x1005b65a
test al, al
jne 0x1005b65a
cmp dword [ebp - 0xd4], 0x3000000
je 0x1005b65a
mov eax, dword [ecx + 0xdc]
mov ecx, dword [ecx + 0xe0]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov al, byte [ebp - 0xa4]
movss xmm1, dword [edi + 0xc0]
ucomiss xmm1, dword [0x101cdbbc]
lahf
test ah, 0x44
jnp 0x1005b6c6
cmp byte [edi + 0xb9], 0
jne 0x1005b6c6
movss xmm0, dword [edi + 0xc8]
lea eax, [ebp - 0xb8]
mulss xmm0, dword [edi + 0x20]
push 0
push eax
push edi
subss xmm1, xmm0
movss xmm0, dword [edi + 0xc4]
movss dword [ebp - 0xb8], xmm1
movss xmm1, dword [edi + 0x24]
mulss xmm1, dword [edi + 0xcc]
subss xmm0, xmm1
movss dword [ebp - 0xb4], xmm0
call fcn.1006c3e0
add esp, 0xc
jmp 0x1005b71d
test edx, 0x10000000
jne 0x1005b6fa
test edx, 0x4000000
je 0x1005b6e2
test al, al
jne 0x1005b6e2
cmp byte [ebp - 0xc1], al
jg 0x1005b6fa
test edx, 0x2000000
je 0x1005b723
test al, al
jne 0x1005b723
cmp dword [ebp - 0xd4], 0x3000000
je 0x1005b723
lea eax, [ebp - 0xb8]
push edi
push eax
call fcn.1005fe20
add esp, 8
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
movss dword [edi + 0x18], xmm0
movss dword [edi + 0x1c], xmm1
mov edx, dword [ebp - 0xa8]
cmp byte [ebp - 0xa4], 0
mov ecx, dword [0x107111bc]
movss xmm3, dword [esi + 0x15d4]
movss xmm2, dword [esi + 0x15d0]
maxss xmm3, dword [esi + 0x15dc]
mov eax, dword [ecx + 0x1d50]
maxss xmm2, dword [esi + 0x15d8]
mov eax, dword [eax]
movss xmm7, dword [eax + 0x14]
movss xmm6, dword [eax + 0x18]
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 [ebp - 0x30], xmm0
addss xmm4, dword [eax + 0x10]
subss xmm7, xmm2
movss dword [ebp - 0x2c], xmm1
addss xmm2, dword [eax + 0x14]
subss xmm6, xmm3
movss dword [ebp - 0x28], xmm5
addss xmm3, dword [eax + 0x18]
movss dword [ebp - 0x24], xmm4
movss dword [ebp - 0xf8], xmm7
movss dword [ebp - 0x100], xmm2
movss dword [ebp - 0xf4], xmm6
movss dword [ebp - 0xfc], xmm3
jne 0x1005b88c
test edx, 0x1000000
jne 0x1005b88c
cmp byte [edi + 0xb0], 0
jg 0x1005b88c
cmp byte [edi + 0xb1], 0
jg 0x1005b88c
subss xmm5, xmm0
xorps xmm0, xmm0
comiss xmm5, xmm0
jbe 0x1005b88c
subss xmm4, xmm1
comiss xmm4, xmm0
jbe 0x1005b88c
cmp byte [ecx + 0xb5], 0
movss xmm1, dword [edi + 0x24]
je 0x1005b857
test byte [edi + 0x14], 1
jne 0x1005b857
movss xmm0, dword [ecx + 0x1948]
mov eax, dword [edi + 0x2e8]
mulss xmm0, dword [edi + 0x24c]
test eax, eax
je 0x1005b847
mulss xmm0, dword [eax + 0x24c]
movss xmm1, dword [ecx + 0x1568]
addss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [edi + 0x1c]
subss xmm3, xmm1
subss xmm2, dword [edi + 0x20]
comiss xmm3, xmm0
ja 0x1005b871
movaps xmm3, xmm6
minss xmm3, xmm0
movss xmm0, dword [edi + 0x18]
comiss xmm2, xmm0
ja 0x1005b882
movaps xmm2, xmm7
minss xmm2, xmm0
movss dword [edi + 0x18], xmm2
movss dword [edi + 0x1c], xmm3
cvttss2si eax, dword [edi + 0x18]
movd xmm1, eax
cvttss2si eax, dword [edi + 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [edi + 0x18], xmm1
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1c], xmm0
test edx, 0x1000000
je 0x1005b8c0
movss xmm0, dword [esi + 0x1554]
jmp 0x1005b8e0
mov eax, edx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x1005b8d8
movss xmm0, dword [esi + 0x155c]
jmp 0x1005b8e0
movss xmm0, dword [esi + 0x1538]
xor cl, cl
movss dword [edi + 0x50], xmm0
mov dword [ebp - 0xcc], ecx
cmp byte [ebp - 0xec], cl
je 0x1005bb50
test edx, 0x1000
jne 0x1005bb50
test edx, 0x4000000
je 0x1005b916
mov byte [ebp - 0xcc], 1
jmp 0x1005b92d
test edx, 0x3000000
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0xcc], ecx
call fcn.10061780
test eax, eax
je 0x1005bb50
push eax
push edi
call fcn.100632f0
add esp, 8
test al, al
jne 0x1005bb50
mov byte [ebp - 0xcc], al
cmp edi, dword [edi + 0x2f0]
jne 0x1005bb50
mov edx, dword [0x107111bc]
mov dword [ebp - 0xd8], edx
mov eax, dword [edx + 0x1d2c]
test eax, eax
jle 0x1005ba32
add eax, 0xffffffff
mov dword [ebp - 0xb0], eax
js 0x1005ba32
mov edx, dword [edx + 0x1d34]
lea ecx, [eax + eax*8]
add edx, 4
lea edx, [edx + ecx*4]
mov dword [ebp - 0xc0], edx
nop dword [eax]
mov edx, dword [edx]
test edx, edx
je 0x1005ba14
cmp byte [edx + 0x97], 0
je 0x1005ba14
test dword [edx + 0x14], 0x8000000
je 0x1005ba14
mov eax, edi
cmp dword [edi + 0x2f0], edx
je 0x1005ba32
cmp eax, edx
je 0x1005ba32
mov eax, dword [eax + 0x2ec]
test eax, eax
jne 0x1005b9c2
mov eax, dword [edx + 0x2ec]
mov ecx, dword [eax + 0x2f0]
test ecx, ecx
je 0x1005ba0e
mov eax, edi
cmp dword [edi + 0x2f0], ecx
je 0x1005ba34
nop word [eax + eax]
cmp eax, ecx
je 0x1005ba34
mov eax, dword [eax + 0x2ec]
test eax, eax
jne 0x1005b9f0
mov eax, dword [ecx + 0x2ec]
mov ecx, dword [eax + 0x2f0]
test ecx, ecx
jne 0x1005b9e0
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xc0]
dec eax
sub edx, 0x24
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xc0], edx
test eax, eax
jns 0x1005b9a0
xor edx, edx
mov eax, dword [edx + 0x2f0]
mov ecx, dword [edi + 0x2f0]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xb0], ecx
mov edx, dword [eax + 0x1b68]
mov eax, dword [eax + 0x1b60]
lea eax, [edx + eax*4]
cmp edx, eax
jae 0x1005ba70
cmp dword [edx], ecx
je 0x1005ba70
add edx, 4
cmp edx, eax
jb 0x1005ba65
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 0x1b68]
sub edx, ecx
mov eax, dword [eax + 0x1b60]
sar edx, 2
lea eax, [ecx + eax*4]
cmp ecx, eax
jae 0x1005baa5
mov esi, dword [ebp - 0xb4]
cmp dword [ecx], esi
je 0x1005ba9f
add ecx, 4
cmp ecx, eax
jb 0x1005ba94
mov esi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xd8]
sub ecx, dword [eax + 0x1b68]
sar ecx, 2
mov dword [ebp - 0xc0], ecx
cmp edx, ecx
lea eax, [ecx*4]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xb4], eax
jge 0x1005bb12
mov eax, dword [ecx + 0x1b68]
lea ecx, [eax + edx*4]
mov eax, dword [ebp - 0xc0]
sub eax, edx
lea eax, [eax*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb0]
mov eax, dword [eax + 0x1b68]
mov dword [eax + edx - 4], ecx
jmp 0x1005bb4d
sub edx, dword [ebp - 0xc0]
add eax, dword [ecx + 0x1b68]
shl edx, 2
push edx
push eax
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xbc]
mov eax, dword [eax + 0x1b68]
mov dword [edx + eax], ecx
add esp, 0xc
movss xmm2, dword [esi + 0x1944]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x20], xmm0
movaps xmm1, xmm2
movss xmm0, dword [edi + 0x50]
xor eax, eax
addss xmm0, dword [0x101974bc]
mulss xmm2, dword [0x101ce704]
cmp byte [esi + 0xb4], al
mulss xmm1, dword [0x101ce730]
setne al
mov dword [ebp - 0xb4], 0xffffffff
addss xmm0, xmm2
inc eax
cmp byte [edi + 0x99], 0
mov dword [ebp - 0xb0], eax
maxss xmm1, xmm0
cvttss2si esi, xmm1
jne 0x1005bbdd
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.1006e030
add esp, 0x18
test al, al
je 0x1005bbdd
mov cl, 1
mov dl, cl
jmp 0x1005bbe9
mov dl, byte [ebp - 0xa2]
mov cl, byte [ebp - 0xa1]
cmp byte [edi + 0x99], 0
mov al, byte [ebp - 0xb4]
mov byte [edi + 0xa1], al
jne 0x1005bd43
cmp dword [ebp - 0xe0], 0
movss xmm2, dword [edi + 0x1c8]
movss xmm3, dword [edi + 0x1cc]
subss xmm2, dword [edi + 0x1c0]
subss xmm3, dword [edi + 0x1c4]
movss xmm4, dword [edi + 0x2c]
movss xmm5, dword [edi + 0x28]
subss xmm4, dword [ebp - 0xd0]
addss xmm2, dword [edi + 0x8c]
addss xmm3, dword [edi + 0x90]
jne 0x1005bc55
xorps xmm1, xmm1
xorps xmm0, xmm0
jmp 0x1005bc71
movss xmm1, dword [edi + 0x48]
movss xmm0, dword [edi + 0x4c]
addss xmm1, xmm1
addss xmm0, xmm0
addss xmm1, dword [edi + 0x30]
addss xmm0, dword [edi + 0x34]
test dl, dl
jne 0x1005bc78
movaps xmm5, xmm2
test cl, cl
jne 0x1005bc7f
movaps xmm4, xmm3
mov ecx, dword [ebp - 0xa8]
test ecx, 0x4000
jne 0x1005bc9b
comiss xmm0, xmm4
jbe 0x1005bc97
test cl, 8
je 0x1005bc9b
xor al, al
jmp 0x1005bc9d
mov al, 1
mov byte [ebp - 0xa1], al
mov byte [edi + 0x95], al
test ecx, 0x8000
jne 0x1005bcf1
mov edx, dword [ebp - 0xbc]
test al, al
je 0x1005bcc5
movss xmm2, dword [edx + 0x159c]
jmp 0x1005bcc8
xorps xmm2, xmm2
subss xmm5, xmm2
comiss xmm1, xmm5
jbe 0x1005bce5
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
mov al, byte [ebp - 0xa1]
je 0x1005bcf1
mov byte [edi + 0x94], 0
xorps xmm1, xmm1
jmp 0x1005bd20
mov byte [edi + 0x94], 1
test al, al
jne 0x1005bd12
comiss xmm0, xmm4
jbe 0x1005bd0a
test cl, 8
jne 0x1005bd0a
mov al, 1
jmp 0x1005bd0c
xor al, al
mov byte [edi + 0x95], al
mov edx, dword [ebp - 0xbc]
movss xmm1, dword [edx + 0x159c]
test al, al
je 0x1005bd2e
movss xmm0, dword [edx + 0x159c]
jmp 0x1005bd31
xorps xmm0, xmm0
movss dword [edi + 0x8c], xmm0
movss dword [edi + 0x90], xmm1
jmp 0x1005bd4f
mov edx, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xa8]
mov eax, ecx
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x1005bd76
cmp dword [ebp - 0xd4], 0x3000000
je 0x1005bd76
mov eax, dword [ebp - 0xc8]
add eax, 0x200
jmp 0x1005bd79
lea eax, [ebp - 0x30]
test byte [edi + 0x14], 1
movups xmm0, xmmword [eax]
movss xmm7, dword [edi + 0x18]
movss xmm6, dword [edi + 0x1c]
movaps xmm4, xmm7
addss xmm4, dword [edi + 0x20]
movaps xmm5, xmm6
addss xmm5, dword [edi + 0x24]
movups xmmword [ebp - 0x100], xmm0
je 0x1005bda8
xorps xmm3, xmm3
jmp 0x1005bde4
mov eax, dword [0x107111bc]
movss xmm0, dword [eax + 0x1948]
mov eax, dword [edi + 0x2e8]
mulss xmm0, dword [edi + 0x24c]
test eax, eax
je 0x1005bdcf
mulss xmm0, dword [eax + 0x24c]
mov eax, dword [0x107111bc]
movss xmm3, dword [eax + 0x1568]
addss xmm3, xmm3
addss xmm3, xmm0
movss xmm0, dword [edi + 0x1c]
movaps xmm1, xmm6
movaps xmm2, xmm7
movss dword [ebp - 0x3c], xmm0
addss xmm2, dword [edi + 0x28]
addss xmm1, xmm3
movss dword [ebp - 0x40], xmm7
mov eax, ecx
and eax, 0x401
movss dword [ebp - 0x38], xmm2
movss dword [ebp - 0x34], xmm1
movss dword [edi + 0x1b0], xmm7
movss dword [edi + 0x1b4], xmm6
movss dword [edi + 0x1b8], xmm4
movss dword [edi + 0x1bc], xmm5
movss xmm0, dword [edi + 0x1b0]
movss xmm4, dword [ebp - 0x100]
movss xmm5, dword [ebp - 0xfc]
maxss xmm0, xmm4
maxss xmm6, xmm5
movss dword [edi + 0x1b0], xmm0
movss dword [edi + 0x1b4], xmm6
movss xmm0, dword [edi + 0x1bc]
movss xmm1, dword [edi + 0x1b8]
minss xmm0, dword [ebp - 0xf4]
minss xmm1, dword [ebp - 0xf8]
movss dword [edi + 0x1bc], xmm0
movss dword [edi + 0x1b8], xmm1
movss xmm7, dword [edi + 0x18]
movss xmm6, dword [edi + 0x1c]
movss dword [edi + 0x1c0], xmm7
movaps xmm0, xmm6
addss xmm7, dword [edi + 0x20]
addss xmm6, dword [edi + 0x24]
addss xmm0, dword [ebp - 0xd0]
subss xmm7, dword [edi + 0x8c]
subss xmm6, dword [edi + 0x90]
movss dword [ebp - 0xc0], xmm0
movss dword [edi + 0x1c4], xmm0
movss dword [edi + 0x1c8], xmm7
movss dword [edi + 0x1cc], xmm6
cmp eax, 1
jne 0x1005bef6
movss xmm0, dword [edi + 0x54]
jmp 0x1005befe
movss xmm0, dword [edx + 0x1570]
movss xmm2, dword [0x101974b8]
movss dword [ebp - 0xb4], xmm0
addss xmm7, xmm2
movss xmm0, dword [edi + 0x48]
addss xmm6, xmm2
mulss xmm0, xmm2
movss xmm3, dword [ebp - 0xf4]
cvttss2si eax, xmm0
movss xmm0, dword [edi + 0x18]
addss xmm0, xmm2
subss xmm6, dword [edi + 0x54]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, dword [edi + 0x54]
addss xmm0, xmm1
subss xmm7, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1d0], xmm0
movss xmm0, dword [ebp - 0xc0]
addss xmm0, xmm2
addss xmm0, dword [ebp - 0xb4]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvttss2si ecx, xmm7
movss dword [edi + 0x1d4], xmm0
movd xmm0, ecx
cvttss2si ecx, xmm6
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1d8], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1dc], xmm0
movss xmm0, dword [edi + 0x1d4]
comiss xmm5, xmm0
jbe 0x1005bfbf
movaps xmm1, xmm5
jmp 0x1005bfc6
movaps xmm1, xmm3
minss xmm1, xmm0
movss xmm6, dword [ebp - 0xf8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm4, xmm2
jbe 0x1005bfdf
movaps xmm0, xmm4
jmp 0x1005bfe6
movaps xmm0, xmm6
minss xmm0, xmm2
movss dword [edi + 0x1d0], xmm0
movss dword [edi + 0x1d4], xmm1
movss xmm0, dword [edi + 0x1dc]
comiss xmm5, xmm0
ja 0x1005c00a
movaps xmm5, xmm3
minss xmm5, xmm0
movss xmm0, dword [edi + 0x1d8]
comiss xmm4, xmm0
ja 0x1005c01e
movaps xmm4, xmm6
minss xmm4, xmm0
movss dword [edi + 0x1d8], xmm4
xorps xmm2, xmm2
movss dword [edi + 0x1dc], xmm5
movss xmm0, dword [edi + 0x20]
comiss xmm0, xmm2
jbe 0x1005c051
test dword [ebp - 0xa8], 0x2000040
jne 0x1005c051
mulss xmm0, dword [0x101ce710]
jmp 0x1005c061
movss xmm0, dword [edx + 0x1944]
mulss xmm0, dword [0x101cdefc]
cvttss2si eax, xmm0
push edi
movd xmm0, eax
lea eax, [ebp - 0x108]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 0x230], xmm0
movss xmm1, dword [edi + 0x48]
movss xmm0, dword [edi + 0x1c8]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x1c0]
addss xmm1, dword [edi + 0x30]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss xmm1, dword [edi + 0x4c]
addss xmm1, xmm1
movss dword [edi + 0x6c], xmm0
movss xmm0, dword [edi + 0x1cc]
subss xmm0, dword [edi + 0x1c4]
addss xmm1, dword [edi + 0x34]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x70], xmm0
call fcn.1005d730
mov ecx, dword [edi + 0x254]
add esp, 8
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [ebp - 0xbc]
movss dword [edi + 0x64], xmm0
movss dword [edi + 0x68], xmm1
mov dword [edi + 0x74], 0x7f7fffff
mov dword [edi + 0x78], 0x7f7fffff
mov eax, dword [eax + 0x1940]
mov eax, dword [eax + 0x30]
push dword [eax + 4]
call fcn.10075e00
push 0
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.10068b80
mov eax, dword [ebp - 0xa8]
add esp, 0xc
and eax, 0x5000000
mov byte [ebp - 0xa2], 0
cmp eax, 0x1000000
jne 0x1005c23d
cmp dword [ebp - 0xd4], 0x3000000
je 0x1005c23d
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 0x16c]
cmp ecx, 2
jl 0x1005c1f9
mov eax, dword [eax + 0x174]
mov eax, dword [eax + ecx*4 - 8]
test eax, eax
je 0x1005c1f9
movss xmm1, dword [eax + 0x18]
lea ecx, [ebp - 0x100]
movss xmm0, dword [eax + 0x1c]
movss dword [ebp - 0x100], xmm1
addss xmm1, dword [eax + 0x20]
movss dword [ebp - 0xfc], xmm0
addss xmm0, dword [eax + 0x24]
lea eax, [ebp - 0x30]
push eax
movss dword [ebp - 0xf8], xmm1
movss xmm1, dword [edi + 0x18]
movss dword [ebp - 0xf4], xmm0
movss xmm0, dword [edi + 0x1c]
movss dword [ebp - 0x30], xmm1
addss xmm1, dword [edi + 0x20]
movss dword [ebp - 0x2c], xmm0
addss xmm0, dword [edi + 0x24]
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x24], xmm0
call fcn.100688b0
mov byte [ebp - 0xa1], al
jmp 0x1005c200
mov byte [ebp - 0xa1], 0
mov edx, dword [edi + 0x254]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x1005c23d
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x254]
cmp dword [eax + 0x18], 0
jle 0x1005c23d
cmp byte [ebp - 0xa1], 0
jne 0x1005c23d
mov byte [ebp - 0xa2], 1
mov dword [edi + 0x254], eax
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x1ea4]
test ecx, ecx
jne 0x1005c253
mov ecx, dword [eax + 0x1d54]
cmp byte [ebp - 0xcc], 0
jne 0x1005c277
test ecx, ecx
je 0x1005c26e
mov eax, dword [edi + 0x2f8]
cmp eax, dword [ecx + 0x2f8]
je 0x1005c277
mov byte [ebp - 0xb4], 0
jmp 0x1005c27e
mov byte [ebp - 0xb4], 1
movd xmm0, esi
lea eax, [ebp - 0x20]
push ecx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push eax
push dword [ebp - 0xb0]
lea eax, [ebp - 0x40]
push dword [ebp - 0xb4]
push eax
push edi
call fcn.1006a3b0
add esp, 0x18
cmp byte [ebp - 0xa2], 0
je 0x1005c2bd
lea eax, [edi + 0x258]
mov dword [edi + 0x254], eax
mov ecx, dword [ebp - 0xa8]
xorps xmm2, xmm2
movss xmm4, dword [edi + 0x40]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm4, xmm2
lahf
test ah, 0x44
jnp 0x1005c2e3
movaps xmm7, xmm4
jmp 0x1005c319
movss xmm0, dword [edi + 0x48]
mov eax, ecx
movss xmm1, dword [edi + 0x20]
addss xmm0, xmm0
and eax, 0x808
subss xmm1, xmm0
subss xmm1, dword [edi + 0x8c]
cmp eax, 0x800
jne 0x1005c312
movss xmm7, dword [edi + 0x30]
jmp 0x1005c315
xorps xmm7, xmm7
maxss xmm7, xmm1
movss xmm5, dword [edi + 0x44]
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jnp 0x1005c32c
movaps xmm6, xmm5
jmp 0x1005c360
movss xmm0, dword [edi + 0x4c]
movss xmm1, dword [edi + 0x24]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, dword [ebp - 0xd0]
subss xmm1, dword [edi + 0x90]
test dl, dl
je 0x1005c359
movss xmm6, dword [edi + 0x34]
jmp 0x1005c35c
xorps xmm6, xmm6
maxss xmm6, xmm1
movss xmm0, dword [edi + 0x48]
movss xmm2, dword [edi + 0x64]
movss xmm1, dword [edi + 0x1c0]
movss dword [ebp - 0xc0], xmm0
subss xmm1, xmm2
maxss xmm0, dword [edi + 0x54]
movss dword [ebp - 0xb4], xmm2
movss xmm3, dword [ebp - 0xc0]
addss xmm1, xmm0
movss xmm0, dword [edi + 0x4c]
movss dword [ebp - 0xd4], xmm0
maxss xmm0, dword [edi + 0x54]
cvttss2si eax, xmm1
movss xmm1, dword [edi + 0x68]
movss dword [ebp - 0xe0], xmm1
movss xmm1, dword [edi + 0x1c4]
subss xmm1, dword [ebp - 0xe0]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm1, xmm0
movss dword [edi + 0x1e0], xmm2
addss xmm2, xmm7
cvttss2si eax, xmm1
movss dword [edi + 0x1e8], xmm2
movss xmm2, dword [ebp - 0xd4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1e4], xmm0
addss xmm0, xmm6
xorps xmm6, xmm6
ucomiss xmm4, xmm6
movss dword [edi + 0x1ec], xmm0
movups xmm0, xmmword [edi + 0x1e0]
lahf
movups xmmword [edi + 0x1f0], xmm0
movss xmm0, dword [edi + 0x18]
movss dword [ebp - 0xb0], xmm0
movaps xmm1, xmm0
movss xmm0, dword [edi + 0x1c]
movss dword [ebp - 0xc0], xmm0
movaps xmm7, xmm0
subss xmm7, dword [ebp - 0xe0]
subss xmm1, dword [ebp - 0xb4]
addss xmm7, xmm2
addss xmm1, xmm3
addss xmm7, dword [ebp - 0xd0]
movss dword [edi + 0x210], xmm1
movss dword [edi + 0x214], xmm7
test ah, 0x44
jp 0x1005c492
movss xmm4, dword [edi + 0x20]
movaps xmm0, xmm3
addss xmm0, xmm3
subss xmm4, xmm0
subss xmm4, dword [edi + 0x8c]
ucomiss xmm5, xmm6
addss xmm4, xmm1
lahf
movss dword [edi + 0x218], xmm4
test ah, 0x44
jp 0x1005c4c7
movss xmm5, dword [edi + 0x24]
movaps xmm0, xmm2
addss xmm0, xmm2
subss xmm5, xmm0
subss xmm5, dword [ebp - 0xd0]
subss xmm5, dword [edi + 0x90]
movss xmm1, dword [ebp - 0xb4]
addss xmm7, xmm5
movaps xmm0, xmm3
mov esi, dword [ebp - 0xbc]
addss xmm0, xmm6
cvtps2pd xmm3, xmm3
movss dword [edi + 0x21c], xmm7
subss xmm0, xmm1
cvtps2pd xmm2, xmm2
movss dword [edi + 0x11c], xmm0
movss xmm0, dword [ebp - 0xb0]
cvtps2pd xmm0, xmm0
mov dword [edi + 0x124], 0
mov dword [edi + 0x120], 0
push dword [ebp - 0xec]
addsd xmm3, xmm0
cvtps2pd xmm0, xmm1
push ecx
lea ecx, [edi + 0x148]
subsd xmm3, xmm0
movss xmm0, dword [ebp - 0xc0]
cvtps2pd xmm0, xmm0
addsd xmm3, qword [0x101ce6e0]
addsd xmm2, xmm0
movss xmm0, dword [ebp - 0xe0]
cvtps2pd xmm0, xmm0
subsd xmm2, xmm0
movss xmm0, dword [ebp - 0xd0]
cvtps2pd xmm0, xmm0
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm3
cvtpd2ps xmm1, xmm2
movss dword [edi + 0xec], xmm0
movss dword [edi + 0xf0], xmm1
movss xmm0, dword [edi + 0xec]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [edi + 0xf0]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
subsd xmm2, xmm0
movss dword [edi + 0x128], xmm1
cvtpd2ps xmm0, xmm2
movss dword [edi + 0x12c], xmm0
movss xmm1, dword [edi + 0xec]
movss xmm0, dword [edi + 0xf0]
movss dword [edi + 0xdc], xmm1
movss dword [edi + 0xe0], xmm0
movss dword [edi + 0xe4], xmm1
movss dword [edi + 0xe8], xmm0
movss dword [edi + 0xf4], xmm1
movss dword [edi + 0xf8], xmm0
movss dword [edi + 0xfc], xmm1
movss dword [edi + 0x100], xmm0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x104], 0
mov dword [edi + 0x108], 0
mov dword [edi + 0x118], 0
mov dword [edi + 0x114], 0
mov dword [edi + 0x130], 0
mov ax, word [edi + 0x136]
mov word [edi + 0x134], ax
xor eax, eax
mov word [edi + 0x136], ax
mov byte [edi + 0x13c], al
movss xmm0, dword [edi + 0x70]
comiss xmm0, xmm6
seta al
mov byte [edi + 0x13d], al
mov byte [edi + 0x13e], 0
movss xmm0, dword [esi + 0x1574]
movss dword [esp], xmm0
call fcn.100961b0
mov dword [edi + 0x164], 0
lea eax, [edi + 0x16c]
mov dword [edi + 0x168], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1005c6d4
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 + 0x16c]
call fcn.1006f480
lea eax, [edi + 0x16c]
mov dword [eax], 0
lea eax, [edi + 0x234]
mov dword [edi + 0x178], eax
mov eax, dword [ebp - 0xc8]
mov dword [edi + 0x17c], 0
mov dword [edi + 0x184], 1
test eax, eax
je 0x1005c70c
mov eax, dword [eax + 0x184]
jmp 0x1005c711
mov eax, 1
mov dword [edi + 0x188], eax
mov eax, dword [edi + 0x230]
mov dword [edi + 0x190], eax
lea eax, [edi + 0x198]
mov dword [edi + 0x194], 0xbf800000
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1005c75c
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 + 0x198]
call fcn.1006f480
lea eax, [edi + 0x198]
mov dword [eax], 0
lea eax, [edi + 0x1a4]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1005c791
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 + 0x1a4]
call fcn.1006f480
lea eax, [edi + 0x1a4]
mov dword [eax], 0
mov al, byte [edi + 0xb0]
test al, al
jle 0x1005c7a9
dec al
mov byte [edi + 0xb0], al
mov al, byte [edi + 0xb1]
test al, al
jle 0x1005c7bb
dec al
mov byte [edi + 0xb1], al
cmp byte [ebp - 0xcc], 0
je 0x1005c7d5
push edi
call fcn.100608a0
push 0
push edi
call fcn.100640b0
add esp, 0xc
test byte [ebp - 0xa8], 1
jne 0x1005c829
movss xmm0, dword [edi + 0x54]
lea eax, [ebp - 0x30]
addss xmm0, dword [ebp - 0x40]
push dword [ebp - 0xe4]
push dword [ebp - 0xf0]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ebp - 0x38]
subss xmm0, dword [edi + 0x54]
push eax
push edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [ebp - 0x24], xmm0
call fcn.1006af80
add esp, 0x10
movss xmm2, dword [ebp - 0x40]
xor eax, eax
movss xmm4, dword [ebp - 0x38]
movss xmm3, dword [ebp - 0x34]
mov dword [edi + 0x220], eax
mov edx, dword [0x107111bc]
movss xmm1, dword [edx + 0x158c]
movss xmm0, dword [edx + 0x1590]
subss xmm2, xmm1
movss xmm5, dword [edx + 0xe4]
addss xmm4, xmm1
movss xmm1, dword [ebp - 0x3c]
addss xmm3, xmm0
subss xmm1, xmm0
comiss xmm5, xmm2
jb 0x1005c899
movss xmm0, dword [edx + 0xe8]
comiss xmm0, xmm1
jb 0x1005c899
comiss xmm4, xmm5
jbe 0x1005c899
comiss xmm3, xmm0
mov dword [ebp - 0xe4], 1
ja 0x1005c89f
mov dword [ebp - 0xe4], eax
mov eax, dword [edi + 0x5c]
mov ecx, dword [esi + 0x1c30]
mov dword [edx + 0x1c48], eax
mov eax, dword [ebp - 0xe4]
mov dword [edx + 0x1c4c], ecx
mov dword [edx + 0x1c50], eax
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [edx + 0x1c54], xmm0
jmp 0x1005c931
mov ecx, dword [0x107111bc]
mov dword [ecx + 0x1ba8], edi
mov eax, dword [edi + 0x180]
cmp eax, 0xffffffff
je 0x1005c8f2
imul eax, eax, 0x1c8
add eax, dword [ecx + 0x1f80]
jmp 0x1005c8f4
xor eax, eax
mov dword [ecx + 0x1f64], eax
mov eax, dword [0x107111bc]
movss xmm0, dword [eax + 0x1948]
mov eax, dword [edi + 0x2e8]
mulss xmm0, dword [edi + 0x24c]
test eax, eax
je 0x1005c921
mulss xmm0, dword [eax + 0x24c]
movss dword [ecx + 0x1958], xmm0
movss dword [ecx + 0x1944], xmm0
test dword [ebp - 0xa8], 0x1000000
je 0x1005c94b
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 0x138]
jmp 0x1005c9b9
mov ecx, dword [edi + 0xd0]
mov eax, dword [edi + 0xd8]
push dword [eax + ecx*4 - 4]
push 0
push str.FOCUSSCOPE
call fcn.10061d40
mov ecx, eax
add esp, 0xc
mov eax, dword [0x107111bc]
mov dword [ebp - 0xe4], ecx
cmp dword [eax + 0x1be0], ecx
jne 0x1005c985
mov dword [eax + 0x1be4], ecx
cmp dword [eax + 0x1c1c], ecx
jne 0x1005c994
mov byte [eax + 0x1c20], 1
mov eax, dword [0x107111bc]
cmp dword [eax + 0x1bc8], ecx
jne 0x1005c9b9
push 0
push str.FOCUSSCOPE
push 0xb
push ecx
call fcn.1005f120
mov ecx, dword [ebp - 0xe4]
add esp, 0x10
push 1
lea eax, [edi + 0x1d8]
mov dword [edi + 0x138], ecx
push eax
lea eax, [edi + 0x1d0]
push eax
call fcn.10068b80
mov eax, dword [ebp - 0xdc]
add esp, 0xc
mov byte [edi + 0x98], 0
inc word [edi + 0xa2]
mov dword [esi + 0x1c84], 0
cmp eax, dword [ebp - 0xe8]
je 0x1005cb62
mov eax, dword [ebp - 0xa8]
test eax, 0x1000000
je 0x1005cac8
test al, 0x40
jne 0x1005ca8c
cmp byte [edi + 0xb0], 0
jg 0x1005ca8c
cmp byte [edi + 0xb1], 0
jg 0x1005ca8c
test eax, 0x800000
je 0x1005ca54
cmp byte [esi + 0x1d94], 0
je 0x1005ca54
mov eax, dword [esi + 0x1d54]
test eax, eax
je 0x1005ca54
mov eax, dword [eax + 0x2fc]
cmp eax, dword [edi + 0x2fc]
jne 0x1005ca54
mov al, 1
jmp 0x1005ca56
xor al, al
cmp byte [esi + 0x2fa4], 0
jne 0x1005ca8c
test al, al
jne 0x1005ca8c
movss xmm0, dword [edi + 0x1b0]
comiss xmm0, dword [edi + 0x1b8]
jae 0x1005ca85
movss xmm0, dword [edi + 0x1b4]
comiss xmm0, dword [edi + 0x1bc]
jb 0x1005ca8c
mov byte [edi + 0xb8], 1
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x1005cac8
cmp byte [eax + 0x99], 0
jne 0x1005caa8
cmp byte [eax + 0xb8], 0
jle 0x1005caaf
mov byte [edi + 0xb8], 1
cmp byte [eax + 0x99], 0
jne 0x1005cac1
cmp byte [eax + 0xb9], 0
jle 0x1005cac8
mov byte [edi + 0xb9], 1
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x1528]
jb 0x1005cadb
mov byte [edi + 0xb8], 1
cmp byte [edi + 0xb8], 0
jg 0x1005cafb
cmp byte [edi + 0xb9], 0
jg 0x1005cafb
xor cl, cl
cmp byte [edi + 0xba], cl
jg 0x1005cafd
xor al, al
jmp 0x1005caff
mov cl, 1
mov al, 1
mov byte [edi + 0x9d], al
mov al, byte [edi + 0xbb]
test al, al
jle 0x1005cb22
dec al
mov byte [edi + 0xbb], al
mov eax, dword [edi + 0x14]
or eax, 0xc0200
mov dword [edi + 0x14], eax
xor al, al
cmp byte [edi + 0x99], al
jne 0x1005cb38
cmp byte [edi + 0x96], al
je 0x1005cb38
test cl, cl
je 0x1005cb5c
cmp byte [edi + 0xb0], 0
jg 0x1005cb5c
cmp byte [edi + 0xb1], 0
jg 0x1005cb5c
cmp byte [edi + 0xb9], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov byte [edi + 0x9b], al
cmp byte [edi + 0x9b], 0
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.101055b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret