Function at 0x4104e2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1404
call fcn.004c0c40
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x13fc], eax
mov eax, dword [esp + 0x140c]
push ebx
mov ebx, dword [esp + 0x1414]
push ebp
mov ebp, dword [esp + 0x1410]
push esi
push edi
mov dword [esp + 0x14], eax
xor esi, esi
mov eax, dword [esp + 0x1424]
push 0x9c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x278]
push esi
push eax
mov dword [esp + 0x27c], esi
call fcn.004bf040
push 0x1014
lea eax, [esp + 0x320]
push esi
push eax
call fcn.004bf040
lea eax, [esp + 0x30]
push eax
call fcn.00473e9c
push 0x40
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.00473ec4
lea eax, [esp + 0x40]
push eax
call fcn.00473de0
lea esi, [esp + 0x9c]
add esp, 0x2c
lea edi, [esp + 0x1348]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1378]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041042c
lea eax, [esp + 0x178]
push eax
push 0x51e408
call fcn.00473c35
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x1364]
push eax
lea eax, [esp + 0x1388]
push eax
call fcn.00402c20
mov edi, ebx
lea esi, [esp + 0x136c]
mov ebx, 0x51e3f8
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1370]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [esp + 0x1354]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00473d11
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x1358]
push eax
push 0x40
lea eax, [esp + 0x13f0]
push eax
push ebp
call fcn.00473aef
mov esi, ebx
lea edi, [esp + 0x1368]
push 0x80
lea eax, [esp + 0x137c]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x2a8]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004761ad
add esp, 0x3c
xor ebp, ebp
inc ebp
xor ebx, ebx
push 0xfffffffffffffff0
pop ecx
push 0x10
pop eax
push 0x40
pop esi
lea edi, [ecx + 0x10]
sub esi, edi
cmp esi, eax
cmova esi, eax
lea eax, [esp + 0x13d8]
add eax, ecx
push esi
push eax
lea eax, [esp + 0x1330]
push eax
call fcn.004be9f0
push 0x10
pop eax
sub eax, esi
push eax
lea eax, [esp + 0x1338]
add eax, esi
push ebx
push eax
call fcn.004bf040
add esp, 0x18
mov eax, ebx
test ebp, ebp
je 0x410699
mov cl, byte [esp + eax + 0x1338]
jmp 0x4106a0
mov cl, byte [esp + eax + 0x1368]
xor byte [esp + eax + 0x1328], cl
inc eax
cmp eax, 0x10
jl 0x41068c
lea eax, [esp + 0x1368]
mov ebp, ebx
push eax
lea eax, [esp + 0x132c]
push eax
lea eax, [esp + 0x278]
push eax
call fcn.0047576a
mov ecx, edi
lea esi, [esp + 0x1374]
lea edi, [esp + 0x1394]
add esp, 0xc
add edi, ecx
lea eax, [ecx + 0x10]
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 eax, 0x40
jb 0x410649
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x1388]
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov al, byte [ebx + 0x4efa40]
xor al, byte [esp + ebx + 0x1348]
mov byte [ecx + ebx], al
inc ebx
cmp ebx, 0x10
jl 0x410705
mov ecx, dword [esp + 0x140c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x1404
ret 0x10