Function at 0x10020470
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 0x1008b470
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100d7010]
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 [0x100d9260]
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 0x100205b7
call fcn.10020190
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
mov ecx, edi
call fcn.10020140
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 0x10020542
test esi, esi
je 0x10020593
mov eax, dword [esi]
mov dword [edi + 0x94], eax
test esi, esi
je 0x10020593
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 0x10020593
mov eax, dword [esi + 0x2c]
add eax, 4
mov esi, dword [eax]
cmp byte [esi + 0x35], 0
je 0x10020583
inc ecx
add eax, 4
cmp ecx, dword [ebp - 0x3c]
jl 0x10020570
jmp 0x10020593
movups xmm0, xmmword [esi + 0x18]
movups xmmword [edi + 0x50], xmm0
movups xmm0, xmmword [esi + 0x28]
movups xmmword [edi + 0x60], xmm0
test edx, edx
je 0x100205ae
nop word [eax + eax]
or byte [edx + 0xa8], 0x20
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x100205a0
mov esi, dword [0x100d9260]
mov dword [ebp - 0x44], esi
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x1002061a
mov eax, dword [edi + 0x10]
shr eax, 0xc
test al, 1
je 0x1002061a
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x94]
test eax, eax
je 0x100205e6
mov ecx, eax
call fcn.10007f00
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 1
mov eax, dword [ecx + 8]
test eax, eax
je 0x100205fe
mov ecx, eax
call fcn.10007f00
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.10007f00
mov esi, dword [0x100d9260]
mov dword [edi + 0x30], 0
mov dword [ebp - 0x44], esi
mov eax, dword [edi + 0x18]
xor dl, dl
test eax, eax
jne 0x100207da
test dword [edi + 0x10], 0x400
jne 0x100207da
mov ecx, dword [edi + 0x24]
cmp ecx, 1
jg 0x10020659
cmp dword [edi + 0x1c], eax
jne 0x10020659
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x46], dl
jne 0x10020659
test ecx, ecx
je 0x10020657
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x34], dl
jne 0x10020659
mov dl, 1
cmp dword [edi + 0x84], 0
je 0x1002066a
test dl, dl
je 0x100207d7
cmp ecx, 1
jne 0x10020738
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 0x100206d2
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x4b90], ecx
jne 0x100206d6
xor edx, edx
mov ecx, esi
call fcn.10012070
mov eax, dword [edi + 0x74]
test eax, eax
je 0x1002072f
mov ecx, dword [ebp - 0x4c]
test dword [ecx + 0x5fd4], 0x200
je 0x10020702
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.10026c20
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 0x1002072f
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.10020080
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 0x1002122a
cmp dword [edi + 0x24], 1
jne 0x1002122a
mov eax, dword [edi + 0x2c]
mov esi, dword [0x100d9260]
mov edi, dword [eax]
mov ecx, edi
call fcn.100080a0
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 0x1002122a
mov eax, dword [edi + 0x18]
mov dl, byte [edi + 0xa8]
test dl, 1
je 0x10020850
cmp dword [edi + 0x74], 0
jne 0x10020850
test eax, eax
jne 0x10020850
test dword [edi + 0x10], 0x400
jne 0x10020850
cmp dword [edi + 0x1c], eax
jne 0x10020850
cmp dword [edi + 0x98], eax
je 0x1002082d
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x3c], eax
cmp ecx, eax
je 0x1002082d
mov eax, dword [ecx]
mov esi, dword [edi + 0x98]
cmp dword [eax + 8], esi
mov esi, dword [ebp - 0x44]
je 0x10020832
add ecx, 4
cmp ecx, dword [ebp - 0x3c]
jne 0x10020815
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x104], 0
jg 0x10020844
cmp byte [eax + 0x105], 0
jle 0x10020850
mov dword [edi + 0x14], 2
jmp 0x1002122a
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
test ecx, ecx
jle 0x10020868
test eax, 0x4000
jne 0x10020868
mov al, 0x10
jmp 0x1002086a
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 0x100208d5
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 0x10020890
mov edx, dword [edi + 0x10]
mov esi, dword [ebp - 0x44]
test dword [ebp - 0x54], 0x8000
je 0x100208e5
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 0x10020900
mov edx, dword [edi + 0x74]
mov dword [ebp - 0x40], edx
jmp 0x10020bcc
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x10020b5c
test byte [edi + 0xa8], 1
je 0x10020b6f
cmp dword [edi + 0x24], ecx
jle 0x10020924
mov eax, dword [edi + 0x2c]
mov edx, dword [eax]
jmp 0x10020926
xor edx, edx
mov eax, dword [edi + 0xa4]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x1002094a
test edx, edx
je 0x1002098c
or dword [esi + 0x4a34], 1
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x50]
jmp 0x1002095b
cmp eax, 1
jne 0x1002098c
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 0x100209af
test edx, edx
je 0x100209d7
or dword [esi + 0x4a34], eax
mov eax, dword [edx + 0x5c]
mov ecx, dword [edx + 0x60]
jmp 0x100209c1
cmp eax, 1
jne 0x100209d7
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 0x10020a0c
test edx, edx
je 0x10020a0c
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 0x10020a3d
test edx, edx
je 0x10020a23
mov eax, dword [edx + 0x3c]
jmp 0x10020a2d
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x10020a3d
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.10003c40
mov esi, dword [0x100d9260]
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.10027c30
push 0x20021139
xor edx, edx
mov dword [esi + 0x395c], 0
lea ecx, [ebp - 0x28]
mov dword [esi + 0x3960], 0
call fcn.1000ee60
add esp, 4
mov ecx, 1
call fcn.10004a00
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 0x10020b16
cmp eax, edx
je 0x10020b16
cmp dword [eax + 0x3c8], edi
jne 0x10020b16
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 0x10020b54
call fcn.10011ff0
mov esi, dword [0x100d9260]
jmp 0x10020b65
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 0x10020bc9
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10020bc9
mov ecx, eax
call fcn.100080a0
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 [0x100d9260]
mov edx, dword [ebp - 0x40]
cmp dword [edi + 0x18], 0
mov dword [edi + 0xa0], 0
jne 0x10020c49
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4b90]
test eax, eax
je 0x10020c28
mov eax, dword [eax + 0x348]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10020c49
mov ecx, dword [eax + 0x3c4]
test ecx, ecx
je 0x10020c49
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x10020c10
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x10020c07
cmp ecx, edi
je 0x10020c30
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x10020c28
mov eax, dword [eax + 0x348]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10020bf6
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x44], ecx
jmp 0x10020c59
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 0x10020c59
cmp dword [edi + 0x18], 0
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x44], ecx
jne 0x10020e38
test edx, edx
je 0x10020e38
test byte [ebp - 0x54], 8
je 0x10020e38
test ecx, ecx
je 0x10020e38
cmp dword [ecx + 0x1c], 0
jne 0x10020e38
cmp dword [ecx + 0x24], 0
jne 0x10020e38
cmp byte [esi + 0x4d84], 0
mov byte [ebp - 0x4d], 1
je 0x10020d1b
cmp dword [esi + 0x4da4], 0xffffffff
je 0x10020d1b
lea eax, [esi + 0x4d94]
test eax, eax
je 0x10020d1b
cmp dword [eax + 0x10], 0xffffffff
je 0x10020d1b
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 0x10020cf0
cmp byte [ebp - 0x45], 0
je 0x10020cec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
mov byte [ebp - 0x45], dl
mov edx, dword [ebp - 0x40]
jne 0x10020cf0
add eax, 2
add ecx, 2
cmp byte [ebp - 0x45], 0
jne 0x10020cc0
xor eax, eax
jmp 0x10020cf5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10020d18
mov edx, dword [esi + 0x4d94]
mov ecx, dword [ebp - 0x40]
mov edx, dword [edx]
call fcn.10022870
test al, al
je 0x10020d15
mov eax, dword [edi + 0x18]
jmp 0x10020e47
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x10020d2e
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x10020d25
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 [0x100cf5d8]
jbe 0x10020d76
addss xmm2, xmm0
comiss xmm5, xmm4
jbe 0x10020d7f
subss xmm4, xmm0
comiss xmm1, xmm6
jbe 0x10020d88
addss xmm1, xmm0
comiss xmm7, xmm3
jbe 0x10020d91
subss xmm3, xmm0
comiss xmm2, xmm4
ja 0x10020d0d
comiss xmm1, xmm3
ja 0x10020d0d
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 0x10020e3c
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 0x10020e47
mov byte [ebp - 0x4d], 0
mov eax, dword [edi + 0x18]
test edx, edx
je 0x10021028
test eax, eax
jne 0x10020f80
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.100242c0
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.10027cc0
cmp dword [esi + 0x4ac8], 0x1b
je 0x10020ea5
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3a8c]
movups xmmword [esi + 0x3bec], xmm0
mov esi, dword [0x100d9260]
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.10027cc0
cmp dword [esi + 0x4ac8], 0x1d
je 0x10020ee6
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3c3c]
movups xmmword [esi + 0x3c0c], xmm0
mov esi, dword [0x100d9260]
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.10027cc0
cmp dword [esi + 0x4ac8], 0x1c
je 0x10020f27
mov eax, dword [ebp - 0x4c]
movups xmm0, xmmword [eax + 0x3c2c]
movups xmmword [esi + 0x3bfc], xmm0
mov ecx, edi
call fcn.100246a0
mov esi, dword [0x100d9260]
mov dword [ebp - 0x3c], 3
mov eax, dword [esi + 0x4acc]
cmp eax, 3
jge 0x10020f4d
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x10020f80
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 0x10020f50
mov edi, dword [ebp - 0x58]
cmp dword [edi + 0x1c], 0
mov esi, dword [ebp - 0x40]
jne 0x1002102b
cmp dword [edi + 0x24], 0
jne 0x1002102b
test byte [edi + 0xa8], 1
je 0x1002102b
mov ecx, dword [esi + 0x2ac]
push 0
push ecx
add ecx, 0x78
call fcn.100328a0
test byte [ebp - 0x54], 8
je 0x10020fcb
or byte [edi + 0xa8], 4
mov dword [edi + 0x70], 0
jmp 0x1002102b
movss xmm1, dword [0x100cf570]
mov ecx, 0x27
call fcn.10004820
mov dword [edi + 0x70], eax
test eax, eax
je 0x1002101f
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.10032040
or byte [edi + 0xa8], 4
jmp 0x1002102b
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x10021168
cmp dword [edi + 0x18], 0
jne 0x10021146
test byte [ebp - 0x54], 8
je 0x10021146
test byte [edi + 0xa8], 1
je 0x10021146
mov ecx, dword [esi + 0x2ac]
push 0
push ecx
add ecx, 0x78
call fcn.100328a0
cmp byte [ebp - 0x4d], 0
lea edx, [edi + 0x34]
je 0x100210fc
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 [0x100cf570]
movss dword [ebp - 0x2c], xmm0
call fcn.10004820
mov ecx, dword [esi + 0x2ac]
lea edx, [ebp - 0x38]
add esp, 4
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.100363e0
add esp, 0xc
jmp 0x10021146
movss xmm0, dword [edi + 0x3c]
addss xmm0, dword [edx]
movss xmm1, dword [0x100cf570]
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.10004820
mov ecx, dword [esi + 0x2ac]
push eax
lea eax, [ebp - 0x5c]
push eax
push edx
call fcn.10032040
mov ecx, dword [esi + 0x2ac]
push 1
push ecx
add ecx, 0x78
call fcn.100328a0
cmp dword [edi + 0x24], 0
jle 0x10021168
mov edx, esi
mov ecx, edi
call fcn.100213c0
jmp 0x10021182
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 0x10021190
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x100211a1
cmp dword [edi + 0x24], 0
jle 0x100211a7
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0xac]
mov dword [edi + 0x98], eax
test esi, esi
je 0x100211e7
test byte [edi + 0xa8], 1
je 0x100211e7
cmp dword [edi + 0x18], 0
jne 0x100211e7
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4074]
test eax, eax
je 0x100211cf
cmp dword [eax + 0x350], esi
je 0x100211e7
mov ecx, esi
call fcn.10025870
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x3fe0]
mov dword [edi + 0x8c], eax
jmp 0x100211fa
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x3fe0]
mov dword [edi + 0x8c], eax
test esi, esi
je 0x1002121f
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x10021206
call fcn.10020470
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x10021212
call fcn.10020470
cmp dword [edi + 0x18], 0
jne 0x1002121f
mov ecx, esi
call fcn.1000da40
cmp byte [ebp - 0x4e], 0
je 0x1002122a
call fcn.10011dc0
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.10064b15
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret