Function at 0x423210
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x14a0]
cmp dword [esi + 0x990], eax
lea ecx, [esi + 0x990]
jne 0x423233
pop esi
add esp, 8
jmp fcn.00428460
mov ecx, dword [ecx]
sub ecx, eax
and ecx, dword [esi + 0x24]
cmp ecx, 0x101
jb 0x423247
mov ecx, 0x101
mov dword [esi + 0x8d4], ecx
mov ecx, dword [esi]
movzx edx, byte [ecx + eax]
push ebx
add ecx, eax
push ebp
push edi
movzx edi, byte [ecx + 1]
shl edi, 5
xor edi, edx
mov ecx, dword [esi]
movzx edx, byte [eax + ecx + 2]
mov ecx, dword [esi + 0x10]
shl edi, 5
xor edx, edi
and edx, 0x7fff
mov edi, edx
mov edx, dword [esi + 0x24]
and edx, dword [ecx + edi*4]
lea ecx, [ecx + edi*4]
mov dword [ecx], eax
mov eax, dword [esi + 0x14a0]
mov ecx, dword [esi + 0x14]
mov dword [ecx + eax*4], edx
mov eax, 3
cmp dword [esi + 0x8d4], eax
mov dword [esp + 0x10], edx
mov dword [esi + 0x58], 1
jle 0x42348c
mov dword [esp + 0x14], eax
nop
mov eax, dword [esi + 0x58]
cmp eax, 3
jl 0x4232d1
mov ecx, dword [esi]
lea ebx, [eax + ecx]
add eax, ecx
mov ecx, dword [esi + 0x14a0]
mov al, byte [eax + ecx]
cmp al, byte [ebx + edx]
jne 0x42334f
mov eax, dword [esi]
mov ecx, dword [esi + 0x14a0]
lea ebp, [eax + ecx]
lea ebx, [eax + edx]
mov al, byte [ebp]
cmp al, byte [ebx]
jne 0x42334f
mov al, byte [ebp + 1]
cmp al, byte [ebx + 1]
jne 0x42334f
mov al, byte [ebp + 2]
cmp al, byte [ebx + 2]
jne 0x42334f
mov eax, 3
cmp dword [esi + 0x8d4], eax
jle 0x423318
mov dl, byte [eax + ebp]
cmp dl, byte [ebx + eax]
jne 0x423314
inc eax
cmp eax, dword [esi + 0x8d4]
jl 0x423303
mov edx, dword [esp + 0x10]
cmp eax, dword [esi + 0x58]
jle 0x42334f
sub ecx, edx
and ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x28]
ja 0x42334f
test ecx, ecx
je 0x42334f
cmp eax, 4
jg 0x423349
jne 0x42333c
cmp ecx, 0x40000
jb 0x423349
jmp 0x42334f
cmp eax, 3
jne 0x42334f
cmp ecx, 0x2000
jae 0x42334f
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], eax
sub dword [esp + 0x14], 1
je 0x423368
mov eax, dword [esi + 0x14]
mov edx, dword [eax + edx*4]
and edx, dword [esi + 0x24]
mov dword [esp + 0x10], edx
jmp 0x4232b0
mov eax, dword [esi + 0x58]
cmp eax, 3
jl 0x42348c
cmp byte [esi + 0x14a5], 0
jne 0x42338c
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + 0x14a0]
ja 0x42348c
mov edx, dword [esi + 0x54]
push edx
push eax
mov ecx, esi
call fcn.00422ef0
mov ecx, dword [esi + 0x14a0]
mov edx, dword [esi + 0x24]
mov eax, dword [esi]
inc ecx
and ecx, edx
mov dword [esi + 0x14a0], ecx
movzx eax, byte [ecx + eax + 2]
shl edi, 5
xor eax, edi
mov edi, dword [esi + 0x10]
and eax, 0x7fff
and edx, dword [edi + eax*4]
mov dword [edi + eax*4], ecx
mov ecx, dword [esi + 0x14a0]
lea edi, [edi + eax*4]
mov edi, dword [esi + 0x14]
mov dword [edi + ecx*4], edx
mov ecx, dword [esi + 0x14a0]
mov edi, dword [esi + 0x24]
mov edx, dword [esi]
inc ecx
and ecx, edi
mov dword [esi + 0x14a0], ecx
movzx edx, byte [ecx + edx + 2]
shl eax, 5
xor edx, eax
mov eax, dword [esi + 0x10]
and edx, 0x7fff
and edi, dword [eax + edx*4]
mov dword [eax + edx*4], ecx
mov ecx, dword [esi + 0x14a0]
lea eax, [eax + edx*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], edi
mov ecx, dword [esi + 0x14a0]
inc ecx
and ecx, dword [esi + 0x24]
or ebx, 0xffffffff
add dword [esi + 0x58], ebx
mov ebp, 2
cmp dword [esi + 0x58], ebp
mov edi, edx
mov dword [esi + 0x14a0], ecx
jle 0x4234de
jmp 0x423440
mov edx, dword [esi + 0x14a0]
mov eax, dword [esi]
movzx eax, byte [edx + eax + 2]
mov ecx, dword [esi + 0x10]
shl edi, 5
xor eax, edi
and eax, 0x7fff
lea edi, [ecx + eax*4]
mov ecx, dword [esi + 0x24]
and ecx, dword [edi]
mov dword [edi], edx
mov edx, dword [esi + 0x14a0]
mov edi, dword [esi + 0x14]
mov dword [edi + edx*4], ecx
mov edi, eax
mov eax, dword [esi + 0x14a0]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x14a0], eax
add dword [esi + 0x58], ebx
cmp dword [esi + 0x58], ebp
jg 0x423440
jmp 0x4234de
mov ecx, dword [esi + 0x14a0]
mov edx, dword [esi]
mov dl, byte [ecx + edx]
mov eax, dword [esi + 0x63e4]
mov ebx, dword [esi + 0x63e0]
lea ecx, [esi + 0x63c8]
lea eax, [eax + eax*2]
mov byte [ebx + eax*4], 0
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x18]
lea eax, [eax + eax*2]
mov byte [ebx + eax*4 + 1], dl
inc dword [ecx + 0x1c]
cmp dword [ecx + 0x1c], 0x4000
jb 0x4234ce
call fcn.0040dfe0
mov ecx, dword [esi + 0x14a0]
inc ecx
and ecx, dword [esi + 0x24]
mov dword [esi + 0x14a0], ecx
mov eax, dword [esi + 0x14a0]
mov edx, dword [esi + 0x990]
lea ecx, [esi + 0x990]
sub edx, eax
and edx, dword [ecx + 0x410]
cmp edx, 0x111
jae 0x423261
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
jmp fcn.00428460