Function at 0x4214c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0x10]
movzx eax, word [esi]
push edi
push eax
call fcn.00440f53
add esp, 4
test eax, eax
je 0x4214f7
lea esp, [esp]
movzx ecx, word [esi + 2]
add esi, 2
push ecx
call fcn.00440f53
add esp, 4
test eax, eax
jne 0x4214e0
mov dword [ebp + 0x10], esi
mov edi, dword [ebp + 0xc]
movzx edx, word [edi]
push edx
call fcn.00440f53
add esp, 4
test eax, eax
je 0x421527
lea ebx, [ebx]
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00440f53
add esp, 4
test eax, eax
jne 0x421510
mov dword [ebp + 0xc], edi
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421530
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, esi
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421550
sub eax, edx
sar eax, 1
mov ebx, eax
mov dword [ebp - 8], ebx
test edi, edi
je 0x42158c
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + edi*2 - 2]
nop
movzx edx, word [esi]
push edx
call fcn.00440f53
add esp, 4
test eax, eax
je 0x421586
sub esi, 2
dec edi
jne 0x421570
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4215ad
lea esi, [esi + ebx*2 - 2]
movzx eax, word [esi]
push eax
call fcn.00440f53
add esp, 4
test eax, eax
je 0x4215aa
sub esi, 2
dec ebx
jne 0x421594
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4215b6
mov ecx, dword [esi + 0x18]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
add eax, ebx
add eax, edi
lea eax, [ecx + eax*2 + 9]
and eax, 0xfffffffc
add eax, 0xa8
push eax
mov dword [ebp - 0xc], eax
call fcn.0043e93e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42177a
lea eax, [ebx + 0xa8]
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, eax
sub edx, ebx
mov dword [ebx], ecx
mov word [ebx + 0x38], dx
mov edx, dword [ebp + 8]
lea ecx, [edi + edi + 2]
push ecx
mov ecx, dword [edx + 0x38]
push ecx
push eax
call fcn.004424a0
mov ecx, dword [ebp + 0xc]
lea esi, [ebx + edi*2 + 0xaa]
mov edi, dword [ebp - 4]
add edi, edi
push edi
mov eax, esi
push ecx
sub eax, ebx
push esi
mov word [ebx + 0x3a], ax
call fcn.004424a0
mov ecx, dword [ebp - 4]
mov edx, ecx
and edx, 0x3f
mov ax, word [edx*2 + 0x469140]
mov word [edi + esi], ax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x421676
mov edi, edi
mov edx, eax
and edx, 0x3f
mov dx, word [edx*2 + 0x469140]
xor word [esi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x421660
mov ecx, dword [ebp + 0x10]
lea esi, [edi + esi + 2]
mov edi, dword [ebp - 8]
mov eax, esi
sub eax, ebx
mov word [ebx + 0x3c], ax
lea eax, [edi + edi]
push eax
push ecx
push esi
mov dword [ebp - 0x10], eax
call fcn.004424a0
mov ecx, dword [ebp - 0x10]
mov edx, edi
and edx, 0x3f
mov ax, word [edx*2 + 0x469140]
mov word [ecx + esi], ax
add esp, 0xc
xor eax, eax
test edi, edi
je 0x4216c9
mov edx, eax
and edx, 0x3f
mov dx, word [edx*2 + 0x469140]
xor word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x4216b3
lea esi, [ecx + esi + 2]
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
mov word [ebx + 0x3e], ax
mov eax, dword [ecx + 0x18]
mov edi, ecx
mov edx, dword [edi + 0x30]
push eax
push edx
push esi
call fcn.004424a0
add esp, 0xc
cmp dword [edi + 4], 4
jge 0x421724
mov ecx, dword [edi + 0x3c]
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421724
mov edx, dword [ebp - 0x28]
push edx
push str.0x_X
lea eax, [ebx + 0x40]
push 0x14
push eax
call fcn.00441343
add esp, 0x10
xor ecx, ecx
mov word [ebx + 0x66], cx
jmp 0x42172a
xor edx, edx
mov word [ebx + 0x40], dx
mov eax, dword [edi + 0x34]
push 0x5c
push eax
call fcn.0043f35f
mov ecx, dword [edi + 0x34]
push 0x2f
push ecx
mov esi, eax
call fcn.0043f35f
add esp, 0x10
cmp esi, eax
ja 0x42174b
mov esi, eax
test esi, esi
jne 0x421754
mov esi, dword [edi + 0x34]
jmp 0x421757
add esi, 2
push 0x20
lea edx, [ebx + 0x68]
push esi
push edx
call fcn.00440fc6
xor eax, eax
add esp, 0xc
mov word [ebx + 0xa6], ax
mov eax, dword [0x49f01c]
push ebx
call fcn.004213a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret