Function at 0x41f5f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41f88e
sub esp, 0x28
mov ecx, dword [0x872338]
test ecx, ecx
je 0x41f829
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, ecx
xor ebx, ebx
xor ebp, ebp
cmp ebx, edx
jge 0x41f644
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 0x41f629
mov ecx, dword [0x872338]
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 0x41f822
mov eax, dword [ecx + esi*4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x41f6c8
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jne 0x41f6be
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jne 0x41f6be
mov ecx, dword [eax + 0x10]
cmp ebx, ecx
je 0x41f7b6
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41f6a1
movzx eax, byte [esp + 0x40]
test al, al
je 0x41f7aa
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.0041f490
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 0x41f7a3
mov ebx, dword [esp + 0x38]
cmp edx, ebx
jle 0x41f79c
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0044aa80
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 [0x872338]
test byte [eax], al
mov edx, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [0x872338]
test byte [eax], al
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x41f775
mov eax, dword [0x87235c]
mov dword [ecx + 4], eax
mov dword [0x87235c], ecx
mov dword [esp + 0x44], ecx
add esp, 0x28
ret
cmp eax, 3
jne 0x41f78b
mov eax, dword [0x872370]
mov dword [ecx + 4], eax
mov dword [0x872370], ecx
jmp 0x41f76d
mov eax, dword [0x872334]
mov dword [ecx + 4], eax
mov dword [0x872334], ecx
jmp 0x41f76d
mov ebx, edx
jmp 0x41f710
call fcn.004246e0
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 0x41f81b
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.0041f8a0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x41f80f
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 0x41f6be
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
add esp, 0x28
ret
call fcn.004246e0
ud2
call fcn.00424680
ud2
mov dword [esp], 0xafc7c
lea eax, [0x886250]
mov dword [esp + 4], eax
call fcn.004109c0
mov eax, dword [esp + 8]
mov ecx, dword [0x884700]
test ecx, ecx
jne 0x41f87a
mov dword [0x872338], eax
mov ecx, dword [0x872338]
test ecx, ecx
je 0x41f862
jmp 0x41f617
lea eax, [0x70fed5]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.00425c90
ud2
lea ecx, [0x872338]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040d5a0
jmp 0x41f853
call fcn.004486b0
jmp fcn.0041f5f0