Function at 0x410370
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1378
call fcn.004c0690
mov eax, dword [0x517490]
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.004bea90
add esp, 0xc
lea eax, [esp + 0x2c8]
push 0x1014
push ebx
push eax
call fcn.004bea90
mov edx, dword [esp + 0x139c]
add esp, 0xc
mov ecx, ebx
sub edx, 0x4eea60
push 0x10
pop edi
mov al, byte [edx + ecx + 0x4eea60]
xor al, byte [ecx + 0x4eea60]
mov byte [esp + ecx + 0x1310], al
inc ecx
cmp ecx, edi
jl 0x4103ed
mov esi, 0x51d428
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.00475bd2
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.004be440
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.004bea90
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.004746f2
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 0x4104b1
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 0x410441
lea eax, [esp + 0x1330]
push eax
call fcn.00410066
lea eax, [esp + 0x130]
push eax
push 0x51d438
call fcn.0047365a
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x132c]
push eax
lea eax, [esp + 0x1340]
push eax
call fcn.004028e0
mov esi, 0x51d428
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.0047365a
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.004733b3
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.00410662
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.00410662
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 0x4105c0
cmp edx, dword [esp + 0x14]
jne 0x4105c0
mov eax, edi
cdq
cmp eax, dword [esp + 0x18]
jne 0x4105c0
cmp edx, dword [esp + 0x1c]
je 0x4105d0
inc esi
add edi, ecx
cmp esi, 6
jle 0x41059d
inc ecx
cmp ecx, 0xe
jle 0x410594
jmp 0x4105d6
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.004b94b6
add esp, 0x1378
ret 0xc