Function at 0x42af47
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor eax, eax
cmp dword [0x448428], 1
push esi
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
jne 0x42af84
mov eax, dword [0x448688]
mov ecx, dword [eax + 0x10]
push dword [eax + 0xac]
mov ebx, dword [eax + 0xc0]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
call fcn.0042d9c6
pop ecx
mov eax, dword [0x448688]
mov ecx, dword [eax + 0x10]
push dword [eax + 0xb4]
mov ebx, dword [eax + 0xb0]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
call fcn.0042d9c6
mov eax, dword [0x448688]
mov ecx, dword [eax + 0x10]
push dword [eax + 0xbc]
mov ebx, dword [eax + 0xb8]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
call fcn.0042d9c6
mov edi, dword [0x448688]
mov edx, dword [edi + 0xc0]
pop ecx
pop ecx
mov dword [ebp - 0xc], edx
call fcn.00426edc
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x42b218
push 0x40
push 0x3000
push esi
push 0
push dword [ebp + 8]
call fcn.00429331
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
je 0x42b212
push esi
call fcn.0040a1d5
push eax
call fcn.0042734d
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x42b212
and dword [ebp - 0x10], 0
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cld
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x10], edi
lea ebx, [ebp - 0x30]
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
mov edx, eax
call fcn.00426e79
test eax, eax
je 0x42b209
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x8c]
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
je 0x42b0cb
cmp dword [eax + 0x88], ebx
je 0x42b0cb
mov eax, dword [eax + 0x88]
mov esi, edx
add eax, esi
mov dword [ebp - 0x10], ebx
cmp ecx, ebx
jbe 0x42b0cb
mov ecx, dword [eax + 4]
sub ecx, 8
xor edx, edx
test ecx, 0xfffffffe
jbe 0x42b0bb
movzx ecx, word [eax + edx*2 + 8]
mov edi, ecx
and edi, 0xf000
mov ebx, 0x3000
cmp di, bx
jne 0x42b0ac
mov edi, dword [ebp - 8]
sub edi, dword [ebp - 0xc]
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + esi], edi
mov ecx, dword [eax + 4]
sub ecx, 8
inc edx
shr ecx, 1
cmp edx, ecx
jb 0x42b084
xor ebx, ebx
mov ecx, dword [eax + 4]
add dword [ebp - 0x10], ecx
add eax, ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x1c]
jb 0x42b074
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x20], ebx
je 0x42b113
push 4
push 0x3000
push dword [esi + 0x24]
push ebx
push dword [ebp + 8]
call fcn.00429331
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x42b0f7
mov dword [esi + 0x20], ebx
jmp 0x42b113
push dword [esi + 0x24]
push dword [esi + 0x20]
push edi
push dword [ebp + 8]
call fcn.0042a301
add esp, 0x10
test eax, eax
jne 0x42b110
mov dword [esi + 0x20], ebx
mov dword [esi + 0x20], edi
lea eax, [esi + 0x58]
push eax
mov eax, dword [0x448688]
mov eax, dword [eax + 0x9c]
call fcn.00424760
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], ebx
mov dword [esi], 1
mov dword [esp], 0x7fff
call fcn.0042891c
mov dword [ebp - 0x1c], eax
mov dword [esp], 0x44240d7a
call fcn.00446758
mov edi, eax
mov dword [esp], 0x44240d79
call fcn.00446758
pop ecx
mov ecx, dword [0x448688]
sub edi, dword [ecx + 0xc0]
mov ecx, dword [ecx + 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, edi
mov edi, dword [ebp - 0x10]
add edi, edx
add edi, eax
mov dword [ebp - 0x30], eax
sub ecx, edi
add ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x10]
add eax, edx
add eax, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], ecx
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor byte [esi], al
rol al, cl
inc esi
loop 0x42b1b0
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
xor byte [esi], al
rol al, cl
inc esi
loop 0x42b1bd
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
and dword [ebp - 0x1c], 0
add eax, 0x448428
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp + 0xc]
mov ecx, 0x260
cld
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x20]
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.0042a301
add esp, 0x10
test eax, eax
je 0x42b209
sub ebx, dword [ebp - 0xc]
add ebx, 0x44432c
mov dword [ebp - 0x18], ebx
push dword [ebp - 4]
call fcn.0040a2ae
pop ecx
mov edi, dword [0x448688]
cmp dword [0x448428], 1
jne 0x42b242
mov eax, dword [edi + 0x10]
push dword [edi + 0xac]
mov ebx, dword [edi + 0xc0]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x30], eax
call fcn.0042d9c6
mov edi, dword [0x448688]
pop ecx
mov eax, dword [edi + 0x10]
push dword [edi + 0xb4]
mov ebx, dword [edi + 0xb0]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x30], eax
call fcn.0042d9c6
mov eax, dword [0x448688]
mov ecx, dword [eax + 0x10]
push dword [eax + 0xbc]
mov ebx, dword [eax + 0xb8]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
call fcn.0042d9c6
xor esi, esi
pop ecx
pop ecx
cmp dword [ebp - 0x18], esi
jne 0x42b2a8
cmp dword [ebp - 0x14], esi
je 0x42b296
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00429227
pop ecx
pop ecx
cmp dword [ebp - 8], esi
je 0x42b2a8
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00429227
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret