Function at 0x48ce9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x160]
push edi
xor edi, edi
cmp eax, edi
je 0x48cef5
mov eax, dword [eax + 0x38]
cdq
sub eax, edx
sar eax, 1
and eax, 0xfff
shl eax, 2
movsx ecx, word [eax + 0x63db22]
movsx eax, word [eax + 0x63db20]
mov edx, ecx
neg edx
neg eax
shl eax, 0xe
shl edx, 0xe
shl ecx, 0xe
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
push 0x20
pop ecx
call fcn.00511c7c
mov edx, dword [ebx + 4]
push 0x21
pop ecx
call fcn.00511c7c
mov edx, dword [ebx + 8]
push 0x22
pop ecx
call fcn.00511c7c
mov edx, dword [ebx + 0xc]
push 0x23
pop ecx
call fcn.00511c7c
mov edx, dword [ebx + 0x10]
push 0x24
pop ecx
call fcn.00511c7c
mov edx, dword [ebx + 0x14]
push 0x25
add ebx, 0x14
pop ecx
call fcn.00511c7c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
push 0x26
pop ecx
call fcn.00511c7c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
push 0x27
pop ecx
call fcn.00511c7c
mov eax, dword [esi + 0x98]
mov dword [ebp + 8], eax
lea eax, [esi + 0x50]
mov dword [ebp - 8], eax
mov dword [ebp - 0x90], 3
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x3c]
call fcn.005179db
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x14]
call fcn.005179db
push ebx
lea ecx, [ebp - 0x14]
call fcn.0051a733
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
imul dword [ebp - 0x14]
mov ecx, 0x1a
shrd eax, edx, cl
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
imul dword [ebp - 0x10]
mov ecx, 0x1a
shrd eax, edx, cl
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
imul dword [ebp - 0xc]
mov ecx, 0x1a
shrd eax, edx, cl
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp + 8]
add dword [ebp - 8], 0xc
add edx, eax
add edx, dword [ebp - 0x98]
mov eax, dword [ecx + 4]
neg edx
xor edx, eax
and edx, 0x7fffffff
xor edx, eax
mov dword [ecx + 4], edx
add ecx, 8
dec dword [ebp - 0x90]
mov dword [ebp + 8], ecx
jne 0x48cf71
mov eax, dword [esi + 0x144]
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x130]
shl eax, 0xd
cdq
and ecx, 0xfff
movsx ecx, word [ecx*4 + 0x63db20]
idiv ecx
mov ecx, dword [ebp + 8]
shl ecx, 0xc
mov dword [ebp + 8], ecx
neg dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
push 4
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x4c], edi
lea edi, [esi + 0xa0]
mov dword [esi + 0x118], eax
neg eax
shl eax, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x128]
add eax, ecx
mov dword [ebp - 0x80], eax
neg eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x13c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 0x128]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 8]
sar edx, 1
sub eax, edx
mov dword [ebp - 0x2c], eax
neg eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x13c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
neg eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], eax
mov eax, ecx
cdq
pop ecx
idiv ecx
lea eax, [eax + eax*4]
add eax, dword [esi + 0x12c]
mov dword [ebp - 0x50], eax
neg eax
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x138]
shl eax, 0xc
cdq
idiv ecx
mov edx, edi
lea ecx, [ebp - 0x68]
lea eax, [eax + eax*2]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x48], eax
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0xac]
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0xb8]
mov edx, edi
lea ecx, [ebp - 0x80]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0xc4]
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0xd0]
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0xdc]
mov edx, edi
lea ecx, [ebp - 0x44]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0xe8]
mov edx, edi
lea ecx, [ebp - 0x5c]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0xf4]
mov edx, edi
lea ecx, [ebp - 0x74]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
lea edi, [esi + 0x100]
mov edx, edi
lea ecx, [ebp - 0x8c]
call fcn.005179db
push ebx
mov ecx, edi
call fcn.0051a733
add esi, 0x10c
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.005179db
push ebx
mov ecx, esi
call fcn.0051a733
pop edi
pop esi
pop ebx
leave
ret 4