Function at 0x10020660
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 0x1006a1e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100a7010]
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 [0x100a79b0]
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 0x100207a7
call fcn.10020380
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
mov ecx, edi
call fcn.10020330
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 0x10020732
test esi, esi
je 0x10020783
mov eax, dword [esi]
mov dword [edi + 0x94], eax
test esi, esi
je 0x10020783
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 0x10020783
mov eax, dword [esi + 0x2c]
add eax, 4
mov esi, dword [eax]
cmp byte [esi + 0x35], 0
je 0x10020773
inc ecx
add eax, 4
cmp ecx, dword [ebp - 0x3c]
jl 0x10020760
jmp 0x10020783
movups xmm0, xmmword [esi + 0x18]
movups xmmword [edi + 0x50], xmm0
movups xmm0, xmmword [esi + 0x28]
movups xmmword [edi + 0x60], xmm0
test edx, edx
je 0x1002079e
nop word [eax + eax]
or byte [edx + 0xa8], 0x20
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x10020790
mov esi, dword [0x100a79b0]
mov dword [ebp - 0x44], esi
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x1002080a
mov eax, dword [edi + 0x10]
shr eax, 0xc
test al, 1
je 0x1002080a
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x94]
test eax, eax
je 0x100207d6
mov ecx, eax
call fcn.100080f0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 1
mov eax, dword [ecx + 8]
test eax, eax
je 0x100207ee
mov ecx, eax
call fcn.100080f0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.100080f0
mov esi, dword [0x100a79b0]
mov dword [edi + 0x30], 0
mov dword [ebp - 0x44], esi
mov eax, dword [edi + 0x18]
xor dl, dl
test eax, eax
jne 0x100209ca
test dword [edi + 0x10], 0x400
jne 0x100209ca
mov ecx, dword [edi + 0x24]
cmp ecx, 1
jg 0x10020849
cmp dword [edi + 0x1c], eax
jne 0x10020849
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x46], dl
jne 0x10020849
test ecx, ecx
je 0x10020847
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x34], dl
jne 0x10020849
mov dl, 1
cmp dword [edi + 0x84], 0
je 0x1002085a
test dl, dl
je 0x100209c7
cmp ecx, 1
jne 0x10020928
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 0x100208c2
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x4b90], ecx
jne 0x100208c6
xor edx, edx
mov ecx, esi
call fcn.100122f0
mov eax, dword [edi + 0x74]
test eax, eax
je 0x1002091f
mov ecx, dword [ebp - 0x4c]
test dword [ecx + 0x5fd4], 0x200
je 0x100208f2
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.10026e00
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 0x1002091f
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.10020270
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 0x1002141a
cmp dword [edi + 0x24], 1
jne 0x1002141a
mov eax, dword [edi + 0x2c]
mov esi, dword [0x100a79b0]
mov edi, dword [eax]
mov ecx, edi
call fcn.10008290
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 0x1002141a
mov eax, dword [edi + 0x18]
mov dl, byte [edi + 0xa8]
test dl, 1
je 0x10020a40
cmp dword [edi + 0x74], 0
jne 0x10020a40
test eax, eax
jne 0x10020a40
test dword [edi + 0x10], 0x400
jne 0x10020a40
cmp dword [edi + 0x1c], eax
jne 0x10020a40
cmp dword [edi + 0x98], eax
je 0x10020a1d
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x3c], eax
cmp ecx, eax
je 0x10020a1d
mov eax, dword [ecx]
mov esi, dword [edi + 0x98]
cmp dword [eax + 8], esi
mov esi, dword [ebp - 0x44]
je 0x10020a22
add ecx, 4
cmp ecx, dword [ebp - 0x3c]
jne 0x10020a05
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x104], 0
jg 0x10020a34
cmp byte [eax + 0x105], 0
jle 0x10020a40
mov dword [edi + 0x14], 2
jmp 0x1002141a
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
test ecx, ecx
jle 0x10020a58
test eax, 0x4000
jne 0x10020a58
mov al, 0x10
jmp 0x10020a5a
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 0x10020ac5
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 0x10020a80
mov edx, dword [edi + 0x10]
mov esi, dword [ebp - 0x44]
test dword [ebp - 0x54], 0x8000
je 0x10020ad5
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 0x10020af0
mov edx, dword [edi + 0x74]
mov dword [ebp - 0x40], edx
jmp 0x10020dbc
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x10020d4c
test byte [edi + 0xa8], 1
je 0x10020d5f
cmp dword [edi + 0x24], ecx
jle 0x10020b14
mov eax, dword [edi + 0x2c]
mov edx, dword [eax]
jmp 0x10020b16
xor edx, edx
mov eax, dword [edi + 0xa4]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x10020b3a
test edx, edx
je 0x10020b7c
or dword [esi + 0x4a34], 1
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x50]
jmp 0x10020b4b
cmp eax, 1
jne 0x10020b7c
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 0x10020b9f
test edx, edx
je 0x10020bc7
or dword [esi + 0x4a34], eax
mov eax, dword [edx + 0x5c]
mov ecx, dword [edx + 0x60]
jmp 0x10020bb1
cmp eax, 1
jne 0x10020bc7
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 0x10020bfc
test edx, edx
je 0x10020bfc
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 0x10020c2d
test edx, edx
je 0x10020c13
mov eax, dword [edx + 0x3c]
jmp 0x10020c1d
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x10020c2d
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.10003e20
mov esi, dword [0x100a79b0]
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.10027e10
push 0x20021139
xor edx, edx
mov dword [esi + 0x395c], 0
lea ecx, [ebp - 0x28]
mov dword [esi + 0x3960], 0
call fcn.1000f0e0
add esp, 4
mov ecx, 1
call fcn.10004c00
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 0x10020d06
cmp eax, edx
je 0x10020d06
cmp dword [eax + 0x3c8], edi
jne 0x10020d06
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 0x10020d44
call fcn.10012270
mov esi, dword [0x100a79b0]
jmp 0x10020d55
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 0x10020db9
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10020db9
mov ecx, eax
call fcn.10008290
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 [0x100a79b0]
mov edx, dword [ebp - 0x40]
cmp dword [edi + 0x18], 0
mov dword [edi + 0xa0], 0
jne 0x10020e39
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4b90]
test eax, eax
je 0x10020e18
mov eax, dword [eax + 0x348]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10020e39
mov ecx, dword [eax + 0x3c4]
test ecx, ecx
je 0x10020e39
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x10020e00
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x10020df7
cmp ecx, edi
je 0x10020e20
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x10020e18
mov eax, dword [eax + 0x348]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10020de6
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x44], ecx
jmp 0x10020e49
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 0x10020e49
cmp dword [edi + 0x18], 0
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x44], ecx
jne 0x10021028
test edx, edx
je 0x10021028
test byte [ebp - 0x54], 8
je 0x10021028
test ecx, ecx
je 0x10021028
cmp dword [ecx + 0x1c], 0
jne 0x10021028
cmp dword [ecx + 0x24], 0
jne 0x10021028
cmp byte [esi + 0x4d84], 0
mov byte [ebp - 0x4d], 1
je 0x10020f0b
cmp dword [esi + 0x4da4], 0xffffffff
je 0x10020f0b
lea eax, [esi + 0x4d94]
test eax, eax
je 0x10020f0b
cmp dword [eax + 0x10], 0xffffffff
je 0x10020f0b
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 0x10020ee0
cmp byte [ebp - 0x45], 0
je 0x10020edc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
mov byte [ebp - 0x45], dl
mov edx, dword [ebp - 0x40]
jne 0x10020ee0
add eax, 2
add ecx, 2
cmp byte [ebp - 0x45], 0
jne 0x10020eb0
xor eax, eax
jmp 0x10020ee5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10020f08
mov edx, dword [esi + 0x4d94]
mov ecx, dword [ebp - 0x40]
mov edx, dword [edx]
call fcn.10022a60
test al, al
je 0x10020f05
mov eax, dword [edi + 0x18]
jmp 0x10021037
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x10020f1e
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x10020f15
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 [0x100a2ca8]
jbe 0x10020f66
addss xmm2, xmm0
comiss xmm5, xmm4
jbe 0x10020f6f
subss xmm4, xmm0
comiss xmm1, xmm6
jbe 0x10020f78
addss xmm1, xmm0
comiss xmm7, xmm3
jbe 0x10020f81
subss xmm3, xmm0
comiss xmm2, xmm4
ja 0x10020efd
comiss xmm1, xmm3
ja 0x10020efd
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 0x1002102c
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 0x10021037
mov byte [ebp - 0x4d], 0
mov eax, dword [edi + 0x18]
test edx, edx
je 0x10021218
test eax, eax
jne 0x10021170
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.100244b0
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.10027ea0
cmp dword [esi + 0x4ac8], 0x1b
je 0x10021095
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3a8c]
movups xmmword [esi + 0x3bec], xmm0
mov esi, dword [0x100a79b0]
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.10027ea0
cmp dword [esi + 0x4ac8], 0x1d
je 0x100210d6
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3c3c]
movups xmmword [esi + 0x3c0c], xmm0
mov esi, dword [0x100a79b0]
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.10027ea0
cmp dword [esi + 0x4ac8], 0x1c
je 0x10021117
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3c2c]
movups xmmword [esi + 0x3bfc], xmm0
mov ecx, edi
call fcn.10024890
mov esi, dword [0x100a79b0]
mov dword [ebp - 0x3c], 3
mov eax, dword [esi + 0x4acc]
cmp eax, 3
jge 0x1002113d
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x10021170
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 0x10021140
mov edi, dword [ebp - 0x58]
cmp dword [edi + 0x1c], 0
mov esi, dword [ebp - 0x40]
jne 0x1002121b
cmp dword [edi + 0x24], 0
jne 0x1002121b
test byte [edi + 0xa8], 1
je 0x1002121b
mov ecx, dword [esi + 0x2ac]
push 0
push ecx
add ecx, 0x78
call fcn.10032a80
test byte [ebp - 0x54], 8
je 0x100211bb
or byte [edi + 0xa8], 4
mov dword [edi + 0x70], 0
jmp 0x1002121b
movss xmm1, dword [0x100a2c38]
mov ecx, 0x27
call fcn.10004a20
mov dword [edi + 0x70], eax
test eax, eax
je 0x1002120f
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.10032220
or byte [edi + 0xa8], 4
jmp 0x1002121b
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x10021358
cmp dword [edi + 0x18], 0
jne 0x10021336
test byte [ebp - 0x54], 8
je 0x10021336
test byte [edi + 0xa8], 1
je 0x10021336
mov ecx, dword [esi + 0x2ac]
push 0
push ecx
add ecx, 0x78
call fcn.10032a80
cmp byte [ebp - 0x4d], 0
lea edx, [edi + 0x34]
je 0x100212ec
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 [0x100a2c38]
movss dword [ebp - 0x2c], xmm0
call fcn.10004a20
mov ecx, dword [esi + 0x2ac]
lea edx, [ebp - 0x38]
add esp, 4
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.100365c0
add esp, 0xc
jmp 0x10021336
movss xmm0, dword [edi + 0x3c]
addss xmm0, dword [edx]
movss xmm1, dword [0x100a2c38]
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.10004a20
mov ecx, dword [esi + 0x2ac]
push eax
lea eax, [ebp - 0x5c]
push eax
push edx
call fcn.10032220
mov ecx, dword [esi + 0x2ac]
push 1
push ecx
add ecx, 0x78
call fcn.10032a80
cmp dword [edi + 0x24], 0
jle 0x10021358
mov edx, esi
mov ecx, edi
call fcn.100215b0
jmp 0x10021372
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 0x10021380
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10021391
cmp dword [edi + 0x24], 0
jle 0x10021397
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0xac]
mov dword [edi + 0x98], eax
test esi, esi
je 0x100213d7
test byte [edi + 0xa8], 1
je 0x100213d7
cmp dword [edi + 0x18], 0
jne 0x100213d7
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4074]
test eax, eax
je 0x100213bf
cmp dword [eax + 0x350], esi
je 0x100213d7
mov ecx, esi
call fcn.10025a60
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x3fe0]
mov dword [edi + 0x8c], eax
jmp 0x100213ea
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x3fe0]
mov dword [edi + 0x8c], eax
test esi, esi
je 0x1002140f
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x100213f6
call fcn.10020660
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x10021402
call fcn.10020660
cmp dword [edi + 0x18], 0
jne 0x1002140f
mov ecx, esi
call fcn.1000dcc0
cmp byte [ebp - 0x4e], 0
je 0x1002141a
call fcn.10012040
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.10068185
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret