Function at 0x100e3d70
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 0x1014765c
push eax
mov dword fs:[0], esp
mov eax, 0x3050
push ebx
call fcn.1006dc80
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 0x100e473b
test dword [ebx + 0x20], 0x10000e01
jne 0x100e4726
mov eax, dword [0x101ef0e0]
cmp eax, dword [esi + 4]
jg 0x100e4771
mov eax, dword [0x101ef0b8]
cmp eax, dword [esi + 4]
jg 0x100e47ba
mov eax, dword [0x101ef0cc]
cmp eax, dword [esi + 4]
jg 0x100e4814
test edi, edi
je 0x100e4726
mov eax, dword [0x101e6718]
test eax, eax
jne 0x100e3e4f
mov edx, 0xe80c2f78
mov ecx, 0x101708c5
call fcn.100074c0
mov edx, 0xc10bf213
mov ecx, 0x10170861
mov esi, eax
call fcn.100074c0
push esi
push eax
call fcn.100fc040
mov dword [0x101e6718], eax
cmp dword [eax + edi], 0
jle 0x100e4726
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x100e4726
mov ecx, dword [0x101e671c]
call fcn.10007520
mov ecx, edi
mov esi, dword [eax]
call fcn.10007520
cmp esi, dword [eax]
je 0x100e459f
cmp dword [0x101e9a00], 0
jne 0x100e3e9b
mov ecx, dword [0x101ee04c]
mov edx, ecx
jmp 0x100e3eb1
sub esp, 8
push str.Model_textures
push str.debug_debugdrawflat
call fcn.100164c0
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 0x100e4726
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4726
mov ecx, dword [0x101ef0ec]
test ecx, ecx
je 0x100e4726
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4726
mov ecx, dword [0x101ef0e4]
test ecx, ecx
je 0x100e4726
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4726
mov ecx, dword [0x101ef0bc]
test ecx, ecx
je 0x100e4726
mov eax, dword [ecx]
mov eax, dword [eax + 0xa8]
call eax
test al, al
jne 0x100e4726
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 [0x1017f338]
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 0x100e454b
cmp byte [0x101e99f9], 0
mov al, byte [ebp - 0x14]
je 0x100e4161
test al, al
je 0x100e4161
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 [0x1017f338]
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 [0x1017f338]
mov eax, dword [eax + 0x70]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.100164f0
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 0x100e4317
test al, al
je 0x100e4317
mov eax, dword [0x101e671c]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100e4317
mov eax, dword [0x101e6718]
test eax, eax
jne 0x100e41bb
mov edx, 0xe80c2f78
mov ecx, 0x101708c5
call fcn.100074c0
mov edx, 0xc10bf213
mov ecx, 0x10170861
mov esi, eax
call fcn.100074c0
push esi
push eax
call fcn.100fc040
mov dword [0x101e6718], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + eax], 0
jle 0x100e4317
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 [0x1017f0d0]
jbe 0x100e4317
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 0x100e4317
push edi
call fcn.100d73e0
mov esi, eax
test esi, esi
je 0x100e4317
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 [0x1017f338]
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 [0x1017f338]
mov eax, dword [eax + 0x70]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.100164f0
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 0x100e431a
mov edi, dword [ebx + 0x20]
cmp dword [0x101e9a58], 0
je 0x100e4448
cmp byte [0x101e9a5d], 0
je 0x100e4448
cmp byte [ebp - 0x14], 0
je 0x100e4448
movss xmm1, dword [0x1017f338]
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 [0x1017f338]
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.100164f0
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 0x100e444b
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 [0x1017f338]
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 [0x1017f338]
mov eax, dword [eax + 0x70]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.100164f0
cmp dword [0x101e9a58], 0
je 0x100e454b
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.100164f0
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.100e4b20
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 0x100e4728
cmp byte [0x101e97ea], 0
je 0x100e4711
cmp byte [ebp - 0x14], 0
je 0x100e4711
movss xmm1, dword [0x1017f338]
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 [0x1017f338]
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 [0x1017f338]
movss dword [esp], xmm0
call eax
sub esp, 8
push dword [0x101ef0d0]
call fcn.100164f0
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.1006d20f
add esp, 4
cmp dword [0x101ef0d4], 0xffffffff
jne 0x100e3dd2
mov eax, dword [0x101e53a4]
push 0x101ef0d4
mov dword [0x101ef0f4], eax
call fcn.1006d1be
add esp, 4
jmp 0x100e3dd2
push 0x101ef0e0
call fcn.1006d20f
add esp, 4
cmp dword [0x101ef0e0], 0xffffffff
jne 0x100e3df0
mov ecx, 1
mov dword [ebp - 4], 0
call fcn.100e3370
push 0x101ef0e0
mov dword [0x101ef0e4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1006d1be
add esp, 4
jmp 0x100e3df0
push 0x101ef0b8
call fcn.1006d20f
add esp, 4
cmp dword [0x101ef0b8], 0xffffffff
jne 0x100e3e01
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.1006d1be
add esp, 4
jmp 0x100e3e01
push 0x101ef0cc
call fcn.1006d20f
add esp, 4
cmp dword [0x101ef0cc], 0xffffffff
jne 0x100e3e12
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], 0x8ba2bab1
mov dword [ebp - 0x1c], 0xb1b6a1b7
mov dword [ebp - 0x18], 0xd4a4b5b9
jmp 0x100e4871
xor byte [ebp + eax - 0x20], 0xd4
inc eax
cmp eax, 0xc
jb 0x100e4871
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], 0xbda1b3a2
mov dword [ebp - 0x1b], 0xbdbca3fb
mov word [ebp - 0x17], 0xb1a0
mov byte [ebp - 0x15], 0xd4
jmp 0x100e48b0
xor byte [ebp + eax - 0x1f], 0xd4
inc eax
cmp eax, 0xb
jb 0x100e48b0
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 [0x1017fe80]
sub esp, 0x18
xorps xmm0, xmmword [0x1017fd00]
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov byte [ebp - 0x38], 0xd4
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.100e30a0
push 0x101ef0cc
mov dword [0x101ee04c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1006d1be
add esp, 0x7c
jmp 0x100e3e12