Function at 0x490e80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [0x5087fc]
push ebx
and eax, 0xffff
push ebp
shl eax, 5
cdq
and edx, 7
push esi
add eax, edx
push edi
mov ecx, eax
mov eax, 0x400
sar ecx, 3
push 0
push 0x336
sub eax, ecx
push str.U:SWarlang_sai_ContoursCreate.cpp
push 0x100000
mov dword [esp + 0x20], eax
call sub.Storm.dll_Ordinal_401
xor edx, edx
mov ebx, eax
mov dx, word [0x646508]
push 0
push 0x30f
push str.U:SWarlang_sai_ContoursCreate.cpp
shl edx, 4
push edx
mov dword [esp + 0x24], ebx
mov dword [0x684440], ebx
call sub.Storm.dll_Ordinal_401
mov ecx, dword [0x646514]
xor edi, edi
cmp word [0x646508], di
mov ebp, eax
mov esi, ebp
jbe 0x490fea
mov al, byte [ecx + 4]
xor edx, edx
mov dx, word [ecx + 6]
and eax, 1
shl edx, 8
or eax, edx
mov dl, byte [ecx + 2]
shl eax, 8
and edx, 1
add esi, 4
or eax, edx
mov dl, byte [ecx]
shl eax, 8
and edx, 1
add esi, 4
or eax, edx
add esi, 4
xor eax, 0xff010101
add esi, 4
shl eax, 7
mov dword [esi - 0x10], eax
mov dl, byte [ecx + 0xc]
xor eax, eax
and edx, 1
mov ax, word [ecx + 0xe]
add ecx, 0x20
shl eax, 8
or eax, edx
mov dl, byte [ecx - 0x16]
shl eax, 8
and edx, 1
or eax, edx
mov dl, byte [ecx - 0x18]
shl eax, 8
and edx, 1
or eax, edx
xor edx, edx
xor eax, 0xff010101
shl eax, 7
mov dword [esi - 0xc], eax
mov al, byte [ecx - 0xc]
mov dx, word [ecx - 0xa]
and eax, 1
shl edx, 8
or eax, edx
mov dl, byte [ecx - 0xe]
shl eax, 8
and edx, 1
or eax, edx
mov dl, byte [ecx - 0x10]
shl eax, 8
and edx, 1
or eax, edx
xor eax, 0xff010101
shl eax, 7
mov dword [esi - 8], eax
mov dl, byte [ecx - 4]
xor eax, eax
and edx, 1
mov ax, word [ecx - 2]
shl eax, 8
or eax, edx
mov dl, byte [ecx - 6]
shl eax, 8
and edx, 1
or eax, edx
mov dl, byte [ecx - 8]
shl eax, 8
and edx, 1
or eax, edx
xor eax, 0xff010101
shl eax, 7
mov dword [esi - 4], eax
xor eax, eax
mov ax, word [0x646508]
inc edi
cmp edi, eax
jl 0x490f03
mov edi, dword [0x5255b0]
xor eax, eax
cmp word [0x5087fe], ax
mov edx, ebx
jbe 0x491072
mov ecx, dword [0x5087fc]
xor esi, esi
test cx, cx
jbe 0x491059
mov cx, word [edi]
add edi, 2
and ecx, 0x7fff
add edx, 4
shl ecx, 4
add ecx, ebp
mov ebx, dword [ecx]
add ecx, 4
mov dword [edx - 4], ebx
mov ebx, dword [ecx]
add ecx, 4
mov dword [edx + 0x3fc], ebx
inc esi
mov ebx, dword [ecx]
mov dword [edx + 0x7fc], ebx
mov ecx, dword [ecx + 4]
mov dword [edx + 0xbfc], ecx
mov ecx, dword [0x5087fc]
mov ebx, ecx
and ebx, 0xffff
cmp esi, ebx
jl 0x49100a
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc eax
lea edx, [edx + esi + 0xc00]
xor esi, esi
mov si, word [0x5087fe]
cmp eax, esi
jl 0x491003
push 0
push 0x368
push str.U:SWarlang_sai_ContoursCreate.cpp
push ebp
call sub.Storm.dll_Ordinal_403
mov bp, word [0x5087fe]
xor eax, eax
mov ax, bp
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ecx, [eax - 8]
mov esi, ecx
mov edi, ecx
shl esi, 0xa
add esi, ebx
cmp edi, eax
jge 0x491181
mov eax, esi
mov edx, 0x80808080
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov ebp, dword [0x5087fc]
mov eax, ebp
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ecx, [eax - 0x14]
cmp ecx, eax
jge 0x491107
mov byte [ecx + esi], 0x80
mov ebp, dword [0x5087fc]
mov eax, ebp
inc ecx
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ecx, eax
jl 0x4910e5
xor eax, eax
mov ax, word [0x5087fe]
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
sub eax, 4
cmp edi, eax
jl 0x49115a
mov eax, ebp
xor ecx, ecx
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jle 0x49115a
mov byte [ecx + esi], 0x80
mov eax, dword [0x5087fc]
and eax, 0xffff
inc ecx
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ecx, eax
jl 0x49113b
mov bp, word [0x5087fe]
xor eax, eax
mov ax, bp
add esi, 0x400
shl eax, 5
cdq
and edx, 7
inc edi
add eax, edx
sar eax, 3
cmp edi, eax
jl 0x4910b0
xor eax, eax
mov ecx, ebx
mov ax, bp
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
shl eax, 0xa
lea esi, [eax + ebx - 0x400]
mov eax, dword [0x5087fc]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
test edi, edi
jle 0x491270
mov al, byte [ecx]
test al, al
jl 0x49120e
mov dl, al
mov al, byte [ecx + 0x400]
or dl, 1
test al, al
mov byte [ecx], dl
jge 0x4911db
mov al, dl
or al, 4
mov byte [ecx], al
mov eax, dword [0x5087fc]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x4911fc
mov al, byte [ecx - 1]
test al, al
jge 0x4911ff
or byte [ecx], 8
cmp edi, 1
je 0x49120b
mov al, byte [ecx + 1]
test al, al
jge 0x49120e
or byte [ecx], 2
mov al, byte [esi]
test al, al
jl 0x49125e
mov dl, al
mov al, byte [esi - 0x400]
or dl, 4
test al, al
mov byte [esi], dl
jge 0x49122b
mov al, dl
or al, 1
mov byte [esi], al
mov eax, dword [0x5087fc]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x49124c
mov al, byte [esi - 1]
test al, al
jge 0x49124f
or byte [esi], 8
cmp edi, 1
je 0x49125b
mov al, byte [esi + 1]
test al, al
jge 0x49125e
or byte [esi], 2
dec edi
inc ecx
inc esi
test edi, edi
jg 0x4911be
mov bp, word [0x5087fe]
mov eax, dword [0x5087fc]
mov ecx, ebx
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
lea esi, [eax + ebx - 1]
xor eax, eax
mov ax, bp
shl eax, 5
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
test edi, edi
jle 0x491365
mov al, byte [ecx]
test al, al
jl 0x4912f8
mov dl, al
mov al, byte [ecx + 1]
or dl, 8
test al, al
mov byte [ecx], dl
jge 0x4912c1
mov al, dl
or al, 2
mov byte [ecx], al
xor eax, eax
mov ax, word [0x5087fe]
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x4912e3
mov al, byte [ecx - 0x400]
test al, al
jge 0x4912e6
or byte [ecx], 1
cmp edi, 1
je 0x4912f5
mov al, byte [ecx + 0x400]
test al, al
jge 0x4912f8
or byte [ecx], 4
mov al, byte [esi]
test al, al
jl 0x491349
mov dl, al
mov al, byte [esi - 1]
or dl, 2
test al, al
mov byte [esi], dl
jge 0x491312
mov al, dl
or al, 8
mov byte [esi], al
xor eax, eax
mov ax, word [0x5087fe]
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x491334
mov al, byte [esi - 0x400]
test al, al
jge 0x491337
or byte [esi], 1
cmp edi, 1
je 0x491346
mov al, byte [esi + 0x400]
test al, al
jge 0x491349
or byte [esi], 4
dec edi
add ecx, 0x400
add esi, 0x400
test edi, edi
jg 0x4912a7
mov bp, word [0x5087fe]
xor eax, eax
lea ecx, [ebx + 0x401]
mov ax, bp
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
sub eax, 2
test eax, eax
jle 0x4913e3
mov esi, eax
mov eax, dword [0x5087fc]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
sub eax, 2
test eax, eax
jle 0x4913d8
mov dl, byte [ecx]
test dl, dl
jl 0x4913d4
cmp byte [ecx - 0x400], 0
jge 0x4913b4
or dl, 1
cmp byte [ecx + 0x400], 0
jge 0x4913c0
or dl, 4
cmp byte [ecx - 1], 0
jge 0x4913c9
or dl, 8
cmp byte [ecx + 1], 0
jge 0x4913d2
or dl, 2
mov byte [ecx], dl
inc ecx
dec eax
jne 0x4913a2
mov edx, dword [esp + 0x10]
dec esi
lea ecx, [ecx + edx + 2]
jne 0x491385
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret