Function at 0x4378e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push edi
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
idiv ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x48]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ecx*4 + 0xf]
and ecx, 0xfffffff0
mov dword [ebp - 0x18], ecx
lea eax, [edx + ecx]
cmp eax, dword [esi + 0x4c]
jle 0x437966
cmp dword [esi + 0x44], 0
je 0x437950
push 0x10
push 8
call fcn.0044b179
mov ecx, dword [esi + 0x48]
add esp, 8
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x54], eax
push 0x10
push ecx
mov dword [esi + 0x4c], ecx
call fcn.0044b179
mov ecx, dword [ebp - 0x18]
add esp, 8
mov dword [esi + 0x44], eax
xor edx, edx
movsd xmm1, qword [0x4fdcf8]
lea eax, [edx + ecx]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x44]
add eax, edx
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edx
divsd xmm1, xmm0
cvtpd2ps xmm5, xmm1
movss dword [ebp - 0x24], xmm5
cmp dword [ebp + 0xc], edx
jle 0x437a2f
mov ebx, dword [ebp - 8]
shl ebx, 2
add ebx, 0xf
and ebx, 0xfffffff0
nop dword [eax + eax]
mov ecx, dword [esi + 0x48]
lea eax, [ecx + ebx]
cmp eax, dword [esi + 0x4c]
jle 0x4379f7
cmp dword [esi + 0x44], 0
je 0x4379e1
push 0x10
push 8
call fcn.0044b179
mov ecx, dword [esi + 0x48]
add esp, 8
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov dword [esi + 0x54], eax
push 0x10
push ebx
mov dword [esi + 0x4c], ebx
call fcn.0044b179
mov edx, dword [ebp - 4]
add esp, 8
mov dword [esi + 0x44], eax
xor ecx, ecx
lea eax, [ecx + ebx]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x44]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 8]
lea ecx, [edx*4]
push ecx
push 0
push eax
call fcn.0043eb50
mov edx, dword [ebp - 4]
add esp, 0xc
inc edx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 0xc]
jl 0x4379b0
movss xmm5, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 8], ecx
jle 0x437bdc
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
nop dword [eax + eax]
mov eax, dword [edx]
add eax, ebx
mov dword [ebp - 0x1c], eax
test esi, esi
jle 0x437bca
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], esi
xor esi, esi
xor ebx, ebx
xor edx, edx
test edi, edi
jle 0x437b59
cmp edi, 8
jb 0x437b37
cmp dword [0x51b06c], 2
jl 0x437b37
mov ecx, dword [eax]
mov eax, edi
and eax, 0x80000007
jns 0x437aa4
dec eax
or eax, 0xfffffff8
inc eax
mov esi, edi
xorps xmm1, xmm1
sub esi, eax
xorps xmm2, xmm2
mov eax, dword [ebp - 0x1c]
xorps xmm3, xmm3
xorps xmm4, xmm4
lea eax, [ecx + eax*4]
nop word [eax + eax]
movups xmm0, xmmword [eax]
add edx, 8
lea eax, [eax + 0x20]
pabsd xmm0, xmm0
paddd xmm4, xmm0
pmaxsd xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
pabsd xmm0, xmm0
paddd xmm3, xmm0
pmaxsd xmm2, xmm0
cmp edx, esi
jl 0x437ac0
paddd xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
paddd xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
paddd xmm3, xmm0
movd ebx, xmm3
pmaxsd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movd esi, xmm1
cmp edx, edi
jge 0x437b59
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
add eax, edx
sub edi, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
cmovg esi, eax
add ebx, eax
sub edi, 1
jne 0x437b43
movd xmm0, ebx
xor ecx, ecx
mov ebx, dword [ebp - 0x28]
cvtdq2ps xmm0, xmm0
dec ebx
mulss xmm0, xmm5
cvttss2si edi, xmm0
test ebx, ebx
jle 0x437b9a
mov eax, dword [ebp - 0x10]
add eax, 0xa18
nop word [eax + eax]
cmp esi, dword [eax - 0x100]
jg 0x437b92
mov edx, dword [eax]
test edx, edx
js 0x437b9a
cmp edi, edx
jl 0x437b9a
inc ecx
add eax, 4
cmp ecx, ebx
jl 0x437b80
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xc]
mov eax, dword [eax + edx]
mov edx, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 4]
add eax, 4
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], eax
jne 0x437a70
mov ebx, dword [ebp - 0x24]
mov ecx, edx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
inc ecx
add ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], ebx
cmp ecx, dword [ebp - 8]
jl 0x437a50
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
inc dword [eax + 0x28]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret