Function at 0x4b0d90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x108
mov eax, dword [0x6978e0]
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 0x4b0dbb
push eax
call sub.Storm.dll_Ordinal_458
mov dword [0x6978e0], esi
cmp di, 0xffff
jne 0x4b0dec
mov eax, dword [0x6978b0]
mov dword [eax + 0x26], esi
mov ecx, dword [0x6978b0]
mov word [ecx + 0x24], di
mov ecx, dword [0x6978b0]
call fcn.004e1300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
cmp di, 0x52
jne 0x4b0e55
cmp ebx, esi
je 0x4b0e55
mov edx, dword [ebx + 0xc]
xor ecx, ecx
mov cl, byte [edx + 0xa]
call fcn.00419400
cmp al, 8
mov byte [esp + 0x10], al
jb 0x4b0e1d
movzx bp, al
add ebp, 0x62
mov dword [esp + 0x10], ebp
mov di, word [esp + 0x10]
jmp 0x4b0e59
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov cl, byte [ecx + 0x518a6a]
test cl, cl
je 0x4b0e43
movzx bp, cl
add ebp, 0x62
mov dword [esp + 0x10], ebp
mov di, word [esp + 0x10]
jmp 0x4b0e59
movzx bp, al
add ebp, 0x52
mov dword [esp + 0x10], ebp
mov di, word [esp + 0x10]
jmp 0x4b0e59
mov ebp, dword [esp + 0x10]
mov eax, dword [0x6978b0]
cmp dword [eax + 0x26], ebx
jne 0x4b0e69
cmp word [eax + 0x24], di
je 0x4b0eb7
mov cl, byte [0x6be85f]
mov esi, dword [0x6bd5ec]
mov dword [0x6bd5ec], 0x6978a8
call fcn.004dd950
mov ecx, dword [0x6978b0]
mov dword [0x6bd5ec], esi
call fcn.004e1330
mov edx, dword [0x6978b0]
mov byte [0x69787c], 0
mov byte [0x6978dc], 1
xor esi, esi
mov dword [edx + 0x26], ebx
mov eax, dword [0x6978b0]
mov word [eax + 0x24], di
mov eax, dword [esp + 0x11c]
mov edi, 2
and eax, 0xffff
sub eax, edi
je 0x4b1029
mov eax, dword [0x502040]
xor bl, bl
cmp eax, edi
jne 0x4b0f7d
mov ecx, dword [0x502044]
mov edx, dword [0x502048]
mov esi, dword [0x50204c]
add ecx, edx
add esi, ecx
add edx, 0x71823402
xor edx, esi
mov dword [0x50204c], esi
shr ecx, 1
mov eax, edx
mov dword [0x502048], edx
xor eax, ecx
mov dword [0x502044], ecx
and eax, 0x7f
cmp eax, 0x65
jb 0x4b0f49
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 0x4b0f1d
mov dword [0x502044], ecx
mov dword [0x502048], edx
mov dword [0x50204c], esi
mov ecx, dword [0x6978c0]
mov edx, ebp
xor bl, bl
and edx, 0xffff
mov cl, byte [ecx + edx]
cmp al, cl
jbe 0x4b0f74
inc bl
movsx esi, bl
mov esi, dword [esi*4 + 0x6978c0]
add cl, byte [esi + edx]
cmp bl, 4
jl 0x4b0f5c
cmp bl, 4
jl 0x4b0f7b
xor bl, bl
xor esi, esi
test bl, bl
jl 0x4b100b
cmp dword [0x6978e0], esi
jne 0x4b100b
mov eax, ebp
movsx edx, bl
and eax, 0xffff
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax*4 + 0x65ddb0]
push ecx
push str.portrait_
push str._s_s_d.smk
push 0x104
push edx
call fcn.004dba60
mov eax, 0x6978e0
add esp, 0x18
test eax, eax
je 0x4b0fcb
mov dword [0x6978e0], esi
cmp dword [0x502040], esi
je 0x4b1003
mov ecx, dword [0x6978ac]
push 0x6978e0
push 0x21100000
push esi
push 0x697898
push 0x697880
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [0x6978e4], 1
call sub.Storm.dll_Ordinal_454
dec bl
jns 0x4b0f85
mov ecx, dword [0x6978b0]
call fcn.004e12c0
mov dword [0x6978b8], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
mov eax, dword [0x502040]
xor bl, bl
cmp eax, edi
jne 0x4b10bf
mov ecx, dword [0x502044]
mov edx, dword [0x502048]
mov esi, dword [0x50204c]
add ecx, edx
add esi, ecx
add edx, 0x71823402
xor edx, esi
mov dword [0x50204c], esi
shr ecx, 1
mov eax, edx
mov dword [0x502048], edx
xor eax, ecx
mov dword [0x502044], ecx
and eax, 3
cmp eax, 3
jb 0x4b10a2
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 0x4b1076
mov dword [0x502044], ecx
mov dword [0x502048], edx
mov dword [0x50204c], esi
mov cl, byte [0x697890]
mov bl, al
cmp al, cl
jne 0x4b10bd
movsx eax, al
add eax, edi
mov ecx, 3
cdq
idiv ecx
mov bl, dl
xor esi, esi
test bl, bl
jl 0x4b114d
cmp dword [0x6978e0], esi
jne 0x4b114d
mov eax, ebp
movsx edx, bl
and eax, 0xffff
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax*4 + 0x65df68]
push ecx
push str.portrait_
push str._s_s_d.smk
push 0x104
push edx
call fcn.004dba60
mov eax, 0x6978e0
add esp, 0x18
test eax, eax
je 0x4b110d
mov dword [0x6978e0], esi
cmp dword [0x502040], esi
je 0x4b1145
mov ecx, dword [0x6978ac]
push 0x6978e0
push 0x21100000
push esi
push 0x697898
push 0x697880
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [0x6978e4], 1
call sub.Storm.dll_Ordinal_454
dec bl
jns 0x4b10c7
mov ecx, dword [0x6978b0]
mov byte [0x697890], bl
call fcn.004e12c0
mov dword [0x6978b8], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4