Function at 0x4b0cf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x108
mov eax, dword [0x6978d8]
push ebx
push ebp
push esi
push edi
xor esi, esi
mov di, dx
cmp eax, esi
mov word [esp + 0x10], di
mov ebx, ecx
je 0x4b0d1b
push eax
call sub.Storm.dll_Ordinal_458
mov dword [0x6978d8], esi
cmp di, 0xffff
jne 0x4b0d4c
mov eax, dword [0x6978a8]
mov dword [eax + 0x26], esi
mov ecx, dword [0x6978a8]
mov word [ecx + 0x24], di
mov ecx, dword [0x6978a8]
call fcn.004e11d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
cmp di, 0x52
jne 0x4b0db5
cmp ebx, esi
je 0x4b0db5
mov edx, dword [ebx + 0xc]
xor ecx, ecx
mov cl, byte [edx + 0xa]
call fcn.004193e0
cmp al, 8
mov byte [esp + 0x10], al
jb 0x4b0d7d
movzx bp, al
add ebp, 0x62
mov dword [esp + 0x10], ebp
mov di, word [esp + 0x10]
jmp 0x4b0db9
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov cl, byte [ecx + 0x518a6a]
test cl, cl
je 0x4b0da3
movzx bp, cl
add ebp, 0x62
mov dword [esp + 0x10], ebp
mov di, word [esp + 0x10]
jmp 0x4b0db9
movzx bp, al
add ebp, 0x52
mov dword [esp + 0x10], ebp
mov di, word [esp + 0x10]
jmp 0x4b0db9
mov ebp, dword [esp + 0x10]
mov eax, dword [0x6978a8]
cmp dword [eax + 0x26], ebx
jne 0x4b0dc9
cmp word [eax + 0x24], di
je 0x4b0e17
mov cl, byte [0x6be857]
mov esi, dword [0x6bd5e4]
mov dword [0x6bd5e4], 0x6978a0
call fcn.004dd820
mov ecx, dword [0x6978a8]
mov dword [0x6bd5e4], esi
call fcn.004e1200
mov edx, dword [0x6978a8]
mov byte [0x697874], 0
mov byte [0x6978d4], 1
xor esi, esi
mov dword [edx + 0x26], ebx
mov eax, dword [0x6978a8]
mov word [eax + 0x24], di
mov eax, dword [esp + 0x11c]
mov edi, 2
and eax, 0xffff
sub eax, edi
je 0x4b0f89
mov eax, dword [0x502038]
xor bl, bl
cmp eax, edi
jne 0x4b0edd
mov ecx, dword [0x50203c]
mov edx, dword [0x502040]
mov esi, dword [0x502044]
add ecx, edx
add esi, ecx
add edx, 0x71823402
xor edx, esi
mov dword [0x502044], esi
shr ecx, 1
mov eax, edx
mov dword [0x502040], edx
xor eax, ecx
mov dword [0x50203c], ecx
and eax, 0x7f
cmp eax, 0x65
jb 0x4b0ea9
add ecx, edx
add edx, 0x71823402
add esi, ecx
xor edx, esi
shr ecx, 1
mov eax, edx
xor eax, ecx
and eax, 0x7f
cmp eax, 0x65
jae 0x4b0e7d
mov dword [0x50203c], ecx
mov dword [0x502040], edx
mov dword [0x502044], esi
mov ecx, dword [0x6978b8]
mov edx, ebp
xor bl, bl
and edx, 0xffff
mov cl, byte [ecx + edx]
cmp al, cl
jbe 0x4b0ed4
inc bl
movsx esi, bl
mov esi, dword [esi*4 + 0x6978b8]
add cl, byte [esi + edx]
cmp bl, 4
jl 0x4b0ebc
cmp bl, 4
jl 0x4b0edb
xor bl, bl
xor esi, esi
test bl, bl
jl 0x4b0f6b
cmp dword [0x6978d8], esi
jne 0x4b0f6b
mov eax, ebp
movsx edx, bl
and eax, 0xffff
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax*4 + 0x65dda8]
push ecx
push str.portrait_
push str._s_s_d.smk
push 0x104
push edx
call fcn.004db920
mov eax, 0x6978d8
add esp, 0x18
test eax, eax
je 0x4b0f2b
mov dword [0x6978d8], esi
cmp dword [0x502038], esi
je 0x4b0f63
mov ecx, dword [0x6978a4]
push 0x6978d8
push 0x21100000
push esi
push 0x697890
push 0x697878
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [0x6978dc], 1
call sub.Storm.dll_Ordinal_454
dec bl
jns 0x4b0ee5
mov ecx, dword [0x6978a8]
call fcn.004e1190
mov dword [0x6978b0], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
mov eax, dword [0x502038]
xor bl, bl
cmp eax, edi
jne 0x4b101f
mov ecx, dword [0x50203c]
mov edx, dword [0x502040]
mov esi, dword [0x502044]
add ecx, edx
add esi, ecx
add edx, 0x71823402
xor edx, esi
mov dword [0x502044], esi
shr ecx, 1
mov eax, edx
mov dword [0x502040], edx
xor eax, ecx
mov dword [0x50203c], ecx
and eax, 3
cmp eax, 3
jb 0x4b1002
add ecx, edx
add edx, 0x71823402
add esi, ecx
xor edx, esi
shr ecx, 1
mov eax, edx
xor eax, ecx
and eax, 3
cmp eax, 3
jae 0x4b0fd6
mov dword [0x50203c], ecx
mov dword [0x502040], edx
mov dword [0x502044], esi
mov cl, byte [0x697888]
mov bl, al
cmp al, cl
jne 0x4b101d
movsx eax, al
add eax, edi
mov ecx, 3
cdq
idiv ecx
mov bl, dl
xor esi, esi
test bl, bl
jl 0x4b10ad
cmp dword [0x6978d8], esi
jne 0x4b10ad
mov eax, ebp
movsx edx, bl
and eax, 0xffff
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax*4 + 0x65df60]
push ecx
push str.portrait_
push str._s_s_d.smk
push 0x104
push edx
call fcn.004db920
mov eax, 0x6978d8
add esp, 0x18
test eax, eax
je 0x4b106d
mov dword [0x6978d8], esi
cmp dword [0x502038], esi
je 0x4b10a5
mov ecx, dword [0x6978a4]
push 0x6978d8
push 0x21100000
push esi
push 0x697890
push 0x697878
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [0x6978dc], 1
call sub.Storm.dll_Ordinal_454
dec bl
jns 0x4b1027
mov ecx, dword [0x6978a8]
mov byte [0x697888], bl
call fcn.004e1190
mov dword [0x6978b0], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4