Function at 0x442620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x430
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x5e4], ebx
je 0x442971
push ebp
push edi
push 0x400
lea edi, [esi + 0x5f0]
push ebx
push edi
call fcn.0049e7a0
add esp, 0xc
lea ebp, [esi + 0x1e0]
push ebp
mov ecx, edi
mov dword [edi + 0x400], ebx
mov dword [edi + 0x404], ebx
mov dword [edi + 0x408], ebx
call fcn.0040a450
push 0x400
push ebx
push ebp
call fcn.0049e7a0
add esp, 0xc
mov dword [ebp + 0x400], ebx
mov dword [ebp + 0x404], ebx
mov dword [ebp + 0x408], ebx
cmp byte [edi], 0x53
jne 0x442750
jmp 0x4426b0
mov edx, dword [0x4df8b4]
mov ecx, dword [0x4df8b0]
mov bl, byte [esi + 0x9f8]
xor eax, eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov byte [esp + 0x21], al
mov eax, dword [0x4df8ac]
mov dword [esp + 0x24], eax
mov eax, dword [0x4df8b8]
push 0x3ff
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4df8bc]
mov dword [esp + 0x30], edx
mov dl, byte [0x4df8c0]
lea eax, [esp + 0x41]
push 0
push eax
mov byte [esp + 0x1f], bl
mov byte [esp + 0x24], 0
mov dword [esp + 0x40], ecx
mov byte [esp + 0x44], dl
mov byte [esp + 0x48], 0
call fcn.0049e7a0
mov edi, 1
add esp, 0xc
cmp dword [esi + 0x9f4], edi
jle 0x44274e
movsx eax, bl
movzx ecx, byte [esi + edi + 0x5f0]
xor ecx, eax
cmp ecx, 0x6e
je 0x4427e5
add edi, 2
cmp edi, dword [esi + 0x9f4]
jl 0x442730
xor ebx, ebx
mov eax, dword [esi + 0x41c4]
mov ebp, dword [esi + 0x5ec]
lea edi, [esi + 0xb10]
mov dword [esi + 0x9fc], ebx
mov dword [esi + 0x120], ebx
mov dword [edi], eax
mov ecx, dword [esi + 0x88224]
sub ecx, dword [esi + 0x88220]
sar ecx, 2
cmp ebp, ecx
jb 0x442788
call fcn.0049eacd
mov edx, dword [esi + 0x88220]
mov ebp, dword [edx + ebp*4]
cmp dword [esi + 0x8822c], ebx
je 0x44291a
push edi
mov ecx, ebp
call fcn.0043c170
cmp byte [eax], 1
je 0x442910
cmp dword [esi + 0x88230], ebx
jne 0x442910
cmp dword [esi + 0x89c00], 1
je 0x442910
cmp dword [esi + 0x88244], ebx
jne 0x44291a
mov ecx, esi
mov dword [esi + 0x873a4], ebx
call fcn.0043e910
jmp 0x44291a
mov dl, byte [esi + edi + 0x5f1]
lea eax, [esp + 0x12]
xor dl, bl
push eax
mov byte [esp + 0x16], dl
call fcn.0049fa42
add esp, 4
cmp eax, 0xffffffff
je 0x44274e
mov edx, dword [esi + eax*4 + 0x8a11c]
push 0xa
push 0xa
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004a22f0
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442828
sub eax, edx
mov ecx, eax
lea ebp, [edi - 1]
xor eax, eax
test ebp, ebp
jle 0x442852
lea esp, [esp]
mov dl, byte [esi + eax + 0x5f1]
xor dl, bl
mov byte [esp + eax + 0x3c], dl
inc eax
cmp eax, ebp
jl 0x442840
lea ebp, [ecx + ecx]
lea edx, [edi + ebp]
cmp eax, edx
mov dword [esp + 0x14], ebp
jge 0x44288b
lea ebp, [esp + 0x18]
movzx ecx, byte [ebp]
mov bl, byte [esp + ecx*2 - 0x3c]
sub ecx, 0x30
mov cl, byte [esp + ecx*2 + 0x25]
mov byte [esp + eax + 0x3c], bl
mov byte [esp + eax + 0x3d], cl
add eax, 2
inc ebp
cmp eax, edx
jl 0x442864
mov bl, byte [esp + 0x13]
mov ebp, dword [esp + 0x14]
mov edx, dword [esi + 0x9f4]
sub edx, 2
sub eax, 2
cmp edi, edx
jge 0x4428c1
mov ecx, dword [esi + 0x9f4]
add ecx, 0xfffffffe
lea eax, [esp + eax + 0x3c]
jmp 0x4428b0
mov dl, byte [esi + edi + 0x5f2]
xor dl, bl
mov byte [eax], dl
inc edi
inc eax
cmp edi, ecx
jl 0x4428b0
sub ebp, 2
add dword [esi + 0x9f4], ebp
mov edx, dword [esi + 0x9f4]
add dword [esi + 0x9f8], ebp
mov cl, byte [esi + 0x9f8]
add edx, 0xfffffffe
xor eax, eax
test edx, edx
jle 0x4426b0
lea esp, [esp]
mov dl, byte [esp + eax + 0x3c]
xor dl, cl
mov byte [esi + eax + 0x5f1], dl
mov edx, dword [esi + 0x9f4]
inc eax
sub edx, 2
cmp eax, edx
jl 0x4428f0
jmp 0x4426b0
mov dword [esi + 0x873a4], 1
push edi
mov ecx, ebp
call fcn.0043c170
movsx eax, byte [eax]
mov dword [esi + 0x88238], eax
mov eax, 1
cmp dword [esi + 0x884f0], eax
je 0x442948
push edi
mov ecx, ebp
call fcn.0043c170
movsx ebx, byte [eax]
mov eax, 1
mov dword [esi + 0x89c38], ebx
cmp dword [esi + 0x89c00], eax
jne 0x44295c
mov dword [esi + 0x88238], eax
cmp dword [esi + 0x884f0], eax
push edi
mov ecx, ebp
setne bl
call fcn.0043c170
pop edi
mov byte [eax], bl
pop ebp
mov ecx, dword [esp + 0x434]
pop esi
pop ebx
xor ecx, esp
call fcn.0049ef0f
add esp, 0x430
ret