Function at 0x4048a4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [0x7a147c]
mov edx, dword [0x7a1460]
mov ecx, dword [0x7a146c]
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
push edi
mov edi, dword [esp + 0x58]
mov al, byte [esi + eax*4]
mov byte [esp + 0x13], al
mov eax, dword [0x7a14b4]
mov dword [esp + 0x34], 0x3f1
mov ebx, dword [edx + eax*4]
inc eax
mov dword [0x7a14b4], eax
mov dword [esp + 0x30], ebx
movzx ebx, word [ebp + ecx*2]
or ebx, edi
dec ecx
inc eax
mov dword [0x7a146c], ecx
mov dword [0x7a14b4], eax
imul ecx, ecx, 0xc
mov dword [esp + 0x14], ebx
movzx eax, word [ebp + eax*2]
mov ebx, dword [0x7a148c]
add eax, 0xa1f
mov dword [esp + 0x1c], eax
mov eax, dword [0x7a1478]
sub ebx, dword [edx + eax*8]
dec dword [0x7a1454]
mov edx, dword [esp + 0x60]
mov eax, dword [0x7a1450]
inc edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x38], ebx
movzx ebx, word [0x7a1468]
mov eax, dword [eax + edx*8]
imul eax, dword [ecx + esi]
mov ecx, dword [0x7a1448]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
movzx eax, word [ebp + edx*2 + 0x1e]
mov dword [esp + 0x2c], eax
imul eax, dword [0x7a1488], 0xc
mov eax, dword [eax + ecx]
cdq
idiv ebx
mov dx, word [0x7a1494]
movzx ebp, ax
mov eax, dword [0x7a149c]
mov ecx, eax
inc eax
mov dword [esp + 0x18], ecx
mov dword [0x7a149c], eax
movzx eax, dx
imul ecx, ecx, 0xc
movzx eax, word [esi + eax*2]
mov esi, dword [esp + 0x60]
sub eax, edi
mov dword [esp + 0x48], eax
inc dx
mov eax, dword [0x7a14a8]
mov word [0x7a1494], dx
mov dword [esp + 0x40], ecx
mov eax, dword [ecx + eax]
imul ecx, esi, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [0x7a1484]
imul ebx, dword [ecx + eax], 0x113
inc esi
mov ecx, dword [0x7a1480]
mov dword [esp + 0x60], esi
mov esi, 0xf82
mov ax, word [ecx + edi*4]
sub ax, si
mov dword [esp + 0x24], ebx
movzx edi, ax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
movzx esi, dx
xor esi, dword [ecx + eax*4]
imul eax, dword [0x7a14b4], 3
mov ecx, dword [esp + 0x1c]
movzx edx, byte [eax + ecx]
mov eax, ebp
mov ecx, dword [0x7a1460]
xor edx, dword [0x7a1498]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
mov ecx, dword [ecx + ebx*4]
mov ebx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebp*8]
mov ebp, dword [0x7a1448]
imul eax, dword [ebp + ebx*4]
mov ebp, dword [esp + 0x54]
push eax
movzx eax, word [0x7a1468]
push eax
push ecx
mov eax, ebx
mov ebx, dword [esp + 0x30]
push dword [eax*4 + 0x56e]
mov eax, dword [0x7a1478]
push edx
push esi
push edi
push dword [ebp + eax*4]
push dword [esp + 0x80]
push ebx
push dword [esp + 0x48]
call fcn.00406496
mov edi, dword [esp + 0x84]
add esp, 0x2c
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x50]
imul ecx, edi, 0xc
mov dword [ecx + edx], eax
xor edx, edx
mov eax, dword [0x7a1488]
lea ecx, [ebx + eax*4]
mov eax, 0x11dd
div dword [ecx]
mov dword [ecx], eax
inc dword [0x7a1488]
dec edi
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], edi
mov esi, dword [ebx + edi*8]
mov dword [esp + 0x50], esi
movzx eax, byte [ecx + eax*2]
cmp esi, eax
je 0x404c49
mov eax, dword [esp + 0x14]
imul ecx, eax, 3
add eax, 4
imul eax, eax, 0xc
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
lea eax, [eax + edi*4]
mov dword [esp + 0x3c], eax
mov eax, esi
shl eax, 4
mov dword [esp + 0x24], eax
imul eax, esi, 0xc
add eax, ebp
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov ecx, dword [0x7a1454]
xor edx, edx
mov eax, dword [0x7a1480]
sub dword [esp + 0x28], 0xc
and dword [eax + ecx*8], esi
mov eax, edi
div dword [ebx]
mov edx, dword [esp + 0x54]
mov edi, esi
mov ecx, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [esp + 0x20]
movzx ebp, byte [0x7a145e]
or ebp, dword [0x7a1454]
mov dword [esp + 0x40], ebp
and edi, dword [eax]
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x1c]
movzx esi, word [eax + esi*2]
mov eax, dword [esp + 0x50]
mov edx, dword [edx + eax*4]
mov eax, dword [esp + 0x18]
sub edx, dword [ecx + eax*4]
mov ecx, dword [0x7a1460]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + ecx]
mov eax, dword [esp + 0x38]
add ecx, dword [esp + 0x50]
dec dword [esp + 0x18]
movzx eax, byte [eax + ebp]
mov ebp, dword [esp + 0x40]
push eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x3c]
push 0xb45
push ecx
push eax
push edx
push esi
mov esi, dword [esp + 0x6c]
push edi
push ebx
push ebp
push esi
call fcn.00406496
mov ecx, dword [0x7a14bc]
add esp, 0x2c
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x54]
mov dword [ecx + edx*4], eax
mov eax, dword [0x7a14b0]
mov ecx, dword [0x7a146c]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7a1454]
or ecx, dword [ebp + eax*4]
mov eax, dword [0x7a1448]
mov dword [eax + esi*8], ecx
mov eax, dword [0x7a146c]
mov ecx, dword [esp + 0x2c]
mov cx, word [ecx + eax*4]
mov eax, dword [esp + 0x44]
xor cx, word [eax + edx]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
sub cx, word [eax + 0x60cc]
mov eax, dword [0x7a14b4]
mov word [edx + eax*2], cx
inc dword [0x7a14b4]
mov ecx, dword [esp + 0x3c]
movzx eax, word [edx + 0x2ce8]
xor edx, edx
div dword [ecx]
mov eax, edx
and eax, 0xf07
or eax, dword [0x7a146c]
inc esi
add dword [esp + 0x20], 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x24], 0x10
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x28]
movzx ecx, byte [ecx + eax*2]
cmp esi, ecx
jne 0x404af8
jmp 0x404c4d
mov eax, dword [esp + 0x60]
movzx edx, word [0x7a1494]
mov ecx, dword [0x7a1484]
imul eax, eax, 0xc
lea ecx, [ecx + edx*4]
xor edx, edx
mov eax, dword [eax + ebp]
div dword [ecx]
lea eax, [edi + 0x7ca150]
imul eax, eax, 3
mov dword [ecx], edx
mov ecx, dword [0x7a14b4]
inc ecx
mov dword [0x7a14b4], ecx
pop edi
pop esi
pop ebp
movzx eax, byte [eax]
or eax, ecx
and dword [0x7a149c], eax
or ecx, 0x1d66
movzx eax, byte [esp + 7]
mov dword [0x7a14b4], ecx
pop ebx
add esp, 0x3c
ret