Function at 0x446090
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4460da
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4460b0
sar ecx, 1
mov edx, ecx
and edx, 2
mov esi, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffd
imul esi, edx
add ecx, esi
jmp 0x4460dc
xor ecx, ecx
mov word [esp + 0xc], cx
mov edx, eax
test eax, eax
je 0x4460ec
add ecx, 2
mov edx, ecx
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov word [esp + 0xe], dx
mov dword [esp + 0x10], eax
mov dword [esp], 0xe0e7e6e5
mov word [esp + 4], 0
xor eax, eax
nop
nop
nop
mov ecx, eax
add cl, 0xa9
xor cl, byte [esp + eax]
add cl, 0xb3
mov byte [esp + eax], cl
inc eax
cmp eax, 6
jne 0x446110
mov ebx, dword [esp]
mov eax, dword [0x452164]
test eax, eax
je 0x44617f
xor ecx, ecx
mov edx, dword [0x452168]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xbbe848dd
je 0x446150
inc ecx
cmp eax, ecx
jne 0x446140
jmp 0x44617f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x44617f
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x40]
push 6
push dword [0x45216c]
push eax
call fcn.00442160
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x591a1bf1
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x7b
xor cl, byte [esp + eax]
add cl, 0x99
mov byte [esp + eax], cl
inc eax
cmp eax, 7
jne 0x4461a0
cmp ebx, dword [esp]
jne 0x4462e5
push dword [esp + 8]
call fcn.0043e990
add esp, 4
mov ecx, dword [esp + 8]
mov dword [esp], 0xe0e7e6e5
mov word [esp + 4], 0
xor edx, edx
nop
nop
nop
mov ebx, edx
add bl, 0xa9
xor bl, byte [esp + edx]
add bl, 0xb3
mov byte [esp + edx], bl
inc edx
cmp edx, 6
jne 0x4461e0
mov ebx, dword [esp]
mov edx, dword [0x452164]
test edx, edx
je 0x44625d
mov esi, ebp
xor ebp, ebp
mov edi, dword [0x452168]
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0xbbe848dd
je 0x446226
inc ebp
cmp edx, ebp
jne 0x446210
mov ebp, esi
mov esi, dword [esp + 0x38]
jmp 0x44625d
mov edx, dword [edi + ebp*8 + 4]
cmp edx, ebx
mov ebp, esi
mov esi, dword [esp + 0x38]
je 0x44625d
lea edi, [esp + 8]
lea ebx, [esp + 0xc]
push edi
push ecx
push eax
push 2
push ebx
push dword [esp + 0x40]
push 6
push dword [0x45216c]
push edx
mov edi, eax
call fcn.00442160
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x4462dc
test ebp, ebp
je 0x44626b
mov ecx, dword [eax + 4]
mov dword [ebp], ecx
cmp dword [esp + 0x3c], 0
je 0x4462dc
test esi, esi
je 0x4462d3
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x446285
mov edx, ecx
lea ebp, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, esi
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ecx, edx
not ecx
mov edi, ecx
or edi, 0xfffffffc
add edi, edx
inc edi
add esi, edi
lea ebp, [eax + edi]
add ebp, 0xc
or ecx, 3
add edx, ecx
inc edx
mov ecx, edx
shr ecx, 1
mov dword [esp + 0x14], ebp
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test dl, 1
je 0x4462d3
and edx, 0xfffffffe
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx + edx]
mov byte [esi + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x3c]
mov dword [edx], ecx
push eax
call fcn.0043ea00
add esp, 4
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret