Function at 0x100f0570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x102cdf00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x78], eax
cmp byte [esi], 0
jne 0x100f05a9
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f802
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x102cef18]
lea eax, [esi + 0x20]
mov dword [ebp - 0x7c], eax
push edi
lea edi, [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x84], eax
call dword [ebp - 0x84]
mov ecx, dword [0x102cef18]
lea edx, [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
fstp dword [ebp - 0x98]
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 - 0xa4], ebx
mov dword [ebp - 0xac], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x100f0787
push dword [ebp - 0x78]
lea ecx, [ebp - 0xac]
push dword [ebx + 0x21c]
push edi
call fcn.100efd00
movd xmm1, dword [esi + 8]
lea ecx, [ebp - 0x94]
movss xmm2, dword [0x101746c8]
lea eax, [ebp - 0x90]
cvtdq2ps xmm1, xmm1
mov ebx, dword [ebx + 0x224]
lea esi, [ebp - 0x74]
mov dword [ebp - 0x74], 0x3f800000
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x84], ebx
xorps xmm0, xmm0
mulss xmm1, dword [0x101788e8]
subss xmm1, dword [0x10174684]
comiss xmm1, xmm0
movss dword [ebp - 0x94], xmm1
cmovae eax, ecx
mov ecx, 0x102cd260
comiss xmm2, xmm1
cmovae esi, eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.100509f0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 1
cmova eax, dword [ebp - 0x28]
mov ecx, ebx
push 0
push eax
call edi
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.10044760
mov ebx, dword [ebp - 0x7c]
test edi, edi
je 0x100f0704
movss xmm0, dword [ebx + 8]
sub esp, 0xc
mov eax, dword [edi]
mov ecx, edi
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 [ebp - 0x84]
mov ecx, 0x102cd278
mov eax, dword [eax]
mov edi, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.10050510
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x84]
cmova eax, dword [ebp - 0x28]
push 1
push 0
push eax
call edi
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.10044760
test edi, edi
je 0x100f0778
movss xmm0, dword [0x101746e8]
sub esp, 0xc
movss xmm1, dword [esi]
mov ecx, edi
mov eax, dword [edi]
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 dword [ebp - 0x84]
push ebx
jmp 0x100f0d7b
mov edx, dword [ebx + eax*4 + 0x214]
mov dword [ebp - 0x74], edx
cmp eax, 7
jne 0x100f0826
mov ebx, dword [ebx + 0x230]
mov ecx, 0x102cd2a0
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.100509f0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 1
cmova eax, dword [ebp - 0x28]
mov ecx, ebx
push 0
push eax
call esi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10044760
test esi, esi
je 0x100f0800
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 0x100f0d76
cmp eax, 6
jne 0x100f0d13
lea eax, [esi + 0x30]
mov ecx, eax
mov dword [ebp - 0x7c], eax
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f0840
sub ecx, esi
je 0x100f0d13
mov eax, dword [0x102db188]
test al, 1
jne 0x100f086b
or eax, 1
mov dword [0x102db188], eax
mov eax, dword [ebx + 0x22c]
mov dword [0x102db184], eax
mov eax, dword [0x102db18c]
test al, 1
jne 0x100f0889
or eax, 1
push 0x10172b00
mov dword [0x102db18c], eax
call fcn.1010f7ed
add esp, 4
mov eax, dword [0x102db184]
mov ecx, 0x102cd2b8
mov eax, dword [eax]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x58]
push eax
call fcn.10050ac0
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
mov ecx, dword [0x102db184]
cmova eax, dword [ebp - 0x58]
push 1
push 0
push eax
call esi
mov ebx, eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x90], ebx
call fcn.10044760
test ebx, ebx
je 0x100f0c9f
mov ebx, dword [ebp - 0x7c]
mov edx, ebx
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100f08e0
mov esi, dword [0x102cc498]
sub edx, ecx
cmp dword [0x102cc49c], 0xf
mov ecx, 0x102cc488
cmova ecx, dword [0x102cc488]
cmp esi, edx
jne 0x100f0957
mov edx, ebx
sub esi, 4
jb 0x100f0921
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100f0926
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100f0910
cmp esi, 0xfffffffc
je 0x100f0953
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100f0957
cmp esi, 0xfffffffd
je 0x100f0953
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100f0957
cmp esi, 0xfffffffe
je 0x100f0953
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100f0957
cmp esi, 0xffffffff
je 0x100f0953
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100f0957
mov al, 1
jmp 0x100f0959
xor al, al
test al, al
jne 0x100f0c9f
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x144], 0x10178e70
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 - 0x140]
push eax
lea ecx, [ebp - 0x144]
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 - 0x144]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x144], 0x10178e6c
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x148], eax
lea ecx, [ebp - 0x140]
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 - 0x144]
mov dword [ebp - 0x140], 0x10178b50
push str._VertexLitGeneric___n_t_t_t_t_____n_t_t_t_t_t_t__baseTexture_
push eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 4
call fcn.10042d30
add esp, 8
push eax
call fcn.10042d30
add esp, 8
push eax
call fcn.10042d30
add esp, 8
lea eax, [ebp - 0x40]
mov ecx, 0x102cd2f0
push eax
call fcn.10050030
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x104]
xorps xmm0, xmm0
cmova eax, dword [ebp - 0x40]
mov esi, 0xf
mov dword [ebp - 0x74], eax
mov eax, edx
and al, 0x22
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], esi
movq qword [ebp - 0x8c], xmm0
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x28], 0
cmp al, 2
je 0x100f0a86
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
test ecx, ecx
je 0x100f0a86
mov eax, dword [ebp - 0x130]
cmp ecx, dword [ebp - 0x108]
cmovb ecx, dword [ebp - 0x108]
mov edx, dword [eax]
sub ecx, edx
jmp 0x100f0ab7
test dl, 4
jne 0x100f0aab
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
test ecx, ecx
je 0x100f0aab
mov eax, dword [ebp - 0x134]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0x114]
add ecx, dword [eax]
jmp 0x100f0ab7
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x100f0ac8
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100469a0
mov esi, dword [ebp - 0x14]
cmp esi, 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
cmp byte [0x102cd2d0], 0
mov dword [ebp - 0x94], eax
je 0x100f0b47
cmp byte [0x102cd2d1], 0
jne 0x100f0b95
mov byte [0x102cd2d1], 1
xor esi, esi
nop word [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x102cd2ec]
xor ebx, dword [0x102cd2e8]
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 eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x102cd2d2]
xor al, bl
mov byte [esi + 0x102cd2d2], al
inc esi
cmp esi, 0x15
jb 0x100f0b00
jmp 0x100f0b95
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x102cd2ec]
xor ebx, dword [0x102cd2e8]
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 eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x102cd2d2]
xor al, bl
mov byte [esi + 0x102cd2d2], al
inc esi
cmp esi, 0x15
jb 0x100f0b50
lea eax, [ebp - 0x7d]
push eax
push 0x102cd2e6
push 0x102cd2d2
lea ecx, [ebp - 0x70]
call fcn.1004f130
cmp dword [ebp - 0x5c], 0xf
lea ebx, [ebp - 0x70]
push 0x28
cmova ebx, dword [ebp - 0x70]
call fcn.1010f4aa
mov esi, eax
add esp, 4
test esi, esi
je 0x100f0bd7
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
jmp 0x100f0bd9
xor esi, esi
push 0
push 0
push dword [ebp - 0x74]
mov ecx, esi
call dword [0x102cf774]
push 0
push 0
push 0
push 0
push dword [ebp - 0x94]
mov ecx, esi
push ebx
call dword [0x102cf778]
mov ecx, dword [0x102ceecc]
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]
lea ecx, [ebp - 0x70]
mov dword [0x102db184], esi
call fcn.10044760
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100f0c5e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100f0c54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100f0c54
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f4da
add esp, 8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10044760
mov ecx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x7c]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
push esi
mov ecx, 0x102cc488
call fcn.10056500
lea ecx, [ebp - 0x144]
call fcn.100eff50
mov eax, dword [0x102db184]
mov ecx, 0x102cd310
mov eax, dword [eax]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x40]
push eax
call fcn.100509f0
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov ecx, dword [0x102db184]
cmova eax, dword [ebp - 0x40]
push 1
push 0
push eax
call esi
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10044760
test esi, esi
je 0x100f0d08
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 [0x102db184]
jmp 0x100f0d7a
mov eax, dword [edx]
mov ecx, 0x102cd328
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x40]
push eax
call fcn.100509f0
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov ebx, dword [ebp - 0x74]
mov ecx, ebx
cmova eax, dword [ebp - 0x40]
push 1
push 0
push eax
call esi
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10044760
test esi, esi
je 0x100f0d76
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 - 0xac]
call fcn.100efd00
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010f802
mov esp, ebp
pop ebp
ret 0x10