Function at 0x41f5d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41f86e
sub esp, 0x28
mov ecx, dword [0x76a864]
test ecx, ecx
je 0x41f809
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, ecx
xor ebx, ebx
xor ebp, ebp
cmp ebx, edx
jge 0x41f624
mov esi, dword [ecx]
add ecx, 4
inc ebx
add esi, ebp
mov edi, esi
shl esi, 0xa
lea ebp, [edi + esi]
mov esi, ebp
shr ebp, 6
xor ebp, esi
cmp ebx, edx
jl 0x41f609
mov ecx, dword [0x76a864]
test byte [ecx], al
mov ebx, dword [esp + 0x30]
add ebp, ebx
mov esi, ebp
shl ebp, 0xa
add ebp, esi
mov esi, ebp
shr ebp, 6
xor esi, ebp
lea ebp, [esi + esi*8]
mov esi, ebp
shr ebp, 0xb
xor esi, ebp
mov dword [esp + 0x1c], esi
mov ebp, eax
mov eax, esi
mov edi, 0xba6a1fbd
mul edi
shr edx, 0x11
imul edx, edx, 0x2bf1f
mov edi, esi
sub esi, edx
mov dword [esp + 0x20], esi
cmp esi, 0x2bf1f
jae 0x41f802
mov eax, dword [ecx + esi*4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x41f6a8
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jne 0x41f69e
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jne 0x41f69e
mov ecx, dword [eax + 0x10]
cmp ebx, ecx
je 0x41f796
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41f681
movzx eax, byte [esp + 0x40]
test al, al
je 0x41f78a
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.0041f470
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov ecx, eax
add ecx, 0x18
test byte [ecx], al
mov edx, dword [eax + 0x14]
cmp edx, 0x20
ja 0x41f783
mov ebx, dword [esp + 0x38]
cmp edx, ebx
jle 0x41f77c
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0044a7d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x10], eax
mov eax, dword [0x76a864]
test byte [eax], al
mov edx, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [0x76a864]
test byte [eax], al
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x41f755
mov eax, dword [0x76a888]
mov dword [ecx + 4], eax
mov dword [0x76a888], ecx
mov dword [esp + 0x44], ecx
add esp, 0x28
ret
cmp eax, 3
jne 0x41f76b
mov eax, dword [0x76a89c]
mov dword [ecx + 4], eax
mov dword [0x76a89c], ecx
jmp 0x41f74d
mov eax, dword [0x76a860]
mov dword [ecx + 4], eax
mov dword [0x76a860], ecx
jmp 0x41f74d
mov ebx, edx
jmp 0x41f6f0
call fcn.004246c0
ud2
mov dword [esp + 0x44], 0
add esp, 0x28
ret
mov ecx, eax
add ecx, 0x18
test byte [ecx], al
mov esi, dword [eax + 0x14]
cmp esi, 0x20
ja 0x41f7fb
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], esi
call fcn.0041f880
movzx eax, byte [esp + 0x18]
test al, al
jne 0x41f7ef
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x41f69e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
add esp, 0x28
ret
call fcn.004246c0
ud2
call fcn.00424660
ud2
mov dword [esp], 0xafc7c
lea eax, [0x77e310]
mov dword [esp + 4], eax
call fcn.004109a0
mov eax, dword [esp + 8]
mov ecx, dword [0x77c810]
test ecx, ecx
jne 0x41f85a
mov dword [0x76a864], eax
mov ecx, dword [0x76a864]
test ecx, ecx
je 0x41f842
jmp 0x41f5f7
lea eax, [0x654a17]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.00425c70
ud2
lea ecx, [0x76a864]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040d580
jmp 0x41f833
call fcn.00448420
jmp fcn.0041f5d0