Function at 0x42ba50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0x14]
mov ecx, 0x240
push ebx
mov ebx, dword [ebp + 0x10]
push esi
imul eax, dword [edx + 0x48], 0x5c
xor esi, esi
push edi
add eax, 0x4495b8
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x98bc]
mov dword [edx + ebx*4 + 0x9a18], eax
add edx, 0x8fbc
mov eax, dword [edx - 4]
lea edx, [edx - 4]
sar eax, 0xa
add esi, eax
sub ecx, 1
jne 0x42ba85
movsd xmm1, qword [0x44b590]
test esi, esi
je 0x42bac8
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
call fcn.0043bcb0
divsd xmm0, qword [0x44b5c8]
movsd xmm1, qword [0x44b590]
cvttsd2si eax, xmm0
jmp 0x42baca
xor eax, eax
mov edx, dword [ebp + 0x14]
mov ecx, 0x15
mov dword [edx + ebx*4 + 0x98c0], eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + ebx*2]
inc eax
imul eax, eax, 0xa8
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
imul eax, ebx, 0x54
lea ebx, [edx + 0x991c]
add ebx, eax
mov eax, dword [ebp - 4]
dec ecx
mov edx, dword [ebp - 4]
add ebx, 0xfffffffc
sub dword [ebp - 0xc], 8
xor esi, esi
mov dword [ebp - 0x10], ecx
xor edi, edi
mov eax, dword [eax + ecx*4 + 4]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
mov dword [ebp - 8], ecx
cmp ecx, eax
jge 0x42bbab
sub eax, ecx
cmp eax, 2
jl 0x42bb7b
mov eax, dword [ebp - 4]
add edx, 0x86c0
lea ecx, [edx + ecx*4]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 8]
sub edx, eax
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 8], eax
mov eax, dword [ecx - 4]
lea ecx, [ecx + 8]
sar eax, 0xa
add esi, eax
mov eax, dword [ecx - 8]
sar eax, 0xa
add edi, eax
sub edx, 1
jne 0x42bb51
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [edx + eax*4 + 4]
jge 0x42bb85
mov edx, dword [ebp + 0x14]
mov ebx, dword [edx + ecx*4 + 0x86bc]
sar ebx, 0xa
lea eax, [edi + esi]
add ebx, eax
je 0x42bbab
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
call fcn.0043bcb0
divsd xmm0, qword [0x44b5c8]
cvttsd2si eax, xmm0
jmp 0x42bbad
xor eax, eax
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [0x4468c0]
lahf
test ah, 0x44
jnp 0x42bbda
call fcn.0043bcb0
divsd xmm0, qword [0x44b5c8]
cvttsd2si eax, xmm0
jmp 0x42bbdc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0xa8], eax
movsd xmm1, qword [0x44b590]
test ecx, ecx
jne 0x42baf7
cmp dword [ebp + 0x10], 1
jne 0x42bd3b
mov ebx, dword [ebp + 0x14]
mov eax, 2
xor esi, esi
lea edx, [ebx + 0x9a20]
nop
cmp dword [edx - 4], 0
lea edx, [edx - 4]
lea ecx, [esi + 1]
cmove ecx, esi
lea esi, [ecx + 1]
sub eax, 1
jne 0x42bc10
mov eax, dword [ebx + 0x98c0]
sub eax, dword [ebx + 0x98c4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
cmovge esi, ecx
xor edi, edi
mov dword [ebp + 0x10], esi
lea ecx, [ebx + 0x991c]
lea esi, [edi + 0x15]
nop word [eax + eax]
mov eax, dword [ecx - 4]
lea ecx, [ecx - 4]
sub eax, dword [ecx + 0x54]
cdq
xor eax, edx
sub eax, edx
add edi, eax
sub esi, 1
jne 0x42bc50
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
shl edx, 4
cmp edi, 0x64
lea eax, [ecx + 1]
cmovge eax, ecx
cmp eax, 5
jne 0x42bd12
lea ecx, [ebx + 0x7c]
mov eax, 0x44b570
add ecx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x10], ecx
mov esi, dword [eax + 4]
xor ebx, ebx
mov edx, dword [eax]
xor edi, edi
mov dword [ecx], ebx
cmp edx, esi
jge 0x42bcf1
mov ecx, dword [ebp + 0x14]
add ecx, 0x98c8
sub esi, edx
lea ecx, [ecx + edx*4]
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
sub eax, dword [ecx + 0x50]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [ecx + 0xa4]
sub eax, dword [ecx + 0xf8]
cdq
xor eax, edx
sub eax, edx
add edi, eax
sub esi, 1
jne 0x42bcb0
cmp ebx, 0xa
jge 0x42bce1
cmp edi, 0xa
jl 0x42bceb
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, dword [ebp + 0x10]
jmp 0x42bcf6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, 1
add eax, 4
mov dword [ecx], edx
add ecx, 4
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x44b580
jl 0x42bc90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edx + ebx + 0x7c], 0
mov dword [edx + ebx + 0x80], 0
mov dword [edx + ebx + 0x84], 0
mov dword [edx + ebx + 0x88], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret