Function at 0x100ec520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012867d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101a30c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x101aeac4]
sub eax, 1
je 0x100ec726
sub eax, 1
jne case.default.0x100ec5dc
mov eax, dword [0x101df6d0]
test al, 4
jne 0x100ec5c8
or eax, 4
mov dword [0x101df6d0], eax
mov eax, dword [0x101d4430]
mov edx, dword [eax + 0x30]
jmp 0x100ec5bc
mov ebx, dword [edx + 0xc]
mov edi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ebx + ecx], 0
jne 0x100ec590
xor esi, esi
test ecx, ecx
je 0x100ec5b9
nop dword [eax]
movsx eax, byte [ebx + esi]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, ecx
jb 0x100ec5a0
cmp edi, 0xe6a08fc9
je 0x100ec5c0
mov edx, dword [edx + 4]
test edx, edx
jne 0x100ec580
mov dword [0x101df6d8], edx
jmp 0x100ec5ce
mov edx, dword [0x101df6d8]
mov eax, dword [0x101aeb64]
cmp eax, 0x12
ja case.default.0x100ec5dc
jmp dword [eax*4 + 0x100ecf14]
mov eax, dword [edx]
mov ecx, edx
push str.cs_tibet
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.embassy
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.italy
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_cs15_daylight01_hdr
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_csgo_cloudy01
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_csgo_night02
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_csgo_night02b
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_csgo_night_flat
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_day02_05_hdr
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_day02_05
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_l4d_rural02_ldr
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.vertigo_hdr
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.vertigoblue_hdr
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.vertigo
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.vietnam
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.sky_dust
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.jungle
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.nukeblank
mov eax, dword [eax + 0x38]
jmp 0x100ec867
mov eax, dword [edx]
mov ecx, edx
push str.office
mov eax, dword [eax + 0x38]
jmp 0x100ec867
cmp byte [0x101dcd09], 0
jne 0x100ec771
cmp byte [0x101a3da4], 0
jne 0x100ec771
mov ebx, dword [0x101d4430]
test ebx, ebx
je 0x100ec761
mov eax, dword [ebx + 0x34]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
je 0x100ec761
nop
and dword [eax + 0x14], 0xffffffed
mov eax, dword [eax + 4]
test eax, eax
jne 0x100ec750
mov ebx, dword [0x101d4430]
mov byte [0x101a3da4], 1
mov byte [0x101dcd09], 1
jmp 0x100ec777
mov ebx, dword [0x101d4430]
mov eax, dword [0x101df6d0]
test al, 1
jne 0x100ec7d8
or eax, 1
mov dword [0x101df6d0], eax
mov ebx, dword [ebx + 0x30]
jmp 0x100ec7cc
mov edi, dword [ebx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [edi + ecx], 0
jne 0x100ec7a0
xor edx, edx
test ecx, ecx
je 0x100ec7c9
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100ec7b0
cmp esi, 0xe6a08fc9
je 0x100ec7d0
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x100ec790
mov dword [0x101df6dc], ebx
jmp 0x100ec7de
mov ebx, dword [0x101df6dc]
mov eax, dword [ebx]
mov ecx, ebx
push str.sky_descent
mov eax, dword [eax + 0x38]
call eax
cmp byte [0x101a3da4], 0
je case.default.0x100ec5dc
mov eax, dword [0x101df6d0]
test al, 2
jne 0x100ec858
or eax, 2
mov dword [0x101df6d0], eax
mov eax, dword [0x101d4430]
mov ebx, dword [eax + 0x30]
jmp 0x100ec84c
mov edi, dword [ebx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [edi + ecx], 0
jne 0x100ec820
xor edx, edx
test ecx, ecx
je 0x100ec849
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100ec830
cmp esi, 0xa17fa712
je 0x100ec850
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x100ec810
mov dword [0x101df6cc], ebx
jmp 0x100ec85e
mov ebx, dword [0x101df6cc]
mov eax, dword [ebx]
mov ecx, ebx
push 0
mov eax, dword [eax + 0x40]
call eax
call fcn.100ecf60
xor eax, eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
movq qword [ebp - 0x1c], xmm0
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
xor esi, esi
movq qword [ebp - 0x34], xmm0
xor ebx, ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x2c], eax
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov eax, dword [0x101aef74]
mov ecx, dword [0x101d4464]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x50], eax
mov eax, dword [0x101aeee4]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x158]
call eax
mov ecx, dword [0x101d4464]
movzx esi, ax
mov dword [ebp - 0x4c], esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x160]
call eax
cmp si, ax
je 0x100ecab1
nop
mov ecx, dword [0x101d4464]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x164]
call eax
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x100eca6b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov edi, eax
mov dword [ebp - 0x3c], 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + edi], 0
jne 0x100ec942
xor edx, edx
test ecx, ecx
je 0x100ec996
mov esi, dword [ebp - 0x3c]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100ec952
cmp esi, 0x7e3ce5c1
mov esi, dword [ebp - 0x38]
jne 0x100ec996
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x54]
je 0x100ec980
mov dword [eax], esi
add eax, 4
mov dword [ebp - 0x24], eax
jmp 0x100ec996
lea ecx, [ebp - 0x38]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10037770
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov edi, eax
mov dword [ebp - 0x3c], 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x100ec9b0
xor edx, edx
test ecx, ecx
je 0x100eca03
mov esi, dword [ebp - 0x3c]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100ec9c0
cmp esi, 0xbb2da711
mov esi, dword [ebp - 0x38]
jne 0x100eca03
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x5c]
je 0x100ec9ee
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0x18], edi
jmp 0x100eca6b
lea eax, [ebp - 0x38]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.10037770
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
jmp 0x100eca68
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov edi, eax
mov dword [ebp - 0x3c], 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + edi], 0
jne 0x100eca17
xor edx, edx
test ecx, ecx
je 0x100eca68
mov esi, dword [ebp - 0x3c]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100eca27
cmp esi, 0xd402d032
mov esi, dword [ebp - 0x38]
jne 0x100eca68
cmp ebx, dword [ebp - 0x58]
je 0x100eca52
mov dword [ebx], esi
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x100eca68
lea eax, [ebp - 0x38]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.10037770
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov edi, dword [ebp - 0x18]
mov ecx, dword [0x101d4464]
push dword [ebp - 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x15c]
call eax
mov ecx, dword [0x101d4464]
movzx esi, ax
mov dword [ebp - 0x4c], esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x160]
call eax
cmp si, ax
jne 0x100ec910
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], eax
jmp 0x100ecab3
xor esi, esi
push 0
push dword [0x101af840]
push dword [0x101af83c]
call fcn.100ed6b0
cmp eax, dword [0x101af840]
je 0x100ecd06
cmp byte [0x101aee38], 0
movss xmm0, dword [0x101922f0]
jne 0x100ecb1c
cmp esi, edi
je 0x100ecb93
nop dword [eax + eax]
mov ecx, dword [esi]
sub esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 8], 0x3e3851ec
mov dword [esp + 4], 0x3e23d70a
mov dword [esp], 0x3e2e147b
mov eax, dword [eax + 0x70]
call eax
add esi, 4
cmp esi, edi
jne 0x100ecaf0
jmp 0x100ecb93
cmp esi, edi
je 0x100ecb93
movzx eax, byte [ebp - 0x4e]
movd xmm1, eax
movzx eax, byte [ebp - 0x4f]
cvtdq2ps xmm1, xmm1
movd xmm2, eax
mov eax, dword [ebp - 0x44]
movzx eax, al
cvtdq2ps xmm2, xmm2
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm3, xmm0
movss dword [ebp - 0x4c], xmm1
movss dword [ebp - 0x50], xmm2
movss dword [ebp - 0x44], xmm3
nop
mov ecx, dword [esi]
sub esp, 0xc
mov eax, dword [ecx]
movss dword [esp + 8], xmm1
movss dword [esp + 4], xmm2
movss dword [esp], xmm3
mov eax, dword [eax + 0x70]
call eax
movss xmm1, dword [ebp - 0x4c]
add esi, 4
movss xmm2, dword [ebp - 0x50]
movss xmm3, dword [ebp - 0x44]
cmp esi, edi
jne 0x100ecb60
mov ecx, dword [0x101d4558]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x100ecbb3
mov ecx, dword [0x101d4558]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
cmp byte [0x101aee38], 0
mov esi, dword [ebp - 0x38]
jne 0x100ecbf6
cmp esi, ebx
je 0x100ecc73
mov ecx, dword [esi]
sub esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 8], 0x3e99999a
mov dword [esp + 4], 0x3e99999a
mov dword [esp], 0x3e99999a
mov eax, dword [eax + 0x70]
call eax
add esi, 4
cmp esi, ebx
jne 0x100ecbc7
jmp 0x100ecc73
cmp esi, ebx
je 0x100ecc73
movzx eax, byte [ebp - 0x3e]
movss xmm0, dword [0x101922f0]
movd xmm1, eax
movzx eax, byte [ebp - 0x3f]
cvtdq2ps xmm1, xmm1
movd xmm2, eax
mov eax, dword [ebp - 0x60]
movzx eax, al
cvtdq2ps xmm2, xmm2
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm3, xmm0
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x40], xmm2
movss dword [ebp - 0x60], xmm3
mov ecx, dword [esi]
sub esp, 0xc
mov eax, dword [ecx]
movss dword [esp + 8], xmm1
movss dword [esp + 4], xmm2
movss dword [esp], xmm3
mov eax, dword [eax + 0x70]
call eax
movss xmm1, dword [ebp - 0x44]
add esi, 4
movss xmm2, dword [ebp - 0x40]
movss xmm3, dword [ebp - 0x60]
cmp esi, ebx
jne 0x100ecc40
cmp byte [0x101aed18], 0
je 0x100ecdc0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x24]
je 0x100ecdc0
mov ebx, dword [ebp - 0x24]
mov esi, dword [eax]
sub esp, 0xc
movzx eax, byte [0x101aedc6]
movss xmm1, dword [0x101922f0]
mov edi, dword [esi]
movd xmm0, eax
mov eax, dword [0x101aedc4]
mov ecx, eax
cvtdq2ps xmm0, xmm0
shr ecx, 8
movzx edx, cl
mov ecx, esi
movzx eax, al
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, eax
mov eax, dword [edi + 0x70]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp], xmm0
call eax
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x100ecc92
mov ebx, dword [ebp - 0x30]
jmp 0x100ecdc0
cmp esi, edi
je 0x100ecd3a
nop word [eax + eax]
mov ecx, dword [esi]
sub esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
mov eax, dword [eax + 0x70]
call eax
add esi, 4
cmp esi, edi
jne 0x100ecd10
mov ecx, dword [0x101d4558]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 0xffffffff
je 0x100ecd5b
mov ecx, dword [0x101d4558]
push 0xffffffffffffffff
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov esi, dword [ebp - 0x38]
cmp esi, ebx
je 0x100ecd8c
mov ecx, dword [esi]
sub esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
mov eax, dword [eax + 0x70]
call eax
add esi, 4
cmp esi, ebx
jne 0x100ecd62
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x24]
cmp esi, edi
je 0x100ecdc0
mov ecx, dword [esi]
sub esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
mov eax, dword [eax + 0x70]
call eax
add esi, 4
cmp esi, edi
jne 0x100ecd96
push 6
push dword [0x101ae978]
push dword [0x101ae974]
call fcn.100ed6b0
mov ecx, dword [0x101d4558]
cmp eax, dword [0x101ae978]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
je 0x100ece1e
call eax
test eax, eax
je 0x100ecdfb
mov ecx, dword [0x101d4558]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov edi, dword [ebp - 0x38]
mov esi, edi
cmp esi, ebx
je 0x100ece58
mov ecx, dword [esi]
push ecx
mov dword [esp], 0x3f59999a
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
add esi, 4
cmp esi, ebx
jne 0x100ece04
jmp 0x100ece58
call eax
cmp eax, 0xffffffff
je 0x100ece34
mov ecx, dword [0x101d4558]
push 0xffffffffffffffff
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov edi, dword [ebp - 0x38]
mov esi, edi
cmp esi, ebx
je 0x100ece58
nop dword [eax]
mov ecx, dword [esi]
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
add esi, 4
cmp esi, ebx
jne 0x100ece40
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x100ece8f
mov edx, dword [ebp - 0x54]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x100ece85
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ecf0e
push edx
push ecx
call fcn.100ef33f
add esp, 8
test edi, edi
je 0x100ecebf
mov ecx, dword [ebp - 0x58]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100eceb5
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ecf0e
push ecx
push edi
call fcn.100ef33f
add esp, 8
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x100ecef2
mov edx, dword [ebp - 0x5c]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x100ecee8
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ecf0e
push edx
push ecx
call fcn.100ef33f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100eeec4
mov esp, ebp
pop ebp
ret
call fcn.100f8cfa
nop
jecxz 0x100ecedb
push cs
adc ah, dh
lds ecx, [esi]
adc byte [0x16100ec6], al
invalid