Function at 0x446210
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0xc
cmp edx, 0x34
push ebp
jae 0x446226
xor eax, eax
pop ebp
add esp, 0xc
ret 0x10
mov ebp, dword [esp + 0x14]
cmp dword [ebp], 0x53494858
je 0x44623c
xor eax, eax
pop ebp
add esp, 0xc
ret 0x10
cmp dword [ebp + 4], 0xe88
je 0x44624e
xor eax, eax
pop ebp
add esp, 0xc
ret 0x10
mov ecx, dword [ebp + 8]
mov eax, ecx
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [eax*8 + 0x34]
cmp ecx, edx
je 0x446272
xor eax, eax
pop ebp
add esp, 0xc
ret 0x10
push ebx
lea ebx, [ebp + 0x14]
push esi
mov esi, dword [esp + 0x28]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x446415
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 3
cmp edx, 1
jae 0x446379
mov edx, dword [esi + 4]
test edx, edx
je 0x4462bc
mov ecx, eax
sub ecx, edx
sar ecx, 3
cmp ecx, 1
ja 0x4462c1
mov ecx, 1
test edx, edx
jne 0x4462c9
xor eax, eax
jmp 0x4462ce
sub eax, edx
sar eax, 3
add eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x4462da
xor eax, eax
shl eax, 3
push eax
call fcn.00455403
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x2c], eax
mov ebx, eax
je 0x446307
push ebp
push ebx
call fcn.00446960
add ebp, 8
add esp, 8
add ebx, 8
cmp ebp, edi
jne 0x4462f3
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00411610
mov edx, dword [esi + 8]
add ebx, 8
push ebx
push edx
push edi
mov ecx, esi
call fcn.004115d0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004115c0
mov edx, dword [esi + 4]
push edx
call fcn.004535f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [eax + ecx*8]
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esi + 0xc], edx
jne 0x44635a
xor edx, edx
jmp 0x446362
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 3
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
lea ecx, [eax + edx*8 + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
jmp 0x446415
mov ecx, eax
sub ecx, edi
sar ecx, 3
cmp ecx, 1
jae 0x4463c9
lea edx, [edi + 8]
mov ecx, esi
push edx
push eax
push edi
call fcn.004115d0
mov eax, dword [esi + 8]
mov edx, 1
mov ecx, eax
push ebx
sub ecx, edi
sar ecx, 3
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00411610
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x446411
mov edx, dword [ebx]
mov dword [eax], edx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
add eax, 8
cmp eax, ecx
jne 0x4463b6
jmp 0x446411
lea ecx, [eax - 8]
push eax
push eax
mov dword [esp + 0x34], ecx
push ecx
mov ecx, esi
call fcn.004115d0
mov ecx, dword [esi + 8]
lea eax, [ecx - 8]
cmp edi, eax
je 0x4463f9
mov edx, dword [eax - 8]
sub eax, 8
sub ecx, 8
cmp eax, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
jne 0x4463e4
lea eax, [edi + 8]
cmp edi, eax
je 0x446411
mov ecx, dword [ebx]
mov dword [edi], ecx
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
add edi, 8
cmp edi, eax
jne 0x446400
add dword [esi + 8], 8
mov eax, dword [esp + 0x14]
add ebx, 8
dec eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jne 0x446288
mov eax, dword [esp + 0x24]
lea edx, [eax - 0x34]
test edx, edx
jbe 0x44644f
mov ecx, 0xffffffcc
lea eax, [ebp + 0x34]
sub ecx, ebp
mov bl, byte [eax]
xor bl, 0x3a
mov byte [eax], bl
inc eax
lea esi, [ecx + eax]
cmp esi, edx
jb 0x446440
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
pop edi
pop esi
lea eax, [ebp + 0x34]
pop ebx
mov dword [edx], ecx
pop ebp
add esp, 0xc
ret 0x10