Function at 0x490f10
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 [0x684448], 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 0x49107a
mov dl, byte [ecx + 4]
xor eax, eax
mov ax, word [ecx + 6]
and edx, 1
shl eax, 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
xor edx, edx
xor eax, 0xff010101
add esi, 4
shl eax, 7
mov dword [esi - 0xc], eax
mov al, byte [ecx + 0xc]
mov dx, word [ecx + 0xe]
and eax, 1
shl edx, 8
or eax, edx
mov dl, byte [ecx + 0xa]
shl eax, 8
and edx, 1
add esi, 4
or eax, edx
mov dl, byte [ecx + 8]
shl eax, 8
and edx, 1
add ecx, 0x20
or eax, edx
xor eax, 0xff010101
shl eax, 7
mov dword [esi - 0xc], eax
mov dl, byte [ecx - 0xc]
xor eax, eax
and edx, 1
mov ax, word [ecx - 0xa]
shl eax, 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 edx, edx
xor eax, 0xff010101
shl eax, 7
mov dword [esi - 8], eax
mov al, byte [ecx - 4]
mov dx, word [ecx - 2]
and eax, 1
shl edx, 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 0x490f93
mov edi, dword [0x5255b0]
xor eax, eax
cmp word [0x5087fe], ax
mov edx, ebx
jbe 0x491102
mov ecx, dword [0x5087fc]
xor esi, esi
test cx, cx
jbe 0x4910e9
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 0x49109a
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 0x491093
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 0x491211
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 0x491197
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 0x491175
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 0x4911ea
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 0x4911ea
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 0x4911cb
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 0x491140
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 0x491300
mov al, byte [ecx]
test al, al
jl 0x49129e
mov dl, al
mov al, byte [ecx + 0x400]
or dl, 1
test al, al
mov byte [ecx], dl
jge 0x49126b
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 0x49128c
mov al, byte [ecx - 1]
test al, al
jge 0x49128f
or byte [ecx], 8
cmp edi, 1
je 0x49129b
mov al, byte [ecx + 1]
test al, al
jge 0x49129e
or byte [ecx], 2
mov al, byte [esi]
test al, al
jl 0x4912ee
mov dl, al
mov al, byte [esi - 0x400]
or dl, 4
test al, al
mov byte [esi], dl
jge 0x4912bb
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 0x4912dc
mov al, byte [esi - 1]
test al, al
jge 0x4912df
or byte [esi], 8
cmp edi, 1
je 0x4912eb
mov al, byte [esi + 1]
test al, al
jge 0x4912ee
or byte [esi], 2
dec edi
inc ecx
inc esi
test edi, edi
jg 0x49124e
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 0x4913f5
mov al, byte [ecx]
test al, al
jl 0x491388
mov dl, al
mov al, byte [ecx + 1]
or dl, 8
test al, al
mov byte [ecx], dl
jge 0x491351
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 0x491373
mov al, byte [ecx - 0x400]
test al, al
jge 0x491376
or byte [ecx], 1
cmp edi, 1
je 0x491385
mov al, byte [ecx + 0x400]
test al, al
jge 0x491388
or byte [ecx], 4
mov al, byte [esi]
test al, al
jl 0x4913d9
mov dl, al
mov al, byte [esi - 1]
or dl, 2
test al, al
mov byte [esi], dl
jge 0x4913a2
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 0x4913c4
mov al, byte [esi - 0x400]
test al, al
jge 0x4913c7
or byte [esi], 1
cmp edi, 1
je 0x4913d6
mov al, byte [esi + 0x400]
test al, al
jge 0x4913d9
or byte [esi], 4
dec edi
add ecx, 0x400
add esi, 0x400
test edi, edi
jg 0x491337
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 0x491473
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 0x491468
mov dl, byte [ecx]
test dl, dl
jl 0x491464
cmp byte [ecx - 0x400], 0
jge 0x491444
or dl, 1
cmp byte [ecx + 0x400], 0
jge 0x491450
or dl, 4
cmp byte [ecx - 1], 0
jge 0x491459
or dl, 8
cmp byte [ecx + 1], 0
jge 0x491462
or dl, 2
mov byte [ecx], dl
inc ecx
dec eax
jne 0x491432
mov edx, dword [esp + 0x10]
dec esi
lea ecx, [ecx + edx + 2]
jne 0x491415
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret