Function at 0x4171fe
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1378
call fcn.004ba2e0
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x1374], eax
mov eax, dword [esp + 0x137c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0x1394]
push 0x9c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x234], ebx
call fcn.004b6030
add esp, 0xc
lea eax, [esp + 0x2c8]
push 0x1014
push ebx
push eax
call fcn.004b6030
mov edx, dword [esp + 0x139c]
add esp, 0xc
mov ecx, ebx
sub edx, 0x4e8a20
push 0x10
pop edi
mov al, byte [edx + ecx + 0x4e8a20]
xor al, byte [ecx + 0x4e8a20]
mov byte [esp + ecx + 0x1310], al
inc ecx
cmp ecx, edi
jl 0x41727b
mov esi, 0x51ac28
lea edi, [esp + 0x12e0]
push 0x80
lea eax, [esp + 0x1314]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x230]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046feab
add esp, 0xc
lea eax, [esp + 0x1340]
push 0x10
pop edx
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x18]
push 0x40
pop esi
sub esi, ebx
cmp esi, edx
cmova esi, edx
add eax, ebx
push esi
push eax
lea eax, [esp + 0x12f8]
push eax
call fcn.004b91d0
add esp, 0xc
lea eax, [esp + 0x12f0]
add eax, esi
push 0x10
pop edi
sub edi, esi
push edi
push 0
push eax
call fcn.004b6030
lea esi, [esp + 0x12fc]
add esp, 0xc
lea edi, [esp + 0x28]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1300]
push eax
lea eax, [esp + 0x12f4]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x230]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046e9cb
add esp, 0xc
xor ecx, ecx
push 0x10
pop edx
mov al, byte [esp + ecx + 0x12e0]
xor byte [esp + ecx + 0x1300], al
inc ecx
cmp ecx, edx
jl 0x41733f
lea esi, [esp + 0x28]
add ebx, edx
lea edi, [esp + 0x12e0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + ebp]
lea esi, [esp + 0x1300]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp ebx, 0x40
jb 0x4172cf
lea eax, [esp + 0x1330]
push eax
call fcn.00416ee3
lea eax, [esp + 0x130]
push eax
push 0x51ac38
call fcn.0046c22c
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x132c]
push eax
lea eax, [esp + 0x1340]
push eax
call fcn.004025a0
mov esi, 0x51ac28
lea edi, [esp + 0x12f4]
add esp, 0x14
lea eax, [esp + 0x38]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x1324]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046c22c
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x12ec]
push eax
push 0x40
lea eax, [esp + 0x1354]
push ebx
push eax
call fcn.0046c3d7
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.004174f0
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.004174f0
mov ebp, dword [esp + 0x20]
push 0xa
pop ecx
mov ebx, ecx
xor esi, esi
imul ebx, ecx
xor edi, edi
mov eax, esi
imul eax, esi
add eax, ebx
cdq
cmp eax, dword [esp + 0x10]
jne 0x41744e
cmp edx, dword [esp + 0x14]
jne 0x41744e
mov eax, edi
cdq
cmp eax, dword [esp + 0x18]
jne 0x41744e
cmp edx, dword [esp + 0x1c]
je 0x41745e
inc esi
add edi, ecx
cmp esi, 6
jle 0x41742b
inc ecx
cmp ecx, 0xe
jle 0x417422
jmp 0x417464
mov dword [ebp], ecx
mov dword [ebp + 4], esi
mov ecx, dword [esp + 0x1384]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x1378
ret 0xc