Function at 0x100e7b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x1025ab04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x78], eax
cmp byte [ebx], 0
jne 0x100e7bc9
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10104522
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x1025bad8]
lea eax, [ebx + 0x20]
mov dword [ebp - 0x7c], eax
push edi
lea edi, [ebx + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x74], eax
call dword [ebp - 0x74]
mov ecx, dword [0x1025bad8]
lea edx, [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
fstp dword [ebp - 0x84]
movq qword [ebp - 0x10], xmm0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x1c]
call eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 4]
cmp eax, 4
jne 0x100e7d6f
push dword [ebp - 0x78]
lea ecx, [ebp - 0xa8]
push dword [esi + 0x21c]
push edi
call fcn.100e7260
movd xmm1, dword [ebx + 8]
xorps xmm2, xmm2
movss xmm0, dword [0x1016869c]
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0x74], xmm0
mulss xmm1, dword [0x1016cae8]
subss xmm1, dword [0x10168658]
comiss xmm1, xmm0
ja 0x100e7c91
movaps xmm0, xmm1
maxss xmm0, xmm2
movss dword [ebp - 0x74], xmm0
mov edi, dword [esi + 0x224]
mov ecx, 0x10259f18
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.10050100
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
push 0
push eax
call esi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10043cb0
mov ebx, dword [ebp - 0x7c]
test esi, esi
je 0x100e7cfa
movss xmm0, dword [ebx + 8]
sub esp, 0xc
mov eax, dword [esi]
mov ecx, esi
movss dword [esp + 8], xmm0
movss xmm0, dword [ebx + 4]
mov eax, dword [eax + 0x2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebx]
movss dword [esp], xmm0
call eax
mov eax, dword [edi]
mov ecx, 0x10259f30
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.1004fbc0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
push 0
push eax
call esi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10043cb0
test esi, esi
je 0x100e7d65
movss xmm0, dword [0x101686bc]
sub esp, 0xc
movss xmm1, dword [ebp - 0x74]
mov ecx, esi
mov eax, dword [esi]
mulss xmm1, xmm0
mov eax, dword [eax + 0x2c]
subss xmm0, xmm1
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call eax
push dword [ebp - 0x78]
push edi
push ebx
jmp 0x100e83b6
mov edx, dword [esi + eax*4 + 0x214]
mov dword [ebp - 0x80], edx
cmp eax, 7
jne 0x100e7e0e
mov ebx, dword [esi + 0x230]
mov ecx, 0x10259f58
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.10050100
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
mov ecx, ebx
push 0
push eax
call esi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10043cb0
test esi, esi
je 0x100e7de8
movss xmm0, dword [edi + 8]
sub esp, 0xc
mov eax, dword [esi]
mov ecx, esi
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 4]
mov eax, dword [eax + 0x2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi]
movss dword [esp], xmm0
call eax
mov eax, dword [ebx]
sub esp, 0xc
mov ecx, ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [eax + 0x70]
jmp 0x100e83b1
cmp eax, 6
jne 0x100e834e
add ebx, 0x30
mov ecx, ebx
mov dword [ebp - 0x88], ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x74], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100e7e28
sub ecx, dword [ebp - 0x74]
je 0x100e834e
mov eax, dword [0x1026a278]
test al, 1
jne 0x100e7e54
or eax, 1
mov dword [0x1026a278], eax
mov eax, dword [esi + 0x22c]
mov dword [0x1026a274], eax
mov eax, dword [0x1026a294]
test al, 1
jne 0x100e7e90
or eax, 1
mov dword [0x1026a27c], 0
push 0x101661e0
mov dword [0x1026a294], eax
mov dword [0x1026a290], 0xf
mov dword [0x1026a28c], 0
call fcn.1010450d
add esp, 4
mov eax, dword [0x1026a274]
mov ecx, 0x10259f70
mov eax, dword [eax]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x70]
push eax
call fcn.100501e0
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
mov ecx, dword [0x1026a274]
cmovae eax, dword [ebp - 0x70]
push 1
push 0
push eax
call esi
mov esi, eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x80], esi
call fcn.10043cb0
test esi, esi
je 0x100e82da
mov edx, ebx
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100e7ee0
mov esi, dword [0x1026a28c]
sub edx, ecx
cmp dword [0x1026a290], 0x10
mov ecx, 0x1026a27c
cmovae ecx, dword [0x1026a27c]
cmp esi, edx
jne 0x100e7f67
mov edx, ebx
sub esi, 4
jb 0x100e7f21
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100e7f2a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100e7f10
cmp esi, 0xfffffffc
je 0x100e82da
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100e7f67
cmp esi, 0xfffffffd
je 0x100e82da
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100e7f67
cmp esi, 0xfffffffe
je 0x100e82da
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100e7f67
cmp esi, 0xffffffff
je 0x100e82da
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100e82da
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x140], 0x1016d060
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x140], 0x1016d05c
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x144], eax
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
push str._n_t_t_t_t_t_t__basemapalphaphongmask____1__n_n_t_t_t_t_t_t__envmap___________________env_cubemap__n_t_t_t_t_t_t__envmapfresnel____________1__n_t_t_t_t_t_t__envmaptint___t____________.2_.2_.2___n_t_t_t_t_t_n_t_t_t_t
push ebx
lea eax, [ebp - 0x140]
mov dword [ebp - 0x13c], 0x1016cd40
push str._VertexLitGeneric___n_t_t_t_t_____n_t_t_t_t_t_t__baseTexture_
push eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 4
call fcn.10042270
add esp, 8
push eax
call fcn.10042270
add esp, 8
push eax
call fcn.10042270
add esp, 8
lea eax, [ebp - 0x40]
mov ecx, 0x10259fa8
push eax
call fcn.1004f680
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x100]
mov ebx, 0xf
cmovae eax, dword [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
xor esi, esi
mov eax, edx
mov dword [ebp - 0x28], esi
and al, 0x22
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
movq qword [ebp - 0x94], xmm0
cmp al, 2
je 0x100e807b
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
test ecx, ecx
je 0x100e807b
mov eax, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x104]
cmovb ecx, dword [ebp - 0x104]
mov edx, dword [eax]
sub ecx, edx
jmp 0x100e80ac
test dl, 4
jne 0x100e80a0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
test ecx, ecx
je 0x100e80a0
mov eax, dword [ebp - 0x130]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0x110]
add ecx, dword [eax]
jmp 0x100e80ac
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
test edx, edx
je 0x100e80c0
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10045f20
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
cmp ebx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [0x10259f88], 0
mov dword [ebp - 0x7c], eax
je 0x100e813d
cmp byte [0x10259f89], 0
jne 0x100e818b
mov byte [0x10259f89], 1
xor esi, esi
nop dword [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x10259fa4]
xor ebx, dword [0x10259fa0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x8c], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x10259f8a]
xor al, bl
mov byte [esi + 0x10259f8a], al
inc esi
cmp esi, 0x15
jb 0x100e80f0
jmp 0x100e818b
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x10259fa4]
xor ebx, dword [0x10259fa0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x8c], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x10259f8a]
xor al, bl
mov byte [esi + 0x10259f8a], al
inc esi
cmp esi, 0x15
jb 0x100e8140
push 0x14
push 0x10259f8a
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
call fcn.10045f20
cmp dword [ebp - 0x44], 0x10
lea ebx, [ebp - 0x58]
push 0x28
cmovae ebx, dword [ebp - 0x58]
call fcn.101041ca
mov esi, eax
add esp, 4
test esi, esi
je 0x100e81db
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
jmp 0x100e81dd
xor esi, esi
push 0
push 0
push dword [ebp - 0x74]
mov ecx, esi
call dword [0x1025de94]
push 0
push 0
push 0
push 0
push dword [ebp - 0x7c]
mov ecx, esi
push ebx
call dword [0x1025de98]
mov ecx, dword [0x1025ba8c]
push esi
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14c]
call eax
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov edx, dword [ebp - 0x44]
mov dword [0x1026a274], esi
cmp edx, 0x10
jb 0x100e8251
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100e8247
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e8289
push edx
push ecx
call fcn.101041fa
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x100e8299
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100e828f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100e828f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10043cb0
mov ecx, dword [ebp - 0x80]
mov esi, dword [ebp - 0x88]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
push esi
mov ecx, 0x1026a27c
call fcn.10081c00
lea ecx, [ebp - 0x140]
call fcn.100e74b0
mov eax, dword [0x1026a274]
mov ecx, 0x10259fc8
mov eax, dword [eax]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x40]
push eax
call fcn.10050100
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov ecx, dword [0x1026a274]
cmovae eax, dword [ebp - 0x40]
push 1
push 0
push eax
call esi
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10043cb0
test esi, esi
je 0x100e8343
movss xmm0, dword [edi + 8]
sub esp, 0xc
mov eax, dword [esi]
mov ecx, esi
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 4]
mov eax, dword [eax + 0x2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi]
movss dword [esp], xmm0
call eax
push dword [ebp - 0x78]
push dword [0x1026a274]
jmp 0x100e83b5
mov eax, dword [edx]
mov ecx, 0x10259fe0
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x40]
push eax
call fcn.10050100
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov ebx, dword [ebp - 0x80]
mov ecx, ebx
cmovae eax, dword [ebp - 0x40]
push 1
push 0
push eax
call esi
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10043cb0
test esi, esi
je 0x100e83b1
movss xmm0, dword [edi + 8]
sub esp, 0xc
mov eax, dword [esi]
mov ecx, esi
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 4]
mov eax, dword [eax + 0x2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi]
movss dword [esp], xmm0
call eax
push dword [ebp - 0x78]
push ebx
push edi
lea ecx, [ebp - 0xa8]
call fcn.100e7260
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10104522
mov esp, ebp
pop ebp
ret 0x10