Function at 0x48a300
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [0x4fef3c]
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 [0x63ca90]
push 0
push 0x30f
push str.U:SWarlang_sai_ContoursCreate.cpp
shl edx, 4
push edx
mov dword [esp + 0x24], ebx
mov dword [0x679f74], ebx
call sub.storm.dll_Ordinal_401
mov ecx, dword [0x63ca98]
xor edi, edi
cmp word [0x63ca90], di
mov ebp, eax
mov esi, ebp
jbe 0x48a46a
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 [0x63ca90]
inc edi
cmp edi, eax
jl 0x48a383
mov edi, dword [0x51bcb0]
xor eax, eax
cmp word [0x4fef3e], ax
mov edx, ebx
jbe 0x48a4f2
mov ecx, dword [0x4fef3c]
xor esi, esi
test cx, cx
jbe 0x48a4d9
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 [0x4fef3c]
mov ebx, ecx
and ebx, 0xffff
cmp esi, ebx
jl 0x48a48a
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc eax
lea edx, [edx + esi + 0xc00]
xor esi, esi
mov si, word [0x4fef3e]
cmp eax, esi
jl 0x48a483
push 0
push 0x368
push str.U:SWarlang_sai_ContoursCreate.cpp
push ebp
call sub.storm.dll_Ordinal_403
mov bp, word [0x4fef3e]
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 0x48a601
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 [0x4fef3c]
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 0x48a587
mov byte [ecx + esi], 0x80
mov ebp, dword [0x4fef3c]
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 0x48a565
xor eax, eax
mov ax, word [0x4fef3e]
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
sub eax, 4
cmp edi, eax
jl 0x48a5da
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 0x48a5da
mov byte [ecx + esi], 0x80
mov eax, dword [0x4fef3c]
and eax, 0xffff
inc ecx
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ecx, eax
jl 0x48a5bb
mov bp, word [0x4fef3e]
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 0x48a530
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 [0x4fef3c]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
test edi, edi
jle 0x48a6f0
mov al, byte [ecx]
test al, al
jl 0x48a68e
mov dl, al
mov al, byte [ecx + 0x400]
or dl, 1
test al, al
mov byte [ecx], dl
jge 0x48a65b
mov al, dl
or al, 4
mov byte [ecx], al
mov eax, dword [0x4fef3c]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x48a67c
mov al, byte [ecx - 1]
test al, al
jge 0x48a67f
or byte [ecx], 8
cmp edi, 1
je 0x48a68b
mov al, byte [ecx + 1]
test al, al
jge 0x48a68e
or byte [ecx], 2
mov al, byte [esi]
test al, al
jl 0x48a6de
mov dl, al
mov al, byte [esi - 0x400]
or dl, 4
test al, al
mov byte [esi], dl
jge 0x48a6ab
mov al, dl
or al, 1
mov byte [esi], al
mov eax, dword [0x4fef3c]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x48a6cc
mov al, byte [esi - 1]
test al, al
jge 0x48a6cf
or byte [esi], 8
cmp edi, 1
je 0x48a6db
mov al, byte [esi + 1]
test al, al
jge 0x48a6de
or byte [esi], 2
dec edi
inc ecx
inc esi
test edi, edi
jg 0x48a63e
mov bp, word [0x4fef3e]
mov eax, dword [0x4fef3c]
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 0x48a7e5
mov al, byte [ecx]
test al, al
jl 0x48a778
mov dl, al
mov al, byte [ecx + 1]
or dl, 8
test al, al
mov byte [ecx], dl
jge 0x48a741
mov al, dl
or al, 2
mov byte [ecx], al
xor eax, eax
mov ax, word [0x4fef3e]
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x48a763
mov al, byte [ecx - 0x400]
test al, al
jge 0x48a766
or byte [ecx], 1
cmp edi, 1
je 0x48a775
mov al, byte [ecx + 0x400]
test al, al
jge 0x48a778
or byte [ecx], 4
mov al, byte [esi]
test al, al
jl 0x48a7c9
mov dl, al
mov al, byte [esi - 1]
or dl, 2
test al, al
mov byte [esi], dl
jge 0x48a792
mov al, dl
or al, 8
mov byte [esi], al
xor eax, eax
mov ax, word [0x4fef3e]
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
je 0x48a7b4
mov al, byte [esi - 0x400]
test al, al
jge 0x48a7b7
or byte [esi], 1
cmp edi, 1
je 0x48a7c6
mov al, byte [esi + 0x400]
test al, al
jge 0x48a7c9
or byte [esi], 4
dec edi
add ecx, 0x400
add esi, 0x400
test edi, edi
jg 0x48a727
mov bp, word [0x4fef3e]
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 0x48a863
mov esi, eax
mov eax, dword [0x4fef3c]
and eax, 0xffff
shl eax, 5
cdq
and edx, 7
add eax, edx
sar eax, 3
sub eax, 2
test eax, eax
jle 0x48a858
mov dl, byte [ecx]
test dl, dl
jl 0x48a854
cmp byte [ecx - 0x400], 0
jge 0x48a834
or dl, 1
cmp byte [ecx + 0x400], 0
jge 0x48a840
or dl, 4
cmp byte [ecx - 1], 0
jge 0x48a849
or dl, 8
cmp byte [ecx + 1], 0
jge 0x48a852
or dl, 2
mov byte [ecx], dl
inc ecx
dec eax
jne 0x48a822
mov edx, dword [esp + 0x10]
dec esi
lea ecx, [ecx + edx + 2]
jne 0x48a805
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret