Function at 0x4a6cb0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x591014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov esi, dword [eax]
test esi, esi
je 0x4a6ec5
push esi
call fcn.004e24d0
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4a6f73
mov ebx, eax
cmp eax, 0xa
ja 0x4a6cf4
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
jmp 0x4a6d12
mov edi, ebx
or edi, 0xf
inc edi
push edi
call fcn.004c5c68
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
lea edi, [eax + ebx]
cmp eax, esi
ja 0x4a6d21
cmp edi, esi
ja 0x4a6ee3
test ebx, ebx
je 0x4a6d30
push ebx
push esi
push eax
call fcn.004c8df0
add esp, 0xc
mov byte [edi], 0
movzx ebx, byte [ebp - 0x11]
mov eax, dword [ebp - 0x1c]
test bl, bl
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
jns 0x4a6d4b
mov ebx, dword [ebp - 0x18]
mov edx, eax
jmp 0x4a6d51
and ebx, 0x7f
lea edx, [ebp - 0x1c]
mov eax, ebx
mov dword [ebp - 0x24], edx
mov esi, ebx
cmp ebx, 4
jb 0x4a6d96
mov esi, ebx
mov edx, dword [ebp - 0x24]
mov eax, ebx
nop word cs:[eax + eax]
imul ecx, dword [edx], 0x5bd1e995
mov edi, ecx
shr edi, 0x18
xor edi, ecx
imul ecx, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, ecx
add edx, 4
add esi, 0xfffffffc
cmp esi, 3
ja 0x4a6d70
mov ecx, dword [ebp + 8]
cmp esi, 1
je 0x4a6dba
cmp esi, 2
je 0x4a6db1
cmp esi, 3
jne 0x4a6dc5
movzx esi, byte [edx + 2]
shl esi, 0x10
xor eax, esi
movzx esi, byte [edx + 1]
shl esi, 8
xor eax, esi
movzx edx, byte [edx]
xor edx, eax
imul eax, edx, 0x5bd1e995
mov ecx, dword [ecx + 4]
xor edi, edi
test ecx, ecx
jne 0x4a6df8
cmp byte [ebp - 0x38], 0
jns 0x4a6ddf
push dword [ebp - 0x3c]
call fcn.004c5c98
add esp, 4
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov edx, ecx
shr edx, 1
and edx, 0x55555555
mov dword [ebp - 0x20], ecx
mov eax, ecx
sub eax, edx
mov edx, 0x33333333
mov ecx, eax
and ecx, edx
shr eax, 2
and eax, edx
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul eax, ecx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x34], eax
cmp eax, 1
jbe 0x4a6f78
mov edx, esi
mov eax, dword [ebp - 0x20]
cmp esi, eax
mov ecx, esi
mov esi, eax
jb 0x4a6e62
mov eax, ecx
xor edx, edx
div esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4a6dce
mov dword [ebp - 0x30], edx
mov edx, dword [eax]
test edx, edx
je 0x4a6dce
lea eax, [esi - 1]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [edx + 4]
cmp ecx, eax
mov dword [ebp - 0x20], edx
je 0x4a6f01
cmp dword [ebp - 0x34], 1
jbe 0x4a6f89
cmp eax, esi
jb 0x4a6ea6
xor edx, edx
div esi
mov eax, edx
cmp eax, dword [ebp - 0x30]
jne 0x4a6ebe
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
xor edi, edi
test edx, edx
mov ecx, dword [ebp - 0x2c]
jne 0x4a6e88
jmp 0x4a6dce
xor edi, edi
jmp 0x4a6dce
push str.basic_string_const_char__detected_nullptr
push str.__s___nullptr
push 0x370
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.004f96d0
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xec
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.004f96d0
movzx edx, byte [edx + 0x13]
mov eax, edx
and eax, 0x7f
mov ecx, eax
test dl, dl
jns 0x4a6f16
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0xc]
cmp ecx, ebx
jne 0x4a6eab
mov ecx, dword [ebp - 0x20]
add ecx, 8
test dl, dl
jns 0x4a6f26
mov ecx, dword [ecx]
mov edi, dword [ebp - 0x20]
js 0x4a6f52
test al, al
je 0x4a6dce
xor ecx, ecx
mov dl, byte [edi + ecx + 8]
mov edi, dword [ebp - 0x24]
cmp dl, byte [edi + ecx]
jne 0x4a6eab
inc ecx
cmp eax, ecx
mov edi, dword [ebp - 0x20]
jne 0x4a6f35
jmp 0x4a6dce
test ebx, ebx
je 0x4a6f6b
push ebx
push dword [ebp - 0x24]
push ecx
call fcn.004c7edd
add esp, 0xc
test eax, eax
jne 0x4a6eab
mov edi, dword [ebp - 0x20]
jmp 0x4a6dce
call fcn.004da990
mov eax, dword [ebp - 0x20]
lea edx, [eax - 1]
and edx, esi
mov ecx, esi
mov esi, eax
jmp 0x4a6e62
and eax, dword [ebp - 0x28]
jmp 0x4a6ea6