Function at 0x4a1e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x180]
push esi
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x144], ebx
call fcn.0049ce90
lea eax, [ebp - 0x168]
push eax
call fcn.0049ce90
lea eax, [ebx + 0x4c]
push 0
push eax
mov dword [ebp - 0x148], eax
call fcn.0049cde0
add esp, 0x10
cmp eax, 1
je 0x4a1ebb
pop esi
mov eax, 0xffffb080
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.0049cde0
test eax, eax
lea eax, [ebp - 0x180]
push esi
push eax
sete byte [ebp - 0x154]
call fcn.0049ab80
mov edi, dword [ebp + 0x20]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4a204c
push esi
push dword [ebp - 0x148]
lea eax, [ebp - 0x168]
push eax
call fcn.0049e760
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4a204c
push dword [ebp - 0x154]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.004a9dc0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x174], ebx
test ebx, ebx
jne 0x4a204c
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x148], ecx
test edi, edi
je 0x4a1fce
movzx eax, byte [ebp + 0x1c]
mov dword [ebp - 0x16c], eax
xor esi, esi
test eax, eax
je 0x4a1fbd
lea eax, [ebp - 0x10c]
mov ebx, ecx
add eax, ecx
mov dword [ebp - 0x170], eax
mov al, byte [eax]
mov byte [ebp - 0x13d], al
nop
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.0049cde0
mov ecx, esi
add esp, 8
shl al, cl
inc esi
mov cl, byte [ebp - 0x13d]
add ebx, edi
or cl, al
mov eax, dword [ebp - 0x16c]
mov byte [ebp - 0x13d], cl
cmp esi, eax
jb 0x4a1f80
mov edx, dword [ebp - 0x170]
mov byte [edx], cl
mov ecx, dword [ebp - 0x148]
inc ecx
mov dword [ebp - 0x148], ecx
cmp ecx, edi
jb 0x4a1f60
mov ebx, dword [ebp - 0x174]
xor al, al
mov esi, 1
mov byte [ebp - 0x13d], al
cmp edi, esi
jb 0x4a204c
nop
mov bl, byte [ebp + esi - 0x10c]
mov bh, 1
mov dl, byte [ebp + esi - 0x10d]
mov dh, bl
and bl, byte [ebp - 0x13d]
xor dh, al
mov al, dh
movzx ecx, dl
and al, 1
sub bh, al
movzx eax, bh
imul ecx, eax
shl bh, 7
or bh, dl
mov byte [ebp + esi - 0x10d], bh
mov al, cl
xor cl, dh
and al, dh
mov byte [ebp + esi - 0x10c], cl
or al, bl
inc esi
mov byte [ebp - 0x13d], al
cmp esi, edi
jbe 0x4a1fe0
lea eax, [ebp - 0x168]
push eax
call fcn.0049c960
lea eax, [ebp - 0x180]
push eax
call fcn.0049c960
add esp, 8
jmp 0x4a206f
lea eax, [ebp - 0x168]
push eax
call fcn.0049c960
lea eax, [ebp - 0x180]
push eax
call fcn.0049c960
add esp, 8
test ebx, ebx
jne 0x4a22b7
lea eax, [ebp - 0x1a4]
push eax
call fcn.0049ce90
lea eax, [ebp - 0x198]
push eax
call fcn.0049ce90
lea eax, [ebp - 0x18c]
push eax
call fcn.0049ce90
add esp, 0xc
lea esi, [ebp - 0x13c]
mov ebx, 4
push esi
call fcn.0049ce90
add esp, 4
add esi, 0xc
sub ebx, 1
jne 0x4a20a1
movzx eax, byte [ebp + edi - 0x10c]
mov ebx, dword [ebp - 0x150]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x14c]
push ebx
push dword [ebp - 0x144]
call fcn.004a3a00
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a2188
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x4a210d
push dword [ebp - 0x15c]
push eax
push ebx
push dword [ebp - 0x144]
call fcn.004a3480
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a2188
test edi, edi
je 0x4a2188
lea eax, [ebp - 0x13c]
dec edi
push eax
push ebx
push ebx
push dword [ebp - 0x144]
call fcn.004a1690
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a2188
movzx eax, byte [ebp + edi - 0x10c]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x14c]
push eax
push dword [ebp - 0x144]
call fcn.004a3a00
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a2188
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x1a4]
push eax
push ebx
push ebx
push dword [ebp - 0x144]
call fcn.004a0f30
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a2188
test edi, edi
jne 0x4a2115
lea eax, [ebp - 0x1a4]
push eax
call fcn.0049c960
lea eax, [ebp - 0x198]
push eax
call fcn.0049c960
lea eax, [ebp - 0x18c]
push eax
call fcn.0049c960
add esp, 0xc
lea edi, [ebp - 0x13c]
mov ebx, 4
nop word [eax + eax]
push edi
call fcn.0049c960
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x4a21c0
mov ebx, dword [ebp - 0x150]
test esi, esi
jne 0x4a22a4
lea eax, [ebp - 0x168]
push eax
call fcn.0049ce90
lea esi, [ebx + 0xc]
push 0
push esi
call fcn.0049aa70
push esi
mov esi, dword [ebp - 0x144]
test eax, eax
setne byte [ebp - 0x13d]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.0049e760
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4a2244
mov al, byte [ebp - 0x13d]
and al, byte [ebp - 0x154]
movzx eax, al
push eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.004a9dc0
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x168]
push eax
call fcn.0049c960
add esp, 4
test edi, edi
jne 0x4a2291
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x4a2276
push dword [ebp - 0x15c]
push eax
push ebx
push esi
call fcn.004a3480
add esp, 0x10
test eax, eax
jne 0x4a22b9
push ebx
push esi
call fcn.004a2720
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret