Function at 0x410736
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1378
call fcn.004c0c40
mov eax, dword [0x518450]
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.004bf040
add esp, 0xc
lea eax, [esp + 0x2c8]
push 0x1014
push ebx
push eax
call fcn.004bf040
mov edx, dword [esp + 0x139c]
add esp, 0xc
mov ecx, ebx
sub edx, 0x4efa40
push 0x10
pop edi
mov al, byte [edx + ecx + 0x4efa40]
xor al, byte [ecx + 0x4efa40]
mov byte [esp + ecx + 0x1310], al
inc ecx
cmp ecx, edi
jl 0x4107b3
mov esi, 0x51e3f8
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.004761ad
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.004be9f0
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.004bf040
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.00474ccd
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 0x410877
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 0x410807
lea eax, [esp + 0x1330]
push eax
call fcn.0041042c
lea eax, [esp + 0x130]
push eax
push 0x51e408
call fcn.00473c35
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x132c]
push eax
lea eax, [esp + 0x1340]
push eax
call fcn.00402c20
mov esi, 0x51e3f8
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.00473c35
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.0047398e
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.00410a28
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.00410a28
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 0x410986
cmp edx, dword [esp + 0x14]
jne 0x410986
mov eax, edi
cdq
cmp eax, dword [esp + 0x18]
jne 0x410986
cmp edx, dword [esp + 0x1c]
je 0x410996
inc esi
add edi, ecx
cmp esi, 6
jle 0x410963
inc ecx
cmp ecx, 0xe
jle 0x41095a
jmp 0x41099c
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.004b9a6c
add esp, 0x1378
ret 0xc