Function at 0x100db9a8
Capabilities:
Encode data using xor

Disassembly:
push 0xc8
mov eax, 0x1012f77b
call fcn.10123c77
mov esi, dword [ebp + 8]
mov dword [ebp - 0x78], esi
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x10c]
test eax, eax
jne 0x100db9d1
xor eax, eax
jmp 0x100dc2ff
push eax
push esi
call sym.rt3d.dll_public:_void___stdcall_TSPRITE::Update_class_e3_VIEWPORT__
mov eax, dword [esi + 0x28]
push str.e3_mesh
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14c]
mov dword [ebp - 0x94], eax
test eax, eax
je 0x100db9ca
lea ecx, [ebp - 0x90]
call fcn.100da733
mov ecx, dword [esi + 0x88]
xor eax, eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x100dba34
mov ecx, dword [ecx + 0x24]
mov edi, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
jle 0x100dba34
mov eax, dword [esi + 0x88]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
inc edi
cmp edi, dword [ebp - 0x80]
jl 0x100dba1f
xor eax, eax
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x100dbc56
mov ecx, dword [ecx + 0x24]
mov edx, eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x70], edx
test ecx, ecx
jle 0x100dbc56
mov eax, dword [esi + 0x8c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edi, eax
mov dword [ebp - 0x9c], edi
mov eax, dword [edi + 8]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x100dba7d
mov eax, dword [edi + 4]
mov dword [ebp - 0x7c], eax
cmp eax, 1
jle 0x100dbc43
push 0
mov ecx, edi
call fcn.100dc3ee
lea esi, [edi + 0x14]
mov dword [ebp - 0x80], eax
lea edi, [ebp - 0xd4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x78]
test byte [edi + 0x24], 8
je 0x100dbad0
test dword [ebp + 0xc], 0x4000000
jne 0x100dbad0
mov eax, dword [esi + 0x28]
mov ecx, esi
push 1
push dword [eax + 0x10c]
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.100df03b
test byte [edi + 0x28], 8
je 0x100dbaf9
test dword [ebp + 0xc], 0x4000000
jne 0x100dbaf9
mov eax, dword [esi + 0x28]
mov ecx, esi
push 0
push dword [eax + 0x10c]
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.100df03b
mov eax, dword [0x107ad68c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov dword [ebp - 0xc8], eax
mov esi, dword [ebp - 0x80]
lea edi, [ebp - 0xb8]
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100dec20
lea esi, [ebp - 0xd4]
lea edi, [ebp - 0xc4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
mov dword [ebp - 0x74], edi
cmp dword [ebp - 0x7c], edi
jle 0x100dbc1f
mov esi, dword [ebp - 0x9c]
mov ecx, esi
push edi
call fcn.100dc3ee
test eax, eax
je 0x100dbc1f
push edi
mov ecx, esi
call fcn.100dc3ee
mov esi, eax
lea edi, [ebp - 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x78]
cmp dword [esi + 0x94], 1
jne 0x100dbbb9
movss xmm0, dword [esi + 0xac]
lea eax, [ebp - 0xb8]
subss xmm0, dword [0x101411bc]
push 0
push ecx
movss dword [esp], xmm0
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [esi + 0x28]
push dword [eax + 0x10c]
call fcn.100db11e
add esp, 0x14
mov eax, dword [esi + 0x94]
test eax, eax
je 0x100dbbc8
cmp eax, 3
jne 0x100dbbee
lea eax, [esi + 0x10d]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb8]
push eax
mov eax, dword [esi + 0x28]
push dword [eax + 0x10c]
call fcn.100db234
add esp, 0x10
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xc8]
call fcn.100dec20
lea esi, [ebp - 0xac]
lea edi, [ebp - 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x74]
inc edi
mov dword [ebp - 0x74], edi
cmp edi, dword [ebp - 0x7c]
jl 0x100dbb4d
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x90]
call fcn.100dec52
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.100da7d5
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
inc edx
mov dword [ebp - 0x70], edx
cmp edx, dword [ebp - 0x84]
jl 0x100dba58
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call fcn.100df48e
mov eax, dword [esi + 0x150]
test eax, eax
jne 0x100dbc95
push 0x5c
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x50]
mov dword [ebp - 0x6c], 0xc
push str.Arial
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy]
add esp, 0x14
jmp 0x100dbca2
push 0x17
pop ecx
mov esi, eax
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp + 0xc]
and eax, 0x1000000
mov dword [ebp - 0x88], eax
je 0x100dbec4
mov eax, dword [0x107ad68c]
push str.CADTEXT
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100dbec4
add esi, 0x54
lea edi, [ebp - 0xac]
lea edx, [ebp - 0xac]
push edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x10c]
mov eax, dword [eax + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [esi + 0x98]
push eax
call sym.rt3d.dll_public:_unsigned_short_int_const____stdcall_e3_STRING::GetBuffer_void_const
movsd xmm0, qword [0x10132290]
lea esi, [ebp - 0x6c]
mov edx, dword [ebp - 0x74]
push 0
sub esp, 0x64
mov edx, dword [edx]
movsd qword [esp + 0x5c], xmm0
push 0x17
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x74]
push eax
push edi
call dword [edx + 0x2c]
mov esi, eax
mov dword [ebp - 0x70], esi
test esi, esi
je 0x100dbebe
mov ecx, dword [esi]
lea eax, [ebp - 0xa0]
push eax
push esi
call dword [ecx + 0x20]
mov eax, dword [esi]
and dword [ebp - 0x7c], 0
push esi
call dword [eax + 0xc]
test eax, eax
jle 0x100dbeb8
mov eax, dword [0x107ad68c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 2
push dword [eax + 0xa4]
call fcn.1004005e
lea esi, [ebp - 0xd4]
lea edi, [ebp - 0xc4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x7c]
push edi
push esi
mov eax, dword [esi]
call dword [eax + 0x18]
mov ecx, dword [esi]
push edi
push esi
mov dword [ebp - 0x80], eax
call dword [ecx + 0x10]
mov dword [ebp - 0x84], eax
test eax, eax
jle 0x100dbe82
mov esi, dword [ebp - 0x80]
mov edi, eax
add esi, 8
movss xmm0, dword [ebp - 0xa0]
lea edx, [ebp - 0xb8]
mulss xmm0, dword [0x10137a8c]
mov eax, dword [ebp - 0x78]
movss xmm2, dword [esi - 8]
movss xmm1, dword [ebp - 0x9c]
mulss xmm1, dword [0x10137a8c]
subss xmm2, xmm0
mov eax, dword [eax + 0x28]
movss xmm0, dword [ebp - 0xac]
movss xmm3, dword [esi - 4]
subss xmm3, xmm1
movss xmm1, dword [esi]
subss xmm1, dword [0x1013225c]
addss xmm0, xmm2
push edx
xorps xmm3, xmmword [0x10132350]
movss dword [ebp - 0xb8], xmm0
movss xmm0, dword [ebp - 0xa8]
addss xmm0, xmm3
movss dword [ebp - 0xb4], xmm0
movss xmm0, dword [ebp - 0xa4]
addss xmm0, xmm1
movss dword [ebp - 0xb0], xmm0
mov eax, dword [eax + 0x10c]
mov eax, dword [eax + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xc8]
call fcn.100dec20
add esi, 0xc
dec edi
jne 0x100dbdc3
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x7c]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x90]
call fcn.100dec52
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.100da7d5
mov eax, dword [esi]
inc edi
push esi
mov dword [ebp - 0x7c], edi
call dword [eax + 0xc]
cmp edi, eax
jl 0x100dbd5b
mov edi, dword [ebp - 0x74]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x94]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x90]
mov ecx, dword [edi]
push 1
push 0xffffffffffffffff
push dword [eax + 0x24]
push edi
call dword [ecx + 0x10c]
mov eax, dword [edi]
push edi
call dword [eax + 0x114]
mov ecx, dword [ebp - 0x90]
xor eax, eax
mov esi, eax
mov dword [ebp - 0x70], eax
cmp dword [ecx + 0x24], eax
jle 0x100dbfc9
mov edx, eax
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 0xc2]
test eax, eax
je 0x100dbf3f
mov eax, dword [ecx + 0x20]
mov edi, dword [edi + 0xc2]
mov esi, dword [eax + esi*4]
lea edi, [edx + edi]
lea esi, [esi + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x94]
mov esi, dword [ebp - 0x70]
mov eax, dword [ecx + 0x20]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax + 0x24]
push esi
push edi
call dword [ecx + 0x110]
mov ecx, dword [ebp - 0x90]
cmp eax, 1
jne 0x100dbfb3
mov eax, dword [ecx + 0x20]
xor edx, edx
mov dword [ebp - 0x70], edx
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x9c], eax
mov eax, dword [eax]
cmp dword [eax + 0x24], edx
jle 0x100dbfb3
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [edi + 0xca]
mov ecx, dword [eax + esi*4]
mov eax, dword [edx]
mov edx, dword [ebp - 0x70]
mov dword [ecx + edx*4], eax
inc edx
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x70], edx
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x9c], eax
mov eax, dword [eax]
cmp edx, dword [eax + 0x24]
jl 0x100dbf77
mov edx, dword [ebp - 0x74]
inc esi
add edx, 0xc
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], edx
cmp esi, dword [ecx + 0x24]
jl 0x100dbf11
cmp dword [ebp - 0x88], 0
jne 0x100dc2d5
test dword [ebp + 0xc], 0x2000000
je 0x100dc2d5
mov eax, dword [edi + 0x66]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x107ad68c]
push str.CADTEXT
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x100dc2d5
mov eax, dword [ebp - 0x78]
push 0
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x150]
and dword [ebp - 0xac], 0
mov esi, eax
and dword [ebp - 0xa8], 0
lea eax, [ebp - 0xac]
and dword [ebp - 0xa4], 0
push 1
mov ecx, dword [esi]
push eax
push 0xc8
push esi
call dword [ecx + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0xac]
push 1
push ecx
push 0xc9
push esi
call dword [eax + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0xac]
push 1
push ecx
push 0xd7
push esi
call dword [eax + 0x18]
mov eax, dword [edi]
push esi
push edi
call dword [eax + 0xec]
mov eax, dword [ebp - 0x78]
lea edi, [ebp - 0xc4]
lea edx, [ebp - 0xc4]
push edx
lea esi, [eax + 0x54]
mov eax, dword [eax + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x10c]
mov eax, dword [eax + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x78]
add eax, 0x98
push eax
call sym.rt3d.dll_public:_unsigned_short_int_const____stdcall_e3_STRING::GetBuffer_void_const
movsd xmm0, qword [0x10132290]
lea esi, [ebp - 0x6c]
mov edx, dword [ebp - 0x9c]
push 0
sub esp, 0x64
mov edx, dword [edx]
movsd qword [esp + 0x5c], xmm0
push 0x17
pop ecx
mov edi, esp
push eax
push dword [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
call dword [edx + 0x30]
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
je 0x100dc2c3
mov ecx, dword [esi]
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [ecx + 0x20]
mov ecx, dword [esi]
push esi
call dword [ecx + 0x14]
mov ecx, dword [esi]
push esi
mov dword [ebp - 0x88], eax
call dword [ecx + 0xc]
mov edi, dword [ebp - 0x94]
push 1
mov dword [ebp - 0x74], eax
mov ecx, dword [edi + 0x66]
mov edx, dword [edi]
add ecx, eax
push ecx
push edi
call dword [edx + 0x118]
cmp dword [ebp - 0x74], 0
jle 0x100dc215
imul esi, dword [ebp - 0x7c], 0xc
mov eax, dword [ebp - 0x88]
add eax, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x84], esi
movss xmm0, dword [ebp - 0xb4]
lea edx, [ebp - 0xd4]
mulss xmm0, dword [0x10137a8c]
push edx
movss xmm2, dword [eax - 8]
movss xmm1, dword [ebp - 0xb0]
mulss xmm1, dword [0x10137a8c]
subss xmm2, xmm0
movss xmm3, dword [eax - 4]
movss xmm0, dword [ebp - 0xc4]
subss xmm3, xmm1
movss xmm1, dword [eax]
subss xmm1, dword [0x1013225c]
mov eax, dword [ebp - 0x78]
addss xmm0, xmm2
xorps xmm3, xmmword [0x10132350]
mov eax, dword [eax + 0x28]
movss dword [ebp - 0xd4], xmm0
movss xmm0, dword [ebp - 0xc0]
addss xmm0, xmm3
movss dword [ebp - 0xd0], xmm0
movss xmm0, dword [ebp - 0xbc]
addss xmm0, xmm1
movss dword [ebp - 0xcc], xmm0
mov eax, dword [eax + 0x10c]
mov eax, dword [eax + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edi, dword [edi + 0x62]
mov eax, dword [ebp - 0x70]
add edi, esi
lea esi, [ebp - 0xd4]
add eax, 0xc
mov dword [ebp - 0x70], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x84]
mov edi, dword [ebp - 0x94]
add esi, 0xc
dec dword [ebp - 0x74]
mov dword [ebp - 0x84], esi
jne 0x100dc140
mov esi, dword [ebp - 0x80]
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov ecx, dword [esi]
push esi
mov dword [ebp - 0x88], eax
call dword [ecx + 0x10]
mov ecx, dword [edi]
push 1
push 3
push eax
push edi
mov dword [ebp - 0x84], eax
call dword [ecx + pe_nt_image_headers32]
cmp dword [ebp - 0x84], 0
jle 0x100dc2bb
mov eax, dword [ebp - 0x88]
add eax, 8
mov dword [ebp - 0x88], eax
mov esi, eax
mov eax, dword [edi]
push 3
push dword [ebp - 0x98]
push edi
call dword [eax + 0xfc]
mov edx, dword [edi + 0x9e]
mov eax, dword [ebp - 0x98]
mov ecx, dword [esi - 8]
add ecx, dword [ebp - 0x7c]
mov eax, dword [edx + eax*4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x98]
mov ecx, dword [esi - 4]
add ecx, dword [ebp - 0x7c]
mov eax, dword [edx + eax*4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x98]
mov ecx, dword [esi]
lea esi, [esi + 0xc]
add ecx, dword [ebp - 0x7c]
mov eax, dword [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp eax, dword [ebp - 0x84]
jl 0x100dc255
mov esi, dword [ebp - 0x80]
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x100dc2c9
mov edi, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x9c]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [edi]
push 1
push edi
call dword [eax + 0x17c]
mov eax, dword [edi]
push 0x4b5
push edi
call dword [eax + 0x17c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.100da8f5
mov eax, edi
call fcn.10123c26
ret 0xc