Function at 0x100208b0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fef0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100af010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x58], edi
mov esi, dword [0x100aff30]
mov eax, esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], esi
mov eax, dword [eax + 0x3fe0]
and byte [edi + 0xa8], 0xfb
cmp dword [edi + 0x18], 0
mov dword [edi + 0x88], eax
mov dword [edi + 0x80], 0
mov dword [edi + 0x7c], 0
jne 0x100209f7
call fcn.100205d0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
mov ecx, edi
call fcn.10020580
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov esi, dword [ebp - 0x30]
cmp ecx, 1
mov edx, dword [ebp - 0x34]
cmove eax, esi
mov dword [edi + 0x7c], edx
cmp dword [edi + 0x94], 0
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], ecx
jne 0x10020982
test esi, esi
je 0x100209d3
mov eax, dword [esi]
mov dword [edi + 0x94], eax
test esi, esi
je 0x100209d3
mov eax, dword [esi + 0x2c]
mov ecx, 1
mov eax, dword [eax]
movups xmm0, xmmword [eax + 0x18]
movups xmmword [edi + 0x50], xmm0
movups xmm0, xmmword [eax + 0x28]
movups xmmword [edi + 0x60], xmm0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x3c], eax
cmp eax, ecx
jle 0x100209d3
mov eax, dword [esi + 0x2c]
add eax, 4
mov esi, dword [eax]
cmp byte [esi + 0x35], 0
je 0x100209c3
inc ecx
add eax, 4
cmp ecx, dword [ebp - 0x3c]
jl 0x100209b0
jmp 0x100209d3
movups xmm0, xmmword [esi + 0x18]
movups xmmword [edi + 0x50], xmm0
movups xmm0, xmmword [esi + 0x28]
movups xmmword [edi + 0x60], xmm0
test edx, edx
je 0x100209ee
nop word [eax + eax]
or byte [edx + 0xa8], 0x20
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x100209e0
mov esi, dword [0x100aff30]
mov dword [ebp - 0x44], esi
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x10020a5a
mov eax, dword [edi + 0x10]
shr eax, 0xc
test al, 1
je 0x10020a5a
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x94]
test eax, eax
je 0x10020a26
mov ecx, eax
call fcn.10008350
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 1
mov eax, dword [ecx + 8]
test eax, eax
je 0x10020a3e
mov ecx, eax
call fcn.10008350
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.10008350
mov esi, dword [0x100aff30]
mov dword [edi + 0x30], 0
mov dword [ebp - 0x44], esi
mov eax, dword [edi + 0x18]
xor dl, dl
test eax, eax
jne 0x10020c1a
test dword [edi + 0x10], 0x400
jne 0x10020c1a
mov ecx, dword [edi + 0x24]
cmp ecx, 1
jg 0x10020a99
cmp dword [edi + 0x1c], eax
jne 0x10020a99
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x46], dl
jne 0x10020a99
test ecx, ecx
je 0x10020a97
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x34], dl
jne 0x10020a99
mov dl, 1
cmp dword [edi + 0x84], 0
je 0x10020aaa
test dl, dl
je 0x10020c17
cmp ecx, 1
jne 0x10020b78
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0xa4]
and eax, 0xfffffebf
mov dword [edi + 0x40], ecx
mov ecx, dword [edi + 0x74]
or eax, 0x80
and eax, 0xffffffd7
or eax, 0x10
and eax, 0xfffffffa
or eax, 2
mov dword [edi + 0xa4], eax
mov eax, ecx
test ecx, ecx
je 0x10020b12
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x4b90], ecx
jne 0x10020b16
xor edx, edx
mov ecx, esi
call fcn.10012540
mov eax, dword [edi + 0x74]
test eax, eax
je 0x10020b6f
mov ecx, dword [ebp - 0x4c]
test dword [ecx + 0x5fd4], 0x200
je 0x10020b42
push dword [esi + 4]
mov eax, dword [eax + 0x38]
push dword [esi + 8]
push dword [eax]
push dword [edi]
push str._viewport__Node__08X_transfer_Viewport__08X___08X_to_Window__s_n
call fcn.10027060
mov eax, dword [edi + 0x74]
add esp, 0x14
mov ecx, dword [eax + 0x38]
mov dword [esi + 0x38], ecx
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x74]
cmp byte [eax + 0xe6], 0
je 0x10020b6f
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 0x48], esi
mov byte [esi + 0xe6], 1
mov eax, dword [esi + 0x3c]
mov dword [edi + 0xa0], eax
mov ecx, edi
call fcn.100204c0
mov al, byte [edi + 0xa8]
and al, 0xbf
mov dword [edi + 0x14], 1
and al, 0xe7
mov dword [edi + 0x9c], 0
test byte [edi + 0xa9], 1
mov byte [edi + 0xa8], al
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x3fe0]
mov dword [edi + 0x8c], eax
je 0x1002166a
cmp dword [edi + 0x24], 1
jne 0x1002166a
mov eax, dword [edi + 0x2c]
mov esi, dword [0x100aff30]
mov edi, dword [eax]
mov ecx, edi
call fcn.100084f0
mov eax, dword [ebp - 0x58]
movss xmm1, dword [esi + 0x37dc]
movss xmm0, dword [esi + 0x37e0]
subss xmm1, dword [eax + 0x34]
subss xmm0, dword [eax + 0x38]
mov dword [esi + 0x4074], edi
movss dword [esi + 0x40d0], xmm1
movss dword [esi + 0x40d4], xmm0
and byte [eax + 0xa9], 0xfe
jmp 0x1002166a
mov eax, dword [edi + 0x18]
mov dl, byte [edi + 0xa8]
test dl, 1
je 0x10020c90
cmp dword [edi + 0x74], 0
jne 0x10020c90
test eax, eax
jne 0x10020c90
test dword [edi + 0x10], 0x400
jne 0x10020c90
cmp dword [edi + 0x1c], eax
jne 0x10020c90
cmp dword [edi + 0x98], eax
je 0x10020c6d
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x3c], eax
cmp ecx, eax
je 0x10020c6d
mov eax, dword [ecx]
mov esi, dword [edi + 0x98]
cmp dword [eax + 8], esi
mov esi, dword [ebp - 0x44]
je 0x10020c72
add ecx, 4
cmp ecx, dword [ebp - 0x3c]
jne 0x10020c55
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x104], 0
jg 0x10020c84
cmp byte [eax + 0x105], 0
jle 0x10020c90
mov dword [edi + 0x14], 2
jmp 0x1002166a
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
test ecx, ecx
jle 0x10020ca8
test eax, 0x4000
jne 0x10020ca8
mov al, 0x10
jmp 0x10020caa
xor al, al
and dl, 0xef
or dl, al
and dl, 0xf7
mov byte [edi + 0xa8], dl
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp - 0x54]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x40], ecx
cmp eax, ecx
je 0x10020d15
mov esi, eax
nop word [eax + eax]
mov edx, dword [esi]
mov al, byte [edi + 0xa8]
mov cl, byte [edx + 0xf1]
shl cl, 3
or cl, al
xor cl, al
and cl, 8
xor cl, al
cmp dword [edi + 0x24], 1
mov byte [edi + 0xa8], cl
mov al, byte [edx + 0x3a9]
setg cl
and al, 0xfe
add esi, 4
or cl, al
mov byte [edx + 0x3a9], cl
cmp esi, dword [ebp - 0x40]
jne 0x10020cd0
mov edx, dword [edi + 0x10]
mov esi, dword [ebp - 0x44]
test dword [ebp - 0x54], 0x8000
je 0x10020d25
and byte [edi + 0xa8], 0xf7
xor ecx, ecx
shr edx, 0xa
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x4e], cl
test dl, 1
je 0x10020d40
mov edx, dword [edi + 0x74]
mov dword [ebp - 0x40], edx
jmp 0x1002100c
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x10020f9c
test byte [edi + 0xa8], 1
je 0x10020faf
cmp dword [edi + 0x24], ecx
jle 0x10020d64
mov eax, dword [edi + 0x2c]
mov edx, dword [eax]
jmp 0x10020d66
xor edx, edx
mov eax, dword [edi + 0xa4]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x10020d8a
test edx, edx
je 0x10020dcc
or dword [esi + 0x4a34], 1
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x50]
jmp 0x10020d9b
cmp eax, 1
jne 0x10020dcc
or dword [esi + 0x4a34], eax
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov byte [esi + 0x4a74], 1
mov dword [esi + 0x4a38], 1
mov dword [esi + 0x4a54], 0
mov dword [esi + 0x4a50], 0
mov dword [esi + 0x4a4c], ecx
mov dword [esi + 0x4a48], eax
mov eax, dword [edi + 0xa4]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x10020def
test edx, edx
je 0x10020e17
or dword [esi + 0x4a34], eax
mov eax, dword [edx + 0x5c]
mov ecx, dword [edx + 0x60]
jmp 0x10020e01
cmp eax, 1
jne 0x10020e17
or dword [esi + 0x4a34], 2
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x4a3c], 1
mov dword [esi + 0x4a5c], ecx
mov dword [esi + 0x4a58], eax
mov ecx, dword [edi + 0xa4]
mov eax, ecx
and al, 0x38
cmp al, 0x10
jne 0x10020e4c
test edx, edx
je 0x10020e4c
mov al, byte [edx + 0xea]
or dword [esi + 0x4a34], 8
mov byte [esi + 0x4a75], al
mov dword [esi + 0x4a40], 1
mov ecx, dword [edi + 0xa4]
and ecx, 0x1c0
cmp ecx, 0x80
jne 0x10020e7d
test edx, edx
je 0x10020e63
mov eax, dword [edx + 0x3c]
jmp 0x10020e6d
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x10020e7d
or dword [esi + 0x4a34], 0x200
mov dword [esi + 0x4a94], eax
or dword [esi + 0x4a34], 0x800
lea eax, [ebp - 0x28]
movups xmm0, xmmword [edi + 0x50]
movups xmmword [esi + 0x4a9c], xmm0
movups xmm0, xmmword [edi + 0x60]
movups xmmword [esi + 0x4aac], xmm0
push dword [edi]
push str.DockNode__02X
push 0x14
push eax
call fcn.10004080
mov esi, dword [0x100aff30]
lea eax, [ebp - 0x68]
add esp, 0x10
mov dword [ebp - 0x68], 2
or dword [esi + 0x4a34], 0x40
lea ecx, [esi + 0x4ad8]
mov dword [esi + 0x4a90], 0
movss xmm1, dword [esi + 0x395c]
movss xmm0, dword [esi + 0x3960]
push eax
movss dword [ebp - 0x64], xmm1
movss dword [ebp - 0x60], xmm0
call fcn.10028070
push 0x20021139
xor edx, edx
mov dword [esi + 0x395c], 0
lea ecx, [ebp - 0x28]
mov dword [esi + 0x3960], 0
call fcn.1000f330
add esp, 4
mov ecx, 1
call fcn.10004e60
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x4e], 1
mov edx, dword [eax + 0x4068]
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x40], edx
test eax, eax
je 0x10020f56
cmp eax, edx
je 0x10020f56
cmp dword [eax + 0x3c8], edi
jne 0x10020f56
mov dword [eax + 0x3c8], 0
mov dword [edx + 0x3c8], edi
mov dword [edi + 0x74], edx
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x50]
mov dword [edx + 0x130], eax
mov dword [edx + 0x134], ecx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x34], eax
mov ecx, dword [edx + 0x58]
mov eax, dword [edx + 0x54]
mov dword [edi + 0x40], ecx
mov ecx, dword [edi + 0x74]
mov dword [edi + 0x3c], eax
cmp byte [ecx + 0xed], 0
je 0x10020f94
call fcn.100124c0
mov esi, dword [0x100aff30]
jmp 0x10020fa5
mov ecx, dword [ecx + 0x74]
mov dword [ebp - 0x40], ecx
mov dword [edi + 0x74], ecx
and dword [edi + 0xa4], 0xfffffe00
test byte [edi + 0xa9], 1
je 0x10021009
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10021009
mov ecx, eax
call fcn.100084f0
movss xmm1, dword [esi + 0x37dc]
movss xmm0, dword [esi + 0x37e0]
subss xmm1, dword [edi + 0x34]
subss xmm0, dword [edi + 0x38]
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x4074], eax
movss dword [esi + 0x40d0], xmm1
movss dword [esi + 0x40d4], xmm0
and byte [edi + 0xa9], 0xfe
mov esi, dword [0x100aff30]
mov edx, dword [ebp - 0x40]
cmp dword [edi + 0x18], 0
mov dword [edi + 0xa0], 0
jne 0x10021089
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4b90]
test eax, eax
je 0x10021068
mov eax, dword [eax + 0x348]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10021089
mov ecx, dword [eax + 0x3c4]
test ecx, ecx
je 0x10021089
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x10021050
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x10021047
cmp ecx, edi
je 0x10021070
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x10021068
mov eax, dword [eax + 0x348]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10021036
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x44], ecx
jmp 0x10021099
mov eax, dword [ebp - 0x44]
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x44], ecx
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax]
mov dword [edi + 0x94], eax
jmp 0x10021099
cmp dword [edi + 0x18], 0
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x44], ecx
jne 0x10021278
test edx, edx
je 0x10021278
test byte [ebp - 0x54], 8
je 0x10021278
test ecx, ecx
je 0x10021278
cmp dword [ecx + 0x1c], 0
jne 0x10021278
cmp dword [ecx + 0x24], 0
jne 0x10021278
cmp byte [esi + 0x4d84], 0
mov byte [ebp - 0x4d], 1
je 0x1002115b
cmp dword [esi + 0x4da4], 0xffffffff
je 0x1002115b
lea eax, [esi + 0x4d94]
test eax, eax
je 0x1002115b
cmp dword [eax + 0x10], 0xffffffff
je 0x1002115b
lea ecx, [eax + 0x14]
mov eax, str._IMWINDOW
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
mov byte [ebp - 0x45], dl
mov edx, dword [ebp - 0x40]
jne 0x10021130
cmp byte [ebp - 0x45], 0
je 0x1002112c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
mov byte [ebp - 0x45], dl
mov edx, dword [ebp - 0x40]
jne 0x10021130
add eax, 2
add ecx, 2
cmp byte [ebp - 0x45], 0
jne 0x10021100
xor eax, eax
jmp 0x10021135
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10021158
mov edx, dword [esi + 0x4d94]
mov ecx, dword [ebp - 0x40]
mov edx, dword [edx]
call fcn.10022cc0
test al, al
je 0x10021155
mov eax, dword [edi + 0x18]
jmp 0x10021287
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1002116e
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x10021165
movss xmm0, dword [ecx + 0x34]
movss xmm6, dword [ecx + 0x38]
movaps xmm5, xmm0
addss xmm5, dword [ecx + 0x3c]
movaps xmm7, xmm6
addss xmm7, dword [ecx + 0x40]
mov ecx, dword [ebp - 0x44]
movss xmm2, dword [ecx + 0x34]
movss xmm1, dword [ecx + 0x38]
movaps xmm4, xmm2
addss xmm4, dword [ecx + 0x3c]
movaps xmm3, xmm1
addss xmm3, dword [ecx + 0x40]
comiss xmm2, xmm0
movss xmm0, dword [0x100aa1f8]
jbe 0x100211b6
addss xmm2, xmm0
comiss xmm5, xmm4
jbe 0x100211bf
subss xmm4, xmm0
comiss xmm1, xmm6
jbe 0x100211c8
addss xmm1, xmm0
comiss xmm7, xmm3
jbe 0x100211d1
subss xmm3, xmm0
comiss xmm2, xmm4
ja 0x1002114d
comiss xmm1, xmm3
ja 0x1002114d
subss xmm4, xmm2
mov ecx, dword [edx + 0x340]
subss xmm3, xmm1
movaps xmm0, xmm2
cvttss2si eax, xmm4
mov word [ebp - 0x3c], ax
cvttss2si eax, xmm3
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x270], eax
subss xmm0, dword [edx + 0x4c]
cvttss2si eax, xmm0
movaps xmm0, xmm1
mov word [ebp - 0x3c], ax
subss xmm0, dword [edx + 0x50]
cvttss2si eax, xmm0
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x274], eax
test ecx, ecx
je 0x1002127c
cvttss2si eax, xmm4
mov word [ebp - 0x3c], ax
cvttss2si eax, xmm3
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x270], eax
subss xmm2, dword [ecx + 0x4c]
subss xmm1, dword [ecx + 0x50]
cvttss2si eax, xmm2
mov word [ebp - 0x3c], ax
cvttss2si eax, xmm1
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x274], eax
mov eax, dword [edi + 0x18]
jmp 0x10021287
mov byte [ebp - 0x4d], 0
mov eax, dword [edi + 0x18]
test edx, edx
je 0x10021468
test eax, eax
jne 0x100213c0
mov eax, dword [ebp - 0x40]
xor edx, edx
mov ecx, edi
push dword [eax + 0x58]
push dword [eax + 0x54]
push dword [eax + 0x50]
push dword [eax + 0x4c]
call fcn.10024710
movups xmm0, xmmword [esi + 0x3bec]
add esp, 0x10
mov dword [ebp - 0x70], 0x1b
lea eax, [ebp - 0x70]
lea ecx, [esi + 0x4acc]
movups xmmword [ebp - 0x6c], xmm0
push eax
call fcn.10028100
cmp dword [esi + 0x4ac8], 0x1b
je 0x100212e5
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3a8c]
movups xmmword [esi + 0x3bec], xmm0
mov esi, dword [0x100aff30]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x1d
movups xmm0, xmmword [esi + 0x3c0c]
lea ecx, [esi + 0x4acc]
movups xmmword [ebp - 0x6c], xmm0
call fcn.10028100
cmp dword [esi + 0x4ac8], 0x1d
je 0x10021326
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3c3c]
movups xmmword [esi + 0x3c0c], xmm0
mov esi, dword [0x100aff30]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x1c
movups xmm0, xmmword [esi + 0x3bfc]
lea ecx, [esi + 0x4acc]
movups xmmword [ebp - 0x6c], xmm0
call fcn.10028100
cmp dword [esi + 0x4ac8], 0x1c
je 0x10021367
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3c2c]
movups xmmword [esi + 0x3bfc], xmm0
mov ecx, edi
call fcn.10024af0
mov esi, dword [0x100aff30]
mov dword [ebp - 0x3c], 3
mov eax, dword [esi + 0x4acc]
cmp eax, 3
jge 0x1002138d
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x100213c0
mov edi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x4acc]
dec edi
mov ecx, dword [esi + 0x4ad4]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*4 - 0x14]
movups xmm0, xmmword [ecx + edx*4 - 0x10]
add eax, eax
movups xmmword [esi + eax*8 + 0x3a3c], xmm0
dec dword [esi + 0x4acc]
test edi, edi
jg 0x10021390
mov edi, dword [ebp - 0x58]
cmp dword [edi + 0x1c], 0
mov esi, dword [ebp - 0x40]
jne 0x1002146b
cmp dword [edi + 0x24], 0
jne 0x1002146b
test byte [edi + 0xa8], 1
je 0x1002146b
mov ecx, dword [esi + 0x2ac]
push 0
push ecx
add ecx, 0x78
call fcn.10032ce0
test byte [ebp - 0x54], 8
je 0x1002140b
or byte [edi + 0xa8], 4
mov dword [edi + 0x70], 0
jmp 0x1002146b
movss xmm1, dword [0x100aa18c]
mov ecx, 0x27
call fcn.10004c80
mov dword [edi + 0x70], eax
test eax, eax
je 0x1002145f
movss xmm0, dword [edi + 0x3c]
lea ecx, [edi + 0x34]
addss xmm0, dword [ecx]
push 0
push ecx
mov dword [esp], 0
push eax
movss dword [ebp - 0x5c], xmm0
lea eax, [ebp - 0x5c]
movss xmm0, dword [edi + 0x40]
addss xmm0, dword [ecx + 4]
push eax
push ecx
mov ecx, dword [esi + 0x2ac]
movss dword [ebp - 0x58], xmm0
call fcn.10032480
or byte [edi + 0xa8], 4
jmp 0x1002146b
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x100215a8
cmp dword [edi + 0x18], 0
jne 0x10021586
test byte [ebp - 0x54], 8
je 0x10021586
test byte [edi + 0xa8], 1
je 0x10021586
mov ecx, dword [esi + 0x2ac]
push 0
push ecx
add ecx, 0x78
call fcn.10032ce0
cmp byte [ebp - 0x4d], 0
lea edx, [edi + 0x34]
je 0x1002153c
mov eax, dword [ebp - 0x44]
sub esp, 8
movss xmm2, dword [edx]
mov ecx, 2
movss dword [ebp - 0x38], xmm2
addss xmm2, dword [edi + 0x3c]
movss xmm0, dword [eax + 0x38]
movss xmm1, dword [eax + 0x34]
movss dword [ebp - 0x68], xmm0
addss xmm0, dword [eax + 0x40]
movss dword [ebp - 0x6c], xmm1
addss xmm1, dword [eax + 0x3c]
movss dword [ebp - 0x30], xmm2
mov dword [esp + 4], 0
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [edi + 0x38]
movss dword [ebp - 0x34], xmm0
addss xmm0, dword [edi + 0x40]
movss dword [ebp - 0x64], xmm1
movss xmm1, dword [0x100aa18c]
movss dword [ebp - 0x2c], xmm0
call fcn.10004c80
mov ecx, dword [esi + 0x2ac]
lea edx, [ebp - 0x38]
add esp, 4
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10036820
add esp, 0xc
jmp 0x10021586
movss xmm0, dword [edi + 0x3c]
addss xmm0, dword [edx]
movss xmm1, dword [0x100aa18c]
push 0
push ecx
mov ecx, 2
mov dword [esp], 0
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [edi + 0x40]
addss xmm0, dword [edx + 4]
movss dword [ebp - 0x58], xmm0
call fcn.10004c80
mov ecx, dword [esi + 0x2ac]
push eax
lea eax, [ebp - 0x5c]
push eax
push edx
call fcn.10032480
mov ecx, dword [esi + 0x2ac]
push 1
push ecx
add ecx, 0x78
call fcn.10032ce0
cmp dword [edi + 0x24], 0
jle 0x100215a8
mov edx, esi
mov ecx, edi
call fcn.10021810
jmp 0x100215c2
mov al, byte [edi + 0xa8]
and al, 0xbf
mov dword [edi + 0x9c], 0
and al, 0xfd
mov byte [edi + 0xa8], al
mov eax, dword [edi + 0x30]
test eax, eax
je 0x100215d0
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x100215e1
cmp dword [edi + 0x24], 0
jle 0x100215e7
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0xac]
mov dword [edi + 0x98], eax
test esi, esi
je 0x10021627
test byte [edi + 0xa8], 1
je 0x10021627
cmp dword [edi + 0x18], 0
jne 0x10021627
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4074]
test eax, eax
je 0x1002160f
cmp dword [eax + 0x350], esi
je 0x10021627
mov ecx, esi
call fcn.10025cc0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x3fe0]
mov dword [edi + 0x8c], eax
jmp 0x1002163a
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x3fe0]
mov dword [edi + 0x8c], eax
test esi, esi
je 0x1002165f
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x10021646
call fcn.100208b0
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x10021652
call fcn.100208b0
cmp dword [edi + 0x18], 0
jne 0x1002165f
mov ecx, esi
call fcn.1000df10
cmp byte [ebp - 0x4e], 0
je 0x1002166a
call fcn.10012290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006db86
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret