Function at 0x100e3ec0
Capabilities:
Encode data using xor

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
mov eax, dword fs:[0]
push 0x1014782c
push eax
mov dword fs:[0], esp
mov eax, 0x3050
push ebx
call fcn.1006dd40
mov al, byte [0x101ee05c]
mov edx, dword [0x101e66ac]
mov byte [ebp - 0x14], al
mov eax, dword fs:[0x2c]
push esi
push edi
mov edi, ecx
mov esi, dword [eax + edx*4]
mov eax, dword [0x101ef0d4]
cmp eax, dword [esi + 4]
jg 0x100e488b
test dword [ebx + 0x20], 0x10000e01
jne 0x100e4876
mov eax, dword [0x101ef0e0]
cmp eax, dword [esi + 4]
jg 0x100e48c1
mov eax, dword [0x101ef0b8]
cmp eax, dword [esi + 4]
jg 0x100e490a
mov eax, dword [0x101ef0cc]
cmp eax, dword [esi + 4]
jg 0x100e4964
test edi, edi
je 0x100e4876
mov eax, dword [0x101e6718]
test eax, eax
jne 0x100e3f9f
mov edx, 0xe80c2f78
mov ecx, 0x10170905
call fcn.100074c0
mov edx, 0xc10bf213
mov ecx, 0x101708a1
mov esi, eax
call fcn.100074c0
push esi
push eax
call fcn.100fc160
mov dword [0x101e6718], eax
cmp dword [eax + edi], 0
jle 0x100e4876
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x100e4876
mov ecx, dword [0x101e671c]
call fcn.10007520
mov ecx, edi
mov esi, dword [eax]
call fcn.10007520
cmp esi, dword [eax]
je 0x100e46ef
cmp dword [0x101e9a00], 0
jne 0x100e3feb
mov ecx, dword [0x101ee04c]
mov edx, ecx
jmp 0x100e4001
sub esp, 8
push str.Model_textures
push str.debug_debugdrawflat
call fcn.100164e0
mov ecx, eax
mov edx, eax
cmp dword [0x101e9a58], 1
mov eax, dword [0x101ef0bc]
cmove eax, dword [0x101ef0e4]
mov dword [0x101ef0d0], ecx
mov dword [0x101ef0ec], eax
test edx, edx
je 0x100e4876
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4876
mov ecx, dword [0x101ef0ec]
test ecx, ecx
je 0x100e4876
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4876
mov ecx, dword [0x101ef0e4]
test ecx, ecx
je 0x100e4876
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4876
mov ecx, dword [0x101ef0bc]
test ecx, ecx
je 0x100e4876
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4876
mov ecx, dword [0x101ef0d0]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x101ef0e4]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x101ef0bc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x101ef0ec]
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp byte [0x101e99f8], 0
movss xmm1, dword [0x1017f2b8]
movss xmm0, dword [0x101e9a04]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a08]
mulss xmm0, xmm1
mov dword [ebp - 0x2c], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a0c]
mulss xmm0, xmm1
mov dword [ebp - 0x30], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a10]
mulss xmm0, xmm1
mov dword [ebp - 0x34], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a24]
mulss xmm0, xmm1
mov dword [ebp - 0x24], eax
cvttss2si esi, xmm0
movss xmm0, dword [0x101e9a28]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a2c]
mulss xmm0, xmm1
mov dword [ebp - 0x54], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a30]
mulss xmm0, xmm1
mov dword [ebp - 0x58], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a14]
mulss xmm0, xmm1
mov dword [ebp - 0x4c], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a18]
mulss xmm0, xmm1
mov dword [ebp - 0x5c], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a1c]
mulss xmm0, xmm1
mov dword [ebp - 0x50], eax
cvttss2si eax, xmm0
movss xmm0, dword [0x101e9a20]
mulss xmm0, xmm1
mov dword [ebp - 0x18], eax
cvttss2si eax, xmm0
mov dword [ebp - 0x28], eax
je 0x100e469b
cmp byte [0x101e99f9], 0
mov al, byte [ebp - 0x14]
je 0x100e42b1
test al, al
je 0x100e42b1
mov ecx, dword [0x101ef0d0]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x101ef0d0]
push 1
push 0x8000
mov eax, dword [ecx]
call dword [eax + 0x74]
cmp byte [0x101e99fd], 0
mov ecx, dword [0x101ef0d0]
setne al
movzx eax, al
push eax
mov edx, dword [ecx]
push 0x10000000
call dword [edx + 0x74]
movss xmm1, dword [0x1017f2b8]
lea edx, [ebp - 0x44]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov ecx, dword [0x101ee054]
push edx
mov eax, dword [ecx]
divss xmm0, xmm1
movss dword [ebp - 0x44], xmm0
movd xmm0, dword [ebp - 0x54]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [ebp - 0x40], xmm0
movd xmm0, dword [ebp - 0x58]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [ebp - 0x3c], xmm0
mov eax, dword [eax + 0x6c]
call eax
movd xmm0, dword [ebp - 0x4c]
mov ecx, dword [0x101ee054]
cvtdq2ps xmm0, xmm0
push ecx
mov eax, dword [ecx]
divss xmm0, dword [0x1017f2b8]
mov eax, dword [eax + 0x70]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.10016510
mov eax, dword [ebx + 0x20]
xor edx, edx
mov ecx, dword [0x101ee054]
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
call dword [0x101ef0f4]
mov al, byte [ebp - 0x14]
cmp byte [0x101e99fa], 0
je 0x100e4467
test al, al
je 0x100e4467
mov eax, dword [0x101e671c]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100e4467
mov eax, dword [0x101e6718]
test eax, eax
jne 0x100e430b
mov edx, 0xe80c2f78
mov ecx, 0x10170905
call fcn.100074c0
mov edx, 0xc10bf213
mov ecx, 0x101708a1
mov esi, eax
call fcn.100074c0
push esi
push eax
call fcn.100fc160
mov dword [0x101e6718], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + eax], 0
jle 0x100e4467
mov ecx, edi
call fcn.10007620
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10007480
comiss xmm0, dword [0x1017f050]
jbe 0x100e4467
mov eax, dword [0x101ee7c4]
lea ecx, [edi + 8]
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x101ee7c4]
push eax
call esi
cmp dword [eax + 0x10], 0
je 0x100e4467
push edi
call fcn.100d7530
mov esi, eax
test esi, esi
je 0x100e4467
mov ecx, dword [0x101ef0d0]
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ecx, dword [0x101ef0d0]
push 1
push 0x8000
mov eax, dword [ecx]
call dword [eax + 0x74]
cmp byte [0x101e99fd], 0
mov ecx, dword [0x101ef0d0]
setne al
movzx eax, al
push eax
mov edx, dword [ecx]
push 0x10000000
call dword [edx + 0x74]
movd xmm0, dword [ebp - 0x5c]
lea edx, [ebp - 0x44]
movss xmm1, dword [0x1017f2b8]
cvtdq2ps xmm0, xmm0
mov ecx, dword [0x101ee054]
push edx
mov eax, dword [ecx]
divss xmm0, xmm1
movss dword [ebp - 0x44], xmm0
movd xmm0, dword [ebp - 0x50]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [ebp - 0x40], xmm0
movd xmm0, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [ebp - 0x3c], xmm0
mov eax, dword [eax + 0x6c]
call eax
movd xmm0, dword [ebp - 0x28]
mov ecx, dword [0x101ee054]
cvtdq2ps xmm0, xmm0
push ecx
mov eax, dword [ecx]
divss xmm0, dword [0x1017f2b8]
mov eax, dword [eax + 0x70]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.10016510
mov edi, dword [ebx + 0x20]
xor edx, edx
imul eax, dword [esi + 0x1c], 0x3000
mov ecx, dword [0x101ee054]
push edi
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
add eax, 0x11ec
push dword [ebx + 0x14]
add eax, esi
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call dword [0x101ef0f4]
jmp 0x100e446a
mov edi, dword [ebx + 0x20]
cmp dword [0x101e9a58], 0
je 0x100e4598
cmp byte [0x101e9a5d], 0
je 0x100e4598
cmp byte [ebp - 0x14], 0
je 0x100e4598
movss xmm1, dword [0x1017f2b8]
movss xmm0, dword [0x101e9a70]
mov ecx, dword [0x101ef0ec]
mulss xmm0, xmm1
push 1
push 0
mov eax, dword [ecx]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [0x101e9a74]
mulss xmm0, xmm1
mov eax, dword [eax + 0x2c]
push str._envmaptint
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [0x101e9a78]
mulss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
call eax
cvttss2si ecx, dword [ebp - 0x28]
sub esp, 0xc
mov edx, eax
mov esi, dword [edx]
movss xmm1, dword [0x1017f2b8]
cvttss2si eax, dword [ebp - 0x50]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvttss2si ecx, dword [ebp - 0x18]
divss xmm0, xmm1
movss dword [esp + 8], xmm0
movd xmm0, ecx
mov ecx, edx
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [esi + 0x2c]
divss xmm0, xmm1
movss dword [esp], xmm0
call eax
mov ecx, dword [0x101ef0ec]
push 1
push 0x8000
mov eax, dword [ecx]
call dword [eax + 0x74]
cmp byte [0x101e9a5c], 0
mov ecx, dword [0x101ef0ec]
setne al
movzx eax, al
push eax
mov edx, dword [ecx]
push 0x10000000
call dword [edx + 0x74]
sub esp, 8
push dword [0x101ef0ec]
call fcn.10016510
mov esi, dword [ebx + 0x1c]
xor edx, edx
mov ecx, dword [0x101ee054]
push edi
push esi
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
call dword [0x101ef0f4]
jmp 0x100e459b
mov esi, dword [ebx + 0x1c]
mov ecx, dword [0x101ef0d0]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x101ef0d0]
push 0
push 0x8000
mov eax, dword [ecx]
call dword [eax + 0x74]
movd xmm0, dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
movss xmm1, dword [0x1017f2b8]
cvtdq2ps xmm0, xmm0
mov ecx, dword [0x101ee054]
push edx
mov eax, dword [ecx]
divss xmm0, xmm1
movss dword [ebp - 0x44], xmm0
movd xmm0, dword [ebp - 0x30]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [ebp - 0x40], xmm0
movd xmm0, dword [ebp - 0x34]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [ebp - 0x3c], xmm0
mov eax, dword [eax + 0x6c]
call eax
movd xmm0, dword [ebp - 0x24]
mov ecx, dword [0x101ee054]
cvtdq2ps xmm0, xmm0
push ecx
mov eax, dword [ecx]
divss xmm0, dword [0x1017f2b8]
mov eax, dword [eax + 0x70]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.10016510
cmp dword [0x101e9a58], 0
je 0x100e469b
mov ecx, dword [0x101ee054]
xor edx, edx
push edi
push esi
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
call dword [0x101ef0f4]
mov ecx, dword [0x101ef0ec]
push 0
push 0x8000
mov eax, dword [ecx]
call dword [eax + 0x74]
cmp byte [0x101e9a5c], 0
mov ecx, dword [0x101ef0ec]
setne al
movzx eax, al
push eax
mov edx, dword [ecx]
push 0x10000000
call dword [edx + 0x74]
sub esp, 8
push dword [0x101ef0ec]
call fcn.10016510
movzx eax, byte [0x101e99fc]
mov edx, dword [0x101ef0d0]
mov ecx, dword [0x101e9a00]
push 0x101e9a60
push dword [0x101ef0ec]
push 0x101e9a34
push 0x101e9a44
push eax
movzx eax, byte [0x101e99fb]
push eax
push dword [0x101e9a54]
call fcn.100e4c70
add esp, 0x1c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [0x101e671c], edi
jne 0x100e4878
cmp byte [0x101e97ea], 0
je 0x100e4861
cmp byte [ebp - 0x14], 0
je 0x100e4861
movss xmm1, dword [0x1017f2b8]
movss xmm0, dword [0x101e97ec]
mov ecx, dword [0x101ef0d0]
mulss xmm0, xmm1
mov eax, dword [ecx]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [0x101e97f0]
mulss xmm0, xmm1
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [0x101e97f4]
mulss xmm0, xmm1
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [0x101e97f8]
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
call dword [eax + 0x30]
mov ecx, dword [0x101ef0d0]
push 0
push 0x8000
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x101ef0d0]
push 0
push 0x10000000
mov eax, dword [ecx]
call dword [eax + 0x74]
cvttss2si eax, dword [ebp - 0x24]
lea edx, [ebp - 0x44]
mov ecx, dword [0x101ee054]
push edx
movss xmm1, dword [0x1017f2b8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvttss2si eax, dword [ebp - 0x34]
divss xmm0, xmm1
movss dword [ebp - 0x44], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvttss2si eax, dword [ebp - 0x30]
divss xmm0, xmm1
movss dword [ebp - 0x40], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [ecx]
divss xmm0, xmm1
movss dword [ebp - 0x3c], xmm0
mov eax, dword [eax + 0x6c]
call eax
cvttss2si eax, dword [ebp - 0x2c]
mov ecx, dword [0x101ee054]
push ecx
mov edx, dword [ecx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x70]
divss xmm0, dword [0x1017f2b8]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.10016510
mov eax, dword [0x101ee7f0]
add eax, 0x5200
push 0x3000
push eax
lea eax, [ebp - 0x305c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x20]
add esp, 0xc
mov ecx, dword [0x101ee054]
xor edx, edx
push eax
push dword [ebx + 0x1c]
lea eax, [ebp - 0x305c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call dword [0x101ef0f4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x101ef0d4
call fcn.1006d07f
add esp, 4
cmp dword [0x101ef0d4], 0xffffffff
jne 0x100e3f22
mov eax, dword [0x101e53a4]
push 0x101ef0d4
mov dword [0x101ef0f4], eax
call fcn.1006d02e
add esp, 4
jmp 0x100e3f22
push 0x101ef0e0
call fcn.1006d07f
add esp, 4
cmp dword [0x101ef0e0], 0xffffffff
jne 0x100e3f40
mov ecx, 1
mov dword [ebp - 4], 0
call fcn.100e34c0
push 0x101ef0e0
mov dword [0x101ef0e4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1006d02e
add esp, 4
jmp 0x100e3f40
push 0x101ef0b8
call fcn.1006d07f
add esp, 4
cmp dword [0x101ef0b8], 0xffffffff
jne 0x100e3f51
mov dword [ebp - 4], 1
mov ecx, dword [0x101ee058]
push 0
push 1
push 0
mov eax, dword [ecx]
push str.dev_glow_armsrace
mov eax, dword [eax + 0x150]
call eax
push 0x101ef0b8
mov dword [0x101ef0bc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1006d02e
add esp, 4
jmp 0x100e3f51
push 0x101ef0cc
call fcn.1006d07f
add esp, 4
cmp dword [0x101ef0cc], 0xffffffff
jne 0x100e3f62
sub esp, 0x18
mov dword [ebp - 4], 7
mov eax, esp
mov dword [ebp - 0x24], esp
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x20], 0xdbf2eae1
mov dword [ebp - 0x1c], 0xe1e6f1e7
mov dword [ebp - 0x18], 0x84f4e5e9
jmp 0x100e49c1
xor byte [ebp + eax - 0x20], 0x84
inc eax
cmp eax, 0xc
jb 0x100e49c1
sub esp, 0x18
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.10002e90
mov byte [ebp - 4], 9
xor eax, eax
mov dword [ebp - 0x1f], 0xedf1e3f2
mov dword [ebp - 0x1b], 0xedecf3ab
mov word [ebp - 0x17], 0xe1f0
mov byte [ebp - 0x15], 0x84
jmp 0x100e4a00
xor byte [ebp + eax - 0x1f], 0x84
inc eax
cmp eax, 0xb
jb 0x100e4a00
sub esp, 0x18
lea eax, [ebp - 0x1f]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.10002e90
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x48]
movaps xmm0, xmmword [0x1017f9b0]
sub esp, 0x18
xorps xmm0, xmmword [0x1017ff50]
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov byte [ebp - 0x38], 0x84
push eax
movups xmmword [ebp - 0x48], xmm0
mov byte [ebp - 0x38], 0
call fcn.10002e90
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1b]
mov dword [ebp - 0x1b], 0x74737563
mov ecx, esp
mov word [ebp - 0x17], 0x6d6f
mov byte [ebp - 0x15], 0
push eax
call fcn.10002e90
xor dl, dl
mov byte [ebp - 4], 7
xor cl, cl
call fcn.100e31f0
push 0x101ef0cc
mov dword [0x101ee04c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1006d02e
add esp, 0x7c
jmp 0x100e3f62