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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
mov esi, dword [0x1018d494]
mov eax, ecx
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], esi
call fcn.1001f63e
test eax, eax
mov dword [esp + 0x4c], eax
mov ebx, eax
mov dword [esp + 0x30], eax
sete byte [esp + 0xf]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], ebx
mov edi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
test eax, eax
jne 0x10021588
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x50]
call fcn.1001f873
mov ebx, eax
mov edi, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov eax, dword [ebp + 8]
mov edx, 0xc0200
mov ecx, dword [ebp + 8]
and eax, edx
or ecx, 6
cmp eax, edx
mov eax, dword [esi + 0x3dc8]
cmovne ecx, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x238]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x3e24], eax
jne 0x100215d1
cmp byte [esi + 0x3dd5], al
je 0x100215d1
lea edx, [eax + 1]
mov eax, dword [esp + 0x30]
jmp 0x100215ed
mov edx, dword [esp + 0x54]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x38]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dl, byte [esp + 0x11]
mov byte [eax + 0xb2], dl
mov eax, dword [esp + 0x34]
dec eax
cmp dword [edi + 0x238], eax
setl al
mov byte [esp + 0x11], al
test ecx, 0x4000000
je 0x1002163f
imul edx, dword [esi + 0x47ac], 0x28
mov eax, dword [esp + 0x1c]
add edx, dword [esi + 0x47a8]
cmp eax, dword [edx + 4]
mov eax, dword [esp + 0x2c]
setne cl
mov eax, dword [eax + 0xc0]
cmp eax, dword [edx]
setne al
or cl, al
mov al, byte [esp + 0x11]
or al, cl
mov byte [esp + 0x11], al
mov byte [ebx + 0xb0], al
test al, al
je 0x10021658
xor eax, eax
mov ecx, ebx
inc eax
push eax
push 8
pop edx
call fcn.1001f58f
pop ecx
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x34]
je 0x100216b6
push dword [esp + 0x14]
mov dl, byte [esp + 0x13]
mov ecx, ebx
call fcn.1001f6b3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xc], edx
mov dword [edi + 0x238], eax
xor eax, eax
movsd xmm0, qword [esi + 0x3dc0]
cvtpd2ps xmm0, xmm0
pop ecx
movss dword [ebx + 0x23c], xmm0
mov word [ebx + 0xba], ax
mov ax, word [esi + 0x3e3c]
mov word [ebx + 0xbc], ax
inc dword [esi + 0x3e3c]
jmp 0x100216bd
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3e24]
test eax, eax
jne 0x100216cb
xor ecx, ecx
jmp 0x100216d8
imul ecx, eax, 0x54
mov eax, dword [esi + 0x3e2c]
mov ecx, dword [ecx + eax - 0x54]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
cmp eax, dword [esp + 0x34]
je 0x100216f5
mov eax, edx
and eax, 0x5000000
neg eax
sbb eax, eax
and eax, ecx
jmp 0x100216fb
mov eax, dword [ebx + 0x300]
lea ecx, [ebx + 0xe4]
mov dword [esp + 0x28], eax
cmp dword [ecx], 0
jne 0x10021713
lea eax, [ebx + 8]
push eax
call fcn.1002a808
lea ecx, [esp + 0xbc]
mov dword [esi + 0x3e48], ebx
call fcn.1001a2d4
mov edx, dword [esp + 0x20]
lea edi, [esp + 0xf8]
xor eax, eax
add esi, 0x46bc
stosd dword es:[edi], eax
push 0xf
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx + 0x3e48]
lea edi, [esp + 0xbc]
mov dword [esp + 0xb8], ebx
rep movsd dword es:[edi], dword [esi]
mov ax, word [eax + 0xe4]
lea esi, [edx + 0x3e24]
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov word [esp + 0xf8], ax
mov ax, word [edx + 0x4758]
mov word [esp + 0xfa], ax
mov ax, word [edx + 0x4764]
mov word [esp + 0xfc], ax
mov ax, word [edx + 0x4770]
mov word [esp + 0xfe], ax
mov ax, word [edx + 0x477c]
mov word [esp + 0x100], ax
mov ax, word [edx + 0x4794]
mov word [esp + 0x102], ax
mov ax, word [edx + 0x4788]
mov word [esp + 0x104], ax
mov ax, word [edx + 0x47ac]
mov word [esp + 0x106], ax
mov ax, word [edx + 0x59ec]
mov word [esp + 0x108], ax
cmp ecx, edi
jne 0x10021811
inc ecx
test edi, edi
je 0x100217fd
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10021800
push 8
pop eax
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1002ab57
mov edx, dword [esp + 0x20]
imul eax, dword [esi], 0x54
mov edi, dword [esi + 8]
lea esi, [esp + 0xb8]
push 0x15
pop ecx
add edi, eax
mov eax, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
inc dword [edx + 0x3e24]
test eax, 0x10000000
je 0x1002183c
inc dword [edx + 0x47b8]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x48], edx
je 0x1002185e
push dword [esp + 0x28]
mov edx, eax
mov ecx, ebx
call fcn.100213df
mov eax, dword [esp + 0x20]
pop ecx
mov dword [ebx + 0x304], eax
mov esi, dword [0x1018d494]
lea eax, [esp + 0x38]
mov edi, dword [ebx + 8]
push eax
mov dword [esp + 0x3c], edi
lea ecx, [esi + 0x477c]
call fcn.1002a808
mov dword [esi + 0x469c], edi
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x469c]
mov dword [ebx + 0x344], eax
xor eax, eax
mov dword [edi + 0x3e48], eax
test esi, 0x4000000
je 0x100218d8
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0x47ac]
imul esi, dword [ecx], 0x28
add esi, dword [edi + 0x47a8]
push esi
mov dword [esi + 4], ebx
mov eax, dword [eax + 0x148]
mov dword [esi + 0xc], eax
call fcn.1002a49c
mov eax, dword [esi]
mov esi, dword [esp + 0x14]
mov dword [ebx + 0xc0], eax
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x13], al
inc ecx
mov byte [esp + 0x10], al
mov byte [esp + 0x12], al
test byte [edi + 0x46f8], cl
je 0x10021993
movsx eax, byte [ebx + 0xd0]
mov ecx, dword [edi + 0x46fc]
test ecx, eax
setne byte [esp + 0x13]
test ecx, eax
je 0x10021982
movss xmm1, dword [edi + 0x4714]
movss xmm0, dword [edi + 0x4710]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x100b9104]
jbe 0x10021982
mov eax, dword [edi + 0x4708]
mov ecx, dword [edi + 0x470c]
mov dword [ebx + 0xd4], eax
mov dword [ebx + 0xd8], ecx
mov eax, dword [edi + 0x4710]
mov ecx, dword [edi + 0x4714]
mov dword [ebx + 0xdc], eax
mov dword [ebx + 0xe0], ecx
movzx ecx, byte [ebx + 0xd0]
mov eax, dword [ebx + 0xd0]
and ecx, 0xf1
and eax, 0xffffff00
or ecx, eax
mov dword [ebx + 0xd0], ecx
jmp 0x10021991
push ecx
lea edx, [edi + 0x4708]
mov ecx, ebx
call fcn.10023663
pop ecx
xor eax, eax
test byte [edi + 0x46f8], 2
xorps xmm1, xmm1
je 0x100219f8
movsx ecx, byte [ebx + 0xd1]
mov edx, dword [edi + 0x4700]
and ecx, edx
je 0x100219c6
movss xmm0, dword [edi + 0x4718]
comiss xmm0, xmm1
jbe 0x100219c6
xor ecx, ecx
inc ecx
mov byte [esp + 0x10], cl
jmp 0x100219d1
mov byte [esp + 0x10], al
test ecx, ecx
je 0x100219e2
xor ecx, ecx
inc ecx
movss xmm0, dword [edi + 0x471c]
comiss xmm0, xmm1
mov byte [esp + 0x12], cl
ja 0x100219e6
mov byte [esp + 0x12], al
push edx
lea edx, [edi + 0x4718]
mov ecx, ebx
call fcn.1002379d
pop ecx
xorps xmm1, xmm1
test byte [edi + 0x46f8], 0x80
je 0x10021a39
movss xmm0, dword [edi + 0x4728]
comiss xmm0, xmm1
jb 0x10021a1d
movss dword [ebx + 0x88], xmm0
and dword [ebx + 0x90], 0
movss xmm0, dword [edi + 0x472c]
comiss xmm0, xmm1
jb 0x10021a39
movss dword [ebx + 0x8c], xmm0
and dword [ebx + 0x94], 0
test byte [edi + 0x46f8], 4
je 0x10021a56
mov eax, dword [edi + 0x4720]
mov ecx, dword [edi + 0x4724]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ecx
jmp 0x10021a6a
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x34]
je 0x10021a6a
movss dword [ebx + 0x3c], xmm1
movss dword [ebx + 0x40], xmm1
test byte [edi + 0x46f8], 8
je 0x10021a87
push dword [edi + 0x4704]
mov dl, byte [edi + 0x4730]
mov ecx, ebx
call fcn.1002386b
pop ecx
test byte [edi + 0x46f8], 0x20
je 0x10021a97
mov ecx, ebx
call fcn.10023459
cmp byte [ebx + 0xb0], 0
je 0x10021aad
push 0
push 8
pop edx
mov ecx, ebx
call fcn.1001f58f
pop ecx
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x34]
je 0x10022ff4
mov eax, esi
lea ecx, [ebx + 0xe4]
and eax, 0x3000000
mov dword [esp + 0x2c], eax
mov al, byte [ebx + 0xcd]
mov byte [esp + 0x27], al
xor eax, eax
inc eax
mov byte [ebx + 0xaa], al
mov byte [ebx + 0xb4], 0
mov dword [ebx + 0x210], 0xff7fffff
mov dword [ebx + 0x214], 0xff7fffff
mov dword [ebx + 0x218], 0x7f7fffff
push eax
mov dword [ebx + 0x21c], 0x7f7fffff
call fcn.1002a7bd
mov ecx, dword [ebx + 0x264]
call fcn.10030211
or dword [ebx + 0x194], 0xffffffff
cmp byte [ebx + 0x350], 0
je 0x10021b36
mov ecx, ebx
call fcn.1001d3e8
mov esi, dword [esp + 0x4c]
xor eax, eax
cmp dword [edi + 0x4924], eax
je 0x10021bf3
test dword [ebx + 0xc], 0x80000
jne 0x10021bf3
test esi, esi
je 0x10021bf3
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x50]
mov bl, byte [ecx]
cmp bl, byte [edx]
mov byte [esp + 0x1b], bl
mov ebx, dword [esp + 0x44]
jne 0x10021b96
cmp byte [esp + 0x1b], al
je 0x10021b9d
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
mov byte [esp + 0x1b], bl
mov ebx, dword [esp + 0x44]
jne 0x10021b96
add ecx, 2
add edx, 2
cmp byte [esp + 0x1b], al
jne 0x10021b64
jmp 0x10021b9d
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
test eax, eax
je 0x10021bf3
mov edx, dword [esp + 0x50]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x38], ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10021baf
sub edx, esi
lea esi, [edx + 1]
cmp ecx, esi
jae 0x10021bd4
mov ecx, dword [ebx + 4]
call fcn.1001d7dc
mov ecx, esi
call fcn.1001d7c4
mov dword [esp + 0x38], esi
jmp 0x10021bd7
mov eax, dword [ebx + 4]
push esi
push dword [esp + 0x54]
push eax
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0x58]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x6c], eax
lea eax, [ebx + 0x34]
mov ecx, ebx
push eax
lea edx, [ebx + 0x2c]
call fcn.1001fadf
mov al, byte [ebx + 0xcc]
pop ecx
test al, al
jle 0x10021c14
dec al
mov byte [ebx + 0xcc], al
mov al, byte [ebx + 0xcd]
test al, al
jle 0x10021c26
dec al
mov byte [ebx + 0xcd], al
mov al, byte [ebx + 0xce]
test al, al
jle 0x10021c38
dec al
mov byte [ebx + 0xce], al
mov cl, byte [esp + 0x10]
mov dl, byte [esp + 0x12]
test esi, esi
jne 0x10021c55
test cl, cl
je 0x10021c4c
test dl, dl
jne 0x10021c55
xor eax, eax
inc eax
mov byte [ebx + 0xcd], al
cmp byte [esp + 0x11], 0
je 0x10021c93
mov eax, dword [esp + 0x14]
test eax, 0x6000000
je 0x10021c93
mov byte [ebx + 0xcd], 1
test al, 0x40
je 0x10021c93
test cl, cl
jne 0x10021c7e
and dword [ebx + 0x24], 0
and dword [ebx + 0x1c], 0
test dl, dl
jne 0x10021c8a
and dword [ebx + 0x28], 0
and dword [ebx + 0x20], 0
xorps xmm7, xmm7
movups xmmword [ebx + 0x2c], xmm7
jmp 0x10021c96
xorps xmm7, xmm7
mov eax, dword [0x1018d494]
mov ecx, ebx
mov eax, dword [eax + 0x47c4]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x10], eax
call fcn.1001d32a
mov edx, dword [esp + 0x14]
mov esi, edx
and esi, 0x1000000
je 0x10021cca
mov eax, dword [edi + 0x37b8]
mov dword [ebx + 0x50], eax
jmp 0x10021cf1
test edx, 0x6000000
je 0x10021ce4
test edx, 0x8000000
jne 0x10021ce4
movss xmm0, dword [edi + 0x37c0]
jmp 0x10021cec
movss xmm0, dword [edi + 0x379c]
movss dword [ebx + 0x50], xmm0
mov eax, dword [edi + 0x3790]
mov ecx, dword [edi + 0x3794]
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], ecx
test esi, esi
je 0x10021d3c
test edx, 0x4010000
jne 0x10021d3c
movss xmm0, dword [ebx + 0x50]
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jp 0x10021d3c
test edx, 0x400
je 0x10021d2f
movss xmm0, dword [edi + 0x3794]
jmp 0x10021d32
xorps xmm0, xmm0
movss dword [ebx + 0x44], xmm7
movss dword [ebx + 0x48], xmm0
movss xmm0, dword [ebx + 0x44]
maxss xmm0, dword [edi + 0x37d4]
maxss xmm0, dword [edi + 0x4750]
movss dword [ebx + 0x154], xmm0
mov eax, dword [edi + 0x4754]
mov dword [ebx + 0x158], eax
mov al, byte [esp + 0xf]
mov dword [esp + 0x30], eax
test dl, 0x21
jne 0x10021dfd
lea eax, [esp + 0x68]
mov ecx, ebx
push eax
call fcn.1001b059
cmp dword [edi + 0x3e4c], ebx
jne 0x10021dc7
xor eax, eax
cmp dword [edi + 0x3e80], eax
jne 0x10021dc7
cmp dword [edi + 0x3e84], eax
jne 0x10021dc7
inc eax
lea edx, [esp + 0x70]
push eax
lea ecx, [esp + 0x6c]
call fcn.10023f13
xor edx, edx
inc edx
pop ecx
test al, al
je 0x10021dca
push 2
pop eax
cmp word [edi + 0x370a], ax
jne 0x10021dca
mov byte [ebx + 0xae], dl
jmp 0x10021dca
xor edx, edx
inc edx
cmp byte [ebx + 0xae], 0
je 0x10021e04
mov cl, byte [ebx + 0xad]
test cl, cl
sete al
test cl, cl
mov byte [ebx + 0xad], al
mov ecx, ebx
mov eax, dword [esp + 0x30]
movzx eax, al
cmovne eax, edx
mov dword [esp + 0x30], eax
call fcn.100299b7
jmp 0x10021e04
mov byte [ebx + 0xad], 0
mov byte [ebx + 0xae], 0
xor eax, eax
movss xmm0, dword [ebx + 0xa0]
inc eax
movss dword [esp + 0x80], xmm0
movss xmm0, dword [ebx + 0xa4]
and dword [ebx + 0x54], 0
and dword [ebx + 0x5c], 0
movss dword [esp + 0x84], xmm0
test byte [ebx + 0xc], al
je 0x10021e42
xorps xmm2, xmm2
jmp 0x10021e5e
mov eax, dword [ebx]
mov ecx, ebx
movss xmm1, dword [eax + 0x37c8]
call fcn.1001b034
addss xmm1, xmm1
movaps xmm2, xmm0
addss xmm2, xmm1
mov ecx, ebx
call fcn.1001b0ab
addss xmm0, xmm2
mov edx, ebx
lea eax, [ebx + 0x34]
push eax
lea ecx, [esp + 0x7c]
movss dword [ebx + 0x58], xmm0
and dword [ebx + 0x60], 0
movss dword [ebx + 0xa0], xmm7
movss dword [ebx + 0xa4], xmm7
call fcn.1001fc08
test byte [esp + 0x18], 0x40
pop ecx
je 0x10021eda
cmp byte [ebx + 0xad], 0
jne 0x10021eda
xor eax, eax
inc eax
cmp byte [esp + 0x10], 0
jne 0x10021ebb
movss xmm0, dword [esp + 0x78]
movss dword [ebx + 0x24], xmm0
mov byte [esp + 0xf], al
cmp byte [esp + 0x12], 0
jne 0x10021f6a
movss xmm0, dword [esp + 0x7c]
movss dword [ebx + 0x28], xmm0
mov dword [esp + 0x30], eax
jmp 0x10021f6a
mov al, byte [ebx + 0xc4]
test al, al
jg 0x10021eed
cmp byte [ebx + 0xc5], 0
jle 0x10021f6a
cmp byte [esp + 0x10], 0
jne 0x10021f22
test al, al
jle 0x10021f22
cmp byte [ebx + 0xc7], 0
je 0x10021f0e
movss xmm0, dword [ebx + 0x24]
maxss xmm0, dword [esp + 0x78]
jmp 0x10021f14
movss xmm0, dword [esp + 0x78]
xor eax, eax
movss dword [ebx + 0x24], xmm0
inc eax
mov byte [esp + 0xf], al
jmp 0x10021f25
xor eax, eax
inc eax
cmp byte [esp + 0x12], 0
jne 0x10021f5a
cmp byte [ebx + 0xc5], 0
jle 0x10021f5a
cmp byte [ebx + 0xc7], 0
je 0x10021f4b
movss xmm0, dword [ebx + 0x28]
maxss xmm0, dword [esp + 0x7c]
jmp 0x10021f51
movss xmm0, dword [esp + 0x7c]
movss dword [ebx + 0x28], xmm0
mov dword [esp + 0x30], eax
cmp byte [ebx + 0xad], 0
jne 0x10021f6a
mov ecx, ebx
call fcn.100299b7
lea esi, [ebx + 0x24]
mov edx, ebx
push esi
lea ecx, [esp + 0x8c]
call fcn.1001f947
pop ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
mov dword [esi], ecx
mov dword [esi + 4], eax
cmp byte [ebx + 0xad], 0
mov dword [esp + 0x38], ecx
je 0x10021fd2
test dword [esp + 0x14], 0x1000000
jne 0x10021fd2
lea eax, [esp + 0x110]
mov ecx, ebx
push eax
call fcn.1001b059
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 8]
subss xmm0, dword [eax + 4]
subss xmm1, dword [eax]
movss dword [esp + 0x3c], xmm0
mov edx, dword [esp + 0x3c]
movss dword [esp + 0x38], xmm1
cmp byte [esp + 0x11], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edx
je 0x10022024
or dword [ebx + 0xc8], 0xffffffff
test ecx, 0x4000000
je 0x10022024
test ecx, 0x8000000
jne 0x10022024
cmp byte [esp + 0x13], 0
jne 0x10022024
imul edx, dword [edi + 0x47ac], 0x28
mov ecx, dword [edi + 0x47b4]
mov eax, dword [ecx + edx - 0x10]
mov ecx, dword [ecx + edx - 0xc]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x14]
test ecx, 0x1000000
je 0x10022082
mov esi, dword [esp + 0x28]
lea ecx, [esi + 0x180]
mov ax, word [ecx]
mov word [ebx + 0xba], ax
lea eax, [esp + 0x58]
push eax
call fcn.1002a66e
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x2c]
test ecx, 0x4000000
jne 0x1002208a
test al, al
jne 0x1002208a
cmp edx, 0x3000000
je 0x1002208a
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0xf0]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x14]
jmp 0x10022086
mov edx, dword [esp + 0x2c]
mov al, byte [esp + 0x13]
movss xmm1, dword [ebx + 0xd4]
ucomiss xmm1, dword [0x100b921c]
lahf
test ah, 0x44
jnp 0x100220ee
cmp byte [ebx + 0xcd], 0
jne 0x100220ee
movss xmm0, dword [ebx + 0xdc]
lea edx, [esp + 0x58]
mulss xmm0, dword [ebx + 0x1c]
mov ecx, ebx
push 0
subss xmm1, xmm0
movss xmm0, dword [ebx + 0xd8]
movss dword [esp + 0x5c], xmm1
movss xmm1, dword [ebx + 0xe0]
mulss xmm1, dword [ebx + 0x20]
subss xmm0, xmm1
movss dword [esp + 0x60], xmm0
call fcn.10023663
pop ecx
jmp 0x10022132
test ecx, 0x10000000
jne 0x1002211c
test ecx, 0x4000000
je 0x10022108
test al, al
jne 0x10022108
cmp byte [esp + 0x27], al
jg 0x1002211c
test ecx, 0x2000000
je 0x10022136
test al, al
jne 0x10022136
cmp edx, 0x3000000
je 0x10022136
mov edx, ebx
lea ecx, [esp + 0x58]
call fcn.100264ba
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
movss xmm3, dword [edi + 0x3848]
movss xmm2, dword [edi + 0x3844]
maxss xmm3, dword [edi + 0x3850]
movss xmm7, dword [eax + 0x14]
movss xmm5, dword [eax + 0x18]
addss xmm7, dword [eax + 0x1c]
addss xmm5, dword [eax + 0x20]
movss xmm0, dword [eax + 4]
movss xmm6, dword [eax + 8]
movaps xmm4, xmm0
maxss xmm2, dword [edi + 0x384c]
addss xmm4, dword [eax + 0xc]
movaps xmm1, xmm6
movss dword [esp + 0x68], xmm0
addss xmm1, dword [eax + 0x10]
subss xmm5, xmm3
movss dword [esp + 0x6c], xmm6
addss xmm3, dword [eax + 0x18]
subss xmm7, xmm2
movss dword [esp + 0x70], xmm4
addss xmm2, dword [eax + 0x14]
movss dword [esp + 0x74], xmm1
movss dword [esp + 0xa4], xmm5
movss dword [esp + 0x9c], xmm3
movss dword [esp + 0xa0], xmm7
movss dword [esp + 0x98], xmm2
jne 0x10022262
test ecx, 0x1000000
jne 0x10022262
subss xmm4, xmm0
xorps xmm0, xmm0
comiss xmm4, xmm0
jbe 0x10022262
subss xmm1, xmm6
comiss xmm1, xmm0
jbe 0x10022262
mov eax, dword [0x1018d494]
movss xmm0, dword [ebx + 0x20]
cmp byte [eax + 0x67], 0
je 0x10022233
xor eax, eax
inc eax
test byte [ebx + 0xc], al
jne 0x10022233
mov eax, dword [ebx]
mov ecx, ebx
movss xmm1, dword [eax + 0x37c8]
call fcn.1001b034
mov ecx, dword [esp + 0x14]
addss xmm1, xmm1
addss xmm0, xmm1
subss xmm2, dword [ebx + 0x1c]
subss xmm3, xmm0
comiss xmm3, dword [ebx + 0x18]
ja 0x1002224a
movaps xmm3, xmm5
minss xmm3, dword [ebx + 0x18]
comiss xmm2, dword [ebx + 0x14]
ja 0x10022258
movaps xmm2, xmm7
minss xmm2, dword [ebx + 0x14]
movss dword [ebx + 0x14], xmm2
movss dword [ebx + 0x18], xmm3
cvttss2si eax, dword [ebx + 0x14]
movd xmm1, eax
cvttss2si eax, dword [ebx + 0x18]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [ebx + 0x14], xmm1
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x18], xmm0
test ecx, 0x1000000
je 0x10022296
movss xmm0, dword [edi + 0x37b4]
jmp 0x100222b6
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x100222ae
movss xmm0, dword [edi + 0x37bc]
jmp 0x100222b6
movss xmm0, dword [edi + 0x3798]
xor dl, dl
movss dword [ebx + 0x4c], xmm0
mov dword [esp + 0x1c], edx
cmp byte [esp + 0x11], dl
je 0x10022325
test ecx, 0x1000
jne 0x10022325
test ecx, 0x4000000
je 0x100222e0
xor eax, eax
inc eax
mov byte [esp + 0x1c], al
jmp 0x100222f3
push 1
test ecx, 0x3000000
movzx edx, dl
pop eax
cmove edx, eax
mov dword [esp + 0x1c], edx
call fcn.1002605f
test eax, eax
je 0x10022325
mov edx, eax
mov ecx, ebx
call fcn.10023627
test al, al
jne 0x10022325
mov byte [esp + 0x1c], al
cmp ebx, dword [ebx + 0x308]
jne 0x10022325
mov ecx, ebx
call fcn.1002146f
mov edx, eax
mov ecx, ebx
call fcn.100233a7
mov ecx, dword [esp + 0x20]
lea edi, [esp + 0xa8]
or dword [esp + 0x54], 0xffffffff
xor eax, eax
stosd dword es:[edi], eax
mov esi, dword [esp + 0x44]
movss xmm2, dword [ecx + 0x3bb8]
movaps xmm1, xmm2
mulss xmm2, dword [0x100b9120]
stosd dword es:[edi], eax
mulss xmm1, dword [0x100b9170]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
movss xmm0, dword [ebx + 0x4c]
addss xmm0, dword [0x100b916c]
cmp byte [ecx + 0x66], al
setne al
inc eax
cmp byte [esi + 0xad], 0
addss xmm0, xmm2
mov dword [esp + 0x38], eax
maxss xmm1, xmm0
cvttss2si ebx, xmm1
jne 0x100223bd
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0xac]
push ecx
push eax
lea eax, [esp + 0x60]
mov ecx, esi
push eax
lea edx, [esp + 0x88]
call fcn.1001fede
add esp, 0x10
test al, al
je 0x100223bd
xor eax, eax
inc eax
mov dl, al
mov ah, al
jmp 0x100223c5
mov ah, byte [esp + 0xf]
mov edx, dword [esp + 0x30]
mov al, byte [esp + 0x54]
mov byte [esi + 0xb5], al
cmp byte [esi + 0xad], 0
jne 0x10022560
cmp dword [esp + 0x4c], 0
movss xmm0, dword [esi + 0x60]
addss xmm0, dword [esi + 0x58]
movss xmm3, dword [esi + 0x1d8]
movss xmm4, dword [esi + 0x1dc]
subss xmm3, dword [esi + 0x1d0]
subss xmm4, dword [esi + 0x1d4]
movss xmm5, dword [esi + 0x28]
movss xmm6, dword [esi + 0x24]
subss xmm5, xmm0
xorps xmm0, xmm0
addss xmm3, dword [esp + 0x80]
addss xmm4, dword [esp + 0x84]
jne 0x10022438
xorps xmm2, xmm2
xorps xmm1, xmm1
jmp 0x10022454
movss xmm2, dword [esi + 0x44]
movss xmm1, dword [esi + 0x48]
addss xmm2, xmm2
addss xmm1, xmm1
addss xmm2, dword [esi + 0x2c]
addss xmm1, dword [esi + 0x30]
test ah, ah
jne 0x1002245b
movaps xmm6, xmm3
test dl, dl
jne 0x10022462
movaps xmm5, xmm4
mov eax, dword [esp + 0x14]
test eax, 0x4000
jne 0x1002247e
comiss xmm1, xmm5
jbe 0x10022476
test al, 8
je 0x1002247e
xor edx, edx
mov byte [esp + 0xf], dl
jmp 0x10022487
xor edx, edx
inc edx
mov byte [esp + 0xf], dl
xor edx, edx
mov cl, byte [esp + 0xf]
mov byte [esi + 0xa9], cl
mov ecx, dword [esp + 0x20]
test eax, 0x8000
jne 0x100224cf
cmp byte [esp + 0xf], 0
je 0x100224ad
movss xmm3, dword [ecx + 0x37fc]
jmp 0x100224b0
xorps xmm3, xmm3
subss xmm6, xmm3
comiss xmm2, xmm6
jbe 0x100224c9
and eax, 0x808
cmp eax, 0x800
mov eax, dword [esp + 0x14]
je 0x100224cf
mov byte [esp + 0xf], dl
jmp 0x100224d6
xor ecx, ecx
inc ecx
mov byte [esp + 0xf], cl
mov cl, byte [esp + 0xf]
mov byte [esi + 0xa8], cl
test cl, cl
mov ecx, dword [esp + 0x20]
je 0x10022505
cmp byte [esi + 0xa9], 0
jne 0x10022505
comiss xmm1, xmm5
jbe 0x100224ff
test al, 8
jne 0x100224ff
xor eax, eax
lea edx, [eax + 1]
mov byte [esi + 0xa9], dl
cmp byte [esi + 0xa8], 0
je 0x10022518
movss xmm1, dword [ecx + 0x37fc]
jmp 0x1002251b
xorps xmm1, xmm1
cmp byte [esi + 0xa9], 0
je 0x1002252c
movss xmm0, dword [ecx + 0x37fc]
movss dword [esi + 0xa0], xmm0
movss dword [esi + 0xa4], xmm1
movss xmm0, dword [esi + 0xa0]
addss xmm0, dword [esi + 0x5c]
movss dword [esi + 0x5c], xmm0
movss xmm0, dword [esi + 0xa4]
addss xmm0, dword [esi + 0x60]
movss dword [esi + 0x60], xmm0
mov eax, dword [esp + 0x14]
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x10022586
cmp dword [esp + 0x2c], 0x3000000
je 0x10022586
mov esi, dword [esp + 0x28]
add esi, 0x210
jmp 0x1002258a
lea esi, [esp + 0x68]
lea edi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x68]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x48]
mov ecx, esi
movss xmm4, dword [esi + 0x14]
movss xmm5, dword [esi + 0x18]
movss xmm2, dword [esi + 0x1c]
movss xmm3, dword [esi + 0x20]
call fcn.1001b059
movss dword [esi + 0x1c0], xmm4
addss xmm2, xmm4
movss dword [esi + 0x1c4], xmm5
addss xmm3, xmm5
mov ecx, dword [esp + 0x14]
xor edx, edx
mov edi, dword [esp + 0x20]
mov eax, ecx
and eax, 0x401
inc edx
movss dword [esi + 0x1c8], xmm2
movss dword [esi + 0x1cc], xmm3
movss xmm1, dword [esi + 0x1c0]
movss xmm0, dword [esi + 0x1c4]
movss xmm3, dword [esp + 0x58]
movss xmm4, dword [esp + 0x5c]
maxss xmm1, xmm3
maxss xmm0, xmm4
movss dword [esi + 0x1c0], xmm1
movss dword [esi + 0x1c4], xmm0
movss xmm0, dword [esi + 0x1cc]
movss xmm1, dword [esi + 0x1c8]
minss xmm0, dword [esp + 0x64]
minss xmm1, dword [esp + 0x60]
movss dword [esi + 0x1cc], xmm0
movss dword [esi + 0x1c8], xmm1
movss xmm0, dword [esi + 0x54]
addss xmm0, dword [esi + 0x14]
movss dword [esi + 0x1d0], xmm0
movss xmm0, dword [esi + 0x58]
addss xmm0, dword [esi + 0x18]
movss dword [esi + 0x1d4], xmm0
movss xmm0, dword [esi + 0x1c]
addss xmm0, dword [esi + 0x14]
subss xmm0, dword [esi + 0x5c]
movss dword [esi + 0x1d8], xmm0
movss xmm0, dword [esi + 0x20]
addss xmm0, dword [esi + 0x18]
subss xmm0, dword [esi + 0x60]
movss dword [esi + 0x1dc], xmm0
cmp eax, edx
jne 0x100226ad
movss xmm5, dword [esi + 0x50]
jmp 0x100226b5
movss xmm5, dword [edi + 0x37d0]
movss xmm0, dword [esi + 0x44]
movss xmm2, dword [0x100b9138]
mulss xmm0, xmm2
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0x1d0]
addss xmm0, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, dword [esi + 0x50]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x1e0], xmm0
movss xmm0, dword [esi + 0x1d4]
addss xmm0, xmm2
addss xmm0, xmm5
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x1e4], xmm0
movss xmm0, dword [esi + 0x44]
mulss xmm0, xmm2
movss xmm1, dword [esi + 0x1d8]
addss xmm1, xmm2
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm0, dword [esi + 0x50]
subss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x1e8], xmm0
movss xmm0, dword [esi + 0x1dc]
addss xmm0, xmm2
subss xmm0, dword [esi + 0x50]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x1ec], xmm0
movss xmm0, dword [esi + 0x1e4]
comiss xmm4, xmm0
jbe 0x1002278e
movaps xmm1, xmm4
jmp 0x10022798
movss xmm1, dword [esp + 0x64]
minss xmm1, xmm0
movss xmm2, dword [esi + 0x1e0]
comiss xmm3, xmm2
jbe 0x100227aa
movaps xmm0, xmm3
jmp 0x100227b4
movss xmm0, dword [esp + 0x60]
minss xmm0, xmm2
movss dword [esi + 0x1e0], xmm0
movss dword [esi + 0x1e4], xmm1
movss xmm0, dword [esi + 0x1ec]
comiss xmm4, xmm0
ja 0x100227db
movss xmm4, dword [esp + 0x64]
minss xmm4, xmm0
movss xmm0, dword [esi + 0x1e8]
comiss xmm3, xmm0
ja 0x100227f2
movss xmm3, dword [esp + 0x60]
minss xmm3, xmm0
movss dword [esi + 0x1e8], xmm3
xorps xmm2, xmm2
movss dword [esi + 0x1ec], xmm4
movss xmm0, dword [esi + 0x1c]
comiss xmm0, xmm2
jbe 0x10022821
test ecx, 0x2000040
jne 0x10022821
mulss xmm0, dword [0x100b9140]
jmp 0x10022831
movss xmm0, dword [edi + 0x3bb8]
mulss xmm0, dword [0x100b91c4]
cvttss2si eax, xmm0
mov edx, esi
lea ecx, [esp + 0x88]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x240], xmm0
movss xmm1, dword [esi + 0x44]
movss xmm0, dword [esi + 0x1d8]
addss xmm1, xmm1
subss xmm0, dword [esi + 0x1d0]
addss xmm1, dword [esi + 0x2c]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [esi + 0x80], xmm0
movss xmm1, dword [esi + 0x48]
movss xmm0, dword [esi + 0x1dc]
addss xmm1, xmm1
subss xmm0, dword [esi + 0x1d4]
addss xmm1, dword [esi + 0x30]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [esi + 0x84], xmm0
call fcn.10025a66
movss xmm0, dword [0x100b921c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
movss dword [esi + 0x88], xmm0
movss dword [esi + 0x8c], xmm0
and dword [esi + 0x68], 0
and dword [esi + 0x64], 0
mov eax, dword [edi + 0x3bb4]
mov ecx, dword [esi + 0x264]
mov eax, dword [eax + 0x30]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.100306cf
push 0
lea edx, [esp + 0x64]
lea ecx, [esp + 0x5c]
call fcn.1001e8e8
mov eax, dword [esp + 0x18]
xor edx, edx
mov byte [esp + 0x14], dl
pop ecx
test eax, 0x1000000
je 0x100229d5
test eax, 0x4000000
jne 0x100229d5
cmp dword [esp + 0x2c], 0x3000000
je 0x100229d5
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x180]
cmp ecx, 2
jl 0x1002299d
mov eax, dword [eax + 0x188]
mov eax, dword [eax + ecx*4 - 8]
test eax, eax
je 0x1002299d
movss xmm0, dword [eax + 0x18]
addss xmm0, dword [eax + 0x20]
movss xmm2, dword [eax + 0x14]
movss xmm3, dword [esi + 0x14]
movss xmm1, dword [esi + 0x18]
addss xmm2, dword [eax + 0x1c]
comiss xmm0, dword [esi + 0x18]
addss xmm3, dword [esi + 0x1c]
addss xmm1, dword [esi + 0x20]
jbe 0x1002299d
comiss xmm1, dword [eax + 0x18]
jbe 0x1002299d
comiss xmm2, dword [esi + 0x14]
jbe 0x1002299d
comiss xmm3, dword [eax + 0x14]
jbe 0x1002299d
xor eax, eax
inc eax
mov byte [esp + 0xf], al
jmp 0x100229a1
mov byte [esp + 0xf], dl
mov eax, dword [esi + 0x264]
imul ecx, dword [eax], 0x30
mov eax, dword [eax + 8]
cmp dword [ecx + eax - 0x10], edx
jne 0x100229d5
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x264]
cmp dword [eax + 0x18], edx
jle 0x100229d5
cmp byte [esp + 0xf], dl
jne 0x100229d5
xor ecx, ecx
mov dword [esi + 0x264], eax
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [edi + 0x491c]
test ecx, ecx
jne 0x100229e5
mov ecx, dword [edi + 0x47c8]
cmp byte [esp + 0x1c], dl
jne 0x10022a03
test ecx, ecx
je 0x100229fd
mov eax, dword [esi + 0x310]
cmp eax, dword [ecx + 0x310]
je 0x10022a03
mov byte [esp + 0x58], dl
jmp 0x10022a0a
xor eax, eax
inc eax
mov byte [esp + 0x58], al
movd xmm0, ebx
lea eax, [esp + 0xa8]
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0x68]
push ecx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push eax
push dword [esp + 0x40]
push ecx
push dword [esp + 0x68]
mov ecx, ebx
call fcn.10020ba9
add esp, 0x14
cmp byte [esp + 0x10], 0
je 0x10022a4d
lea eax, [ebx + 0x268]
mov dword [ebx + 0x264], eax
mov ecx, dword [esp + 0x14]
xor eax, eax
movss xmm3, dword [ebx + 0x3c]
mov edx, ecx
shr edx, 3
inc eax
not dl
xorps xmm4, xmm4
and dl, al
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x10022aaa
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
jne 0x10022a83
movss xmm3, dword [ebx + 0x2c]
jmp 0x10022a86
xorps xmm3, xmm3
movss xmm0, dword [ebx + 0x44]
movss xmm1, dword [ebx + 0x1c]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x5c]
addss xmm0, dword [ebx + 0x54]
subss xmm1, xmm0
maxss xmm3, xmm1
movss xmm2, dword [ebx + 0x40]
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x10022aea
test dl, dl
je 0x10022ac3
movss xmm2, dword [ebx + 0x30]
jmp 0x10022ac6
xorps xmm2, xmm2
movss xmm0, dword [ebx + 0x48]
movss xmm1, dword [ebx + 0x20]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x60]
addss xmm0, dword [ebx + 0x58]
subss xmm1, xmm0
maxss xmm2, xmm1
movss xmm1, dword [ebx + 0x44]
lea esi, [ebx + 0x1f0]
maxss xmm1, dword [ebx + 0x50]
movss xmm0, dword [ebx + 0x1d0]
lea edi, [ebx + 0x200]
subss xmm0, dword [ebx + 0x78]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi], xmm0
movss xmm1, dword [ebx + 0x48]
movss xmm0, dword [ebx + 0x1d4]
subss xmm0, dword [ebx + 0x7c]
maxss xmm1, dword [ebx + 0x50]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x1f4], xmm0
addss xmm3, dword [esi]
movss dword [ebx + 0x1f8], xmm3
addss xmm2, dword [ebx + 0x1f4]
movss dword [ebx + 0x1fc], xmm2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm0, dword [ebx + 0x14]
subss xmm0, dword [ebx + 0x78]
addss xmm0, dword [ebx + 0x44]
addss xmm0, dword [ebx + 0x54]
movss dword [ebx + 0x220], xmm0
movss xmm0, dword [ebx + 0x18]
subss xmm0, dword [ebx + 0x7c]
addss xmm0, dword [ebx + 0x48]
addss xmm0, dword [ebx + 0x58]
movss dword [ebx + 0x224], xmm0
movss xmm1, dword [ebx + 0x3c]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x10022bd4
movss xmm0, dword [ebx + 0x44]
movss xmm1, dword [ebx + 0x1c]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x5c]
addss xmm0, dword [ebx + 0x54]
subss xmm1, xmm0
addss xmm1, dword [ebx + 0x220]
movss dword [ebx + 0x228], xmm1
movss xmm1, dword [ebx + 0x40]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x10022c12
movss xmm0, dword [ebx + 0x48]
movss xmm1, dword [ebx + 0x20]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x60]
addss xmm0, dword [ebx + 0x58]
subss xmm1, xmm0
addss xmm1, dword [ebx + 0x224]
movss dword [ebx + 0x22c], xmm1
movss xmm0, dword [ebx + 0x54]
addss xmm0, dword [ebx + 0x44]
subss xmm0, dword [ebx + 0x78]
movss dword [ebx + 0x134], xmm0
and dword [ebx + 0x13c], 0
and dword [ebx + 0x138], 0
movss xmm3, dword [ebx + 0x44]
movss xmm0, dword [ebx + 0x14]
movss xmm2, dword [ebx + 0x48]
cvtps2pd xmm0, xmm0
cvtps2pd xmm3, xmm3
cvtps2pd xmm2, xmm2
addsd xmm3, xmm0
movss xmm0, dword [ebx + 0x78]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [ebx + 0x54]
cvtps2pd xmm0, xmm0
addsd xmm3, xmm0
movss xmm0, dword [ebx + 0x18]
cvtps2pd xmm0, xmm0
addsd xmm3, qword [0x100b90f8]
addsd xmm2, xmm0
movss xmm0, dword [ebx + 0x7c]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
subsd xmm2, xmm0
movss xmm0, dword [ebx + 0x58]
movss dword [ebx + 0x100], xmm1
cvtps2pd xmm0, xmm0
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
movss dword [ebx + 0x104], xmm0
movss xmm0, dword [ebx + 0x100]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [ebx + 0x104]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
subsd xmm2, xmm0
movss dword [ebx + 0x140], xmm1
cvtpd2ps xmm0, xmm2
movss dword [ebx + 0x144], xmm0
mov edx, dword [ebx + 0x100]
mov eax, edx
mov esi, dword [ebx + 0x104]
mov ecx, esi
mov dword [ebx + 0xf0], eax
mov dword [ebx + 0xf4], ecx
mov dword [ebx + 0xf8], edx
lea edx, [ebx + 0x15c]
mov dword [ebx + 0xfc], esi
lea edi, [edx + 0x12]
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0x104]
mov dword [ebx + 0x108], eax
mov dword [ebx + 0x10c], ecx
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0x104]
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
xor ecx, ecx
movups xmmword [ebx + 0x118], xmm4
and dword [ebx + 0x12c], 0
and dword [ebx + 0x128], 0
mov esi, dword [esp + 0x20]
mov word [ebx + 0x130], cx
mov dword [ebx + 0x148], ecx
mov ax, word [ebx + 0x14e]
mov word [ebx + 0x14c], ax
xor eax, eax
mov word [ebx + 0x14e], ax
mov byte [ebx + 0x150], cl
movss xmm0, dword [ebx + 0x84]
comiss xmm0, xmm4
seta al
mov byte [ebx + 0x151], al
mov byte [ebx + 0x152], cl
movss xmm0, dword [esi + 0x37d4]
cmp byte [esp + 0x11], cl
je 0x10022dc8
mov dword [edi], ecx
mov dword [edi + 4], ecx
cvttss2si eax, xmm0
push ecx
mov ecx, edx
mov word [edx + 8], ax
call fcn.10038304
xor ecx, ecx
lea edx, [ebx + 0x15c]
mov dword [edi], ecx
mov dword [edi + 4], ecx
lea edi, [ebx + 0x180]
mov eax, dword [edx + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [ebx + 0x178], ecx
mov dword [ebx + 0x17c], ecx
cmp dword [edi + 4], ecx
jge 0x10022e16
push ecx
mov ecx, edi
call fcn.100182c6
push eax
mov ecx, edi
call fcn.1002a69e
xor ecx, ecx
mov dword [edi], ecx
lea eax, [ebx + 0x244]
mov dword [ebx + 0x18c], eax
xor edx, edx
mov eax, dword [esp + 0x28]
inc edx
mov dword [ebx + 0x190], ecx
mov dword [ebx + 0x198], edx
test eax, eax
je 0x10022e43
mov eax, dword [eax + 0x198]
jmp 0x10022e45
mov eax, edx
mov dword [ebx + 0x19c], eax
lea edi, [ebx + 0x1a8]
mov eax, dword [ebx + 0x240]
mov dword [ebx + 0x1a0], eax
mov dword [ebx + 0x1a4], 0xbf800000
cmp dword [edi + 4], ecx
jge 0x10022e7e
push ecx
mov ecx, edi
call fcn.100182c6
push eax
mov ecx, edi
call fcn.1002a69e
xor ecx, ecx
mov dword [edi], ecx
lea edi, [ebx + 0x1b4]
cmp dword [edi + 4], ecx
jge 0x10022e9d
push ecx
mov ecx, edi
call fcn.100182c6
push eax
mov ecx, edi
call fcn.1002a69e
xor ecx, ecx
mov dword [edi], ecx
mov al, byte [ebx + 0xc4]
test al, al
jle 0x10022eb1
dec al
mov byte [ebx + 0xc4], al
mov al, byte [ebx + 0xc5]
test al, al
jle 0x10022ec3
dec al
mov byte [ebx + 0xc5], al
cmp byte [esp + 0x1c], 0
je 0x10022eda
mov ecx, ebx
call fcn.10023459
xor dl, dl
mov ecx, ebx
call fcn.100272b9
movss xmm4, dword [esp + 0x74]
xor ecx, ecx
movss xmm2, dword [esp + 0x70]
inc ecx
movss xmm3, dword [esp + 0x6c]
movss xmm5, dword [esp + 0x68]
test byte [esp + 0x14], cl
jne 0x10022f5f
movaps xmm0, xmm5
movss dword [esp + 0x8c], xmm3
addss xmm0, dword [ebx + 0x50]
push ecx
push dword [esp + 0x54]
lea edx, [esp + 0x90]
movss dword [esp + 0x9c], xmm4
mov ecx, ebx
movss dword [esp + 0x90], xmm0
movaps xmm0, xmm2
subss xmm0, dword [ebx + 0x50]
movss dword [esp + 0x98], xmm0
call fcn.100210a2
movss xmm2, dword [esp + 0x78]
movss xmm3, dword [esp + 0x74]
movss xmm4, dword [esp + 0x7c]
movss xmm5, dword [esp + 0x70]
pop ecx
pop ecx
xor ecx, ecx
inc ecx
mov edx, dword [0x1018d494]
xor eax, eax
mov dword [ebx + 0x230], eax
movss xmm1, dword [edx + 0x37ec]
movss xmm0, dword [edx + 0x37f0]
subss xmm5, xmm1
movss xmm6, dword [edx + 0xdc0]
addss xmm2, xmm1
addss xmm4, xmm0
subss xmm3, xmm0
comiss xmm6, xmm5
jb 0x10022fb5
movss xmm0, dword [edx + 0xdc4]
comiss xmm0, xmm3
jb 0x10022fb5
comiss xmm2, xmm6
jbe 0x10022fb5
comiss xmm4, xmm0
jbe 0x10022fb5
mov edi, ecx
jmp 0x10022fb7
xor edi, edi
mov ecx, dword [esi + 0x46a0]
lea esi, [esp + 0x68]
mov eax, dword [ebx + 0x70]
mov dword [edx + 0x46c4], edi
lea edi, [edx + 0x46d8]
movsd dword es:[edi], dword [esi]
mov dword [edx + 0x46bc], eax
mov dword [edx + 0x46c0], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [edx + 0x46c8]
lea esi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
jmp 0x10022ffb
mov ecx, ebx
call fcn.1001d32a
xor eax, eax
lea edx, [ebx + 0x1e8]
inc eax
lea ecx, [ebx + 0x1e0]
push eax
call fcn.1001e8e8
mov edx, dword [esp + 0x38]
xor eax, eax
mov byte [ebx + 0xac], al
inc word [ebx + 0xb6]
pop ecx
mov dword [edi + 0x46f8], eax
cmp dword [esp + 0x48], edx
je 0x1002319b
mov ecx, dword [esp + 0x14]
test ecx, 0x1000000
je 0x10023106
test cl, 0x40
jne 0x100230c6
cmp byte [ebx + 0xc4], al
jg 0x100230c6
cmp byte [ebx + 0xc5], al
jg 0x100230c6
test ecx, 0x800000
je 0x1002308c
cmp byte [edi + 0x4804], al
je 0x1002308c
mov ecx, dword [edi + 0x47c8]
test ecx, ecx
je 0x1002308c
mov eax, dword [ecx + 0x314]
cmp eax, dword [ebx + 0x314]
jne 0x1002308a
xor edx, edx
inc edx
xor eax, eax
mov cl, dl
jmp 0x10023091
xor eax, eax
xor edx, edx
mov cl, al
inc edx
cmp byte [edi + 0x5a8c], 0
jne 0x100230c6
test cl, cl
jne 0x100230c6
movss xmm0, dword [ebx + 0x1c0]
comiss xmm0, dword [ebx + 0x1c8]
jae 0x100230c0
movss xmm0, dword [ebx + 0x1c4]
comiss xmm0, dword [ebx + 0x1cc]
jb 0x100230c6
mov byte [ebx + 0xcc], dl
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10023106
cmp byte [ecx + 0xad], 0
jne 0x100230e0
cmp byte [ecx + 0xcc], 0
jle 0x100230e9
xor edx, edx
inc edx
mov byte [ebx + 0xcc], dl
cmp byte [ecx + 0xad], 0
jne 0x100230fb
cmp byte [ecx + 0xcd], 0
jle 0x10023106
xor ecx, ecx
inc ecx
mov byte [ebx + 0xcd], cl
jmp 0x10023109
xor ecx, ecx
inc ecx
xorps xmm0, xmm0
comiss xmm0, dword [edi + 0x3788]
jb 0x1002311b
mov byte [ebx + 0xcc], cl
cmp byte [ebx + 0xcc], 0
jg 0x1002313c
cmp byte [ebx + 0xcd], 0
jg 0x1002313c
cmp byte [ebx + 0xce], 0
mov dl, al
jg 0x1002313e
mov cl, al
jmp 0x1002313e
mov dl, cl
mov byte [ebx + 0xb1], cl
mov cl, byte [ebx + 0xcf]
test cl, cl
jle 0x1002315d
dec cl
mov byte [ebx + 0xcf], cl
or dword [ebx + 0xc], 0xc0200
cmp byte [ebx + 0xad], 0
jne 0x10023173
cmp byte [ebx + 0xaa], 0
je 0x10023173
test dl, dl
je 0x10023195
cmp byte [ebx + 0xc4], 0
jg 0x10023195
cmp byte [ebx + 0xc5], 0
jg 0x10023195
cmp byte [ebx + 0xcd], 0
push 1
movzx eax, al
pop ecx
cmovle eax, ecx
mov byte [ebx + 0xaf], al
cmp byte [ebx + 0xb2], 0
jne 0x100231ee
cmp byte [edi + 0x6c], 0
je 0x100231b1
cmp dword [esp + 0x4c], 0
je 0x100231c6
cmp byte [edi + 0x6d], 0
je 0x100231ee
movsx eax, byte [edi + 0x5ae2]
cmp eax, dword [edi + 0x3e24]
jne 0x100231ee
mov al, byte [ebx + 0xc4]
test al, al
jle 0x100231d8
inc al
mov byte [ebx + 0xc4], al
mov al, byte [ebx + 0xc5]
test al, al
jle 0x100231ea
inc al
mov byte [ebx + 0xc5], al
xor al, al
jmp 0x100231f8
cmp byte [ebx + 0xaf], 0
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret