Function at 0x41a960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x92b444]
subss xmm0, dword [ebp + 0x20]
movss xmm1, dword [0x92b774]
push ebx
push esi
mov ebx, edx
mov esi, ecx
comiss xmm1, xmm0
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], esi
ja 0x41a99a
movaps xmm1, xmm0
mulss xmm1, dword [0x92b390]
lea edi, [ebx*4]
mov eax, edi
movss dword [ebp - 0x24], xmm1
call fcn.00471740
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], esp
movsx eax, word [ecx + ebx*2 - 2]
movsx esi, word [ecx + ebx*2]
mov ecx, dword [ebp + 0x1c]
sub esi, eax
shl esi, cl
shl esi, 2
mov eax, esi
call fcn.00471740
mov eax, esi
mov dword [ebp - 0x10], esp
call fcn.00471740
mov eax, edi
mov dword [ebp - 0x1c], esp
call fcn.00471740
mov eax, edi
mov dword [ebp - 0x30], esp
call fcn.00471740
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x54], esp
mov dword [ebp - 0x20], ecx
test ebx, ebx
jle 0x41ab85
mov eax, dword [ebp + 0x18]
imul eax, dword [ebp + 0x24]
mov dword [ebp + 0x18], eax
xor eax, eax
test edi, edi
cmovne eax, esi
mov dword [ebp - 0x3c], eax
nop dword [eax]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov eax, dword [eax + 0x20]
movsx edx, word [eax + ecx*2]
movsx eax, word [eax + ecx*2 + 2]
mov ecx, esi
sub eax, edx
shl edx, cl
add edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
shl eax, cl
mov dword [ebp - 8], eax
shl eax, 2
push eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
push eax
push dword [ebp - 0x10]
call fcn.004591f0
movss xmm7, dword [ebp - 0x24]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
movaps xmm3, xmm7
mov edx, dword [ebp - 8]
call fcn.0041a860
mov eax, dword [ebp - 0xc]
add esp, 0x10
movaps xmm5, xmm0
movss dword [ebp - 0x34], xmm5
test edi, edi
je 0x41aad7
cmp eax, 1
je 0x41aad7
push dword [ebp - 0x38]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.004591f0
mov edx, dword [ebp - 8]
mov ecx, esi
mov eax, 1
sar edx, cl
shl eax, cl
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.0042bfe0
movss xmm7, dword [ebp - 0x24]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0x1c]
movaps xmm3, xmm7
mov edx, dword [ebp - 8]
push eax
call fcn.0041a860
movss xmm5, dword [ebp - 0x34]
add esp, 0x14
comiss xmm5, xmm0
mov eax, dword [ebp - 0xc]
jbe 0x41aad7
movaps xmm5, xmm0
or ebx, 0xffffffff
xor ecx, ecx
nop dword [eax]
movaps xmm6, xmm5
test edi, edi
jne 0x41aaf1
cmp eax, 1
je 0x41aaf1
lea eax, [edi + 1]
jmp 0x41aaf3
xor eax, eax
add eax, esi
cmp ecx, eax
jge 0x41ab4b
test edi, edi
je 0x41ab05
sub esi, ecx
lea edi, [ecx + 1]
dec esi
jmp 0x41ab0a
lea esi, [ecx + 1]
mov edi, esi
mov eax, 1
sar edx, cl
shl eax, cl
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0042bfe0
mov ecx, dword [ebp - 0x10]
movaps xmm3, xmm7
mov edx, dword [ebp - 8]
push esi
call fcn.0041a860
add esp, 8
comiss xmm5, xmm0
jbe 0x41ab36
movaps xmm5, xmm0
mov esi, dword [ebp + 0x1c]
mov ecx, edi
mov eax, dword [ebp - 0xc]
comiss xmm6, xmm0
cmovbe edi, ebx
mov ebx, edi
mov edi, dword [ebp + 8]
jmp 0x41aae0
test edi, edi
jne 0x41ab51
neg ebx
mov ecx, dword [ebp - 0x20]
add ebx, ebx
cmp dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx*4], ebx
jne 0x41ab76
test ebx, ebx
je 0x41ab70
mov eax, esi
neg eax
add eax, eax
cmp ebx, eax
jne 0x41ab76
lea eax, [ebx - 1]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x28]
jl 0x41aa20
jmp 0x41ab88
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x28]
lea ecx, [edi*4]
xor ebx, ebx
mov dword [ebp - 0xc], 0
test edi, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
cmovne eax, ebx
mov dword [ebp - 0x18], eax
lea eax, [edi + esi*2]
lea edi, [eax*4 + 0x47d051]
mov dword [ebp - 0x2c], eax
lea eax, [esi*8 + 0x47d050]
mov dword [ebp - 0x3c], edi
add eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
jmp 0x41abd5
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
movsx ecx, byte [edi - 1]
add ecx, ecx
sub eax, ecx
movsx ecx, byte [edi]
cdq
add ecx, ecx
mov esi, eax
mov eax, dword [ebp - 0x14]
xor esi, edx
sub esi, edx
imul esi, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, ecx
mov ecx, dword [ebp - 0x28]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 8], esi
imul eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
cmp ecx, 1
jle 0x41aca3
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
movsx ecx, byte [ecx]
add ecx, ecx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x20]
movsx ecx, byte [ecx + 1]
add ecx, ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x28]
sub edi, ecx
mov dword [ebp - 0x44], edi
lea edx, [ecx + 4]
mov ecx, dword [ebp - 0x28]
dec ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], ecx
mov ebx, dword [ebp + 0x10]
lea ecx, [eax + ebx]
add ebx, esi
mov esi, dword [edx + edi]
mov eax, esi
sub eax, dword [ebp - 0x58]
mov edi, dword [edx]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 8]
imul eax, edi
cmp edx, ecx
cmovge edx, ecx
sub esi, dword [ebp - 0x40]
add edx, eax
mov eax, esi
mov dword [ebp - 8], edx
mov esi, dword [ebp - 8]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x50]
imul eax, edi
cmp ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
cmovge ebx, dword [ebp - 0x4c]
add edx, 4
mov dword [ebp - 0x50], edx
add eax, ebx
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x4c], eax
jne 0x41ac46
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
jmp 0x41aca7
dec ecx
mov dword [ebp - 0x24], ecx
cmp esi, eax
cmovl eax, esi
add dword [ebp - 0x1c], 2
add dword [ebp - 0x20], 2
add edi, 2
mov dword [ebp + ebx*4 - 0x60], eax
inc ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
cmp ebx, 2
jl 0x41abd2
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x60]
jge 0x41ace5
xor eax, eax
mov ecx, 1
cmp dword [ebp + 8], eax
cmovne eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x41ace7
xor eax, eax
mov ecx, dword [ebp - 0x2c]
lea esi, [eax + ecx*2]
mov eax, dword [ebp - 0x14]
movsx ecx, byte [esi*2 + 0x47d050]
add ecx, ecx
mov edi, dword [eax]
mov eax, edi
sub eax, ecx
movsx ecx, byte [esi*2 + 0x47d051]
add ecx, ecx
cdq
sub edi, ecx
mov ebx, eax
xor ebx, edx
mov eax, edi
sub ebx, edx
cdq
imul ebx, dword [ebp - 0x10]
mov ecx, eax
xor ecx, edx
sub ecx, edx
imul ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
add ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], ecx
jle 0x41ade8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp + 0x1c]
movsx edx, byte [ecx + eax*8 + 0x47d050]
movsx eax, byte [ecx + eax*8 + 0x47d051]
add edx, edx
mov ecx, dword [ebp - 0x54]
add eax, eax
sub dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x44], edx
sub dword [ebp + 0x28], ecx
lea edx, [ecx + 4]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x48], eax
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp - 0x48]
add edi, ecx
cmp ebx, edi
mov dword [ebp - 0x2c], ecx
setge al
add ebx, dword [ebp + 0x10]
mov dword [edx + esi], eax
xor eax, eax
cmp ebx, ecx
setge al
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx]
mov eax, dword [ebp + 0x28]
mov esi, dword [eax + edx]
mov eax, ecx
sub eax, dword [ebp - 0x44]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 8]
imul eax, esi
cmp edx, edi
cmovge edx, edi
sub ecx, dword [ebp - 0x40]
add edx, eax
mov eax, ecx
mov dword [ebp - 8], edx
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x18]
imul ecx, esi
cmp ebx, dword [ebp - 0x2c]
cmovge ebx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x18], edx
add ecx, ebx
sub dword [ebp - 0x24], 1
mov ebx, dword [ebp - 8]
jne 0x41ad77
xor eax, eax
cmp ebx, ecx
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
setge al
lea edx, [ecx - 2]
mov dword [ebx + ecx*4 - 4], eax
test edx, edx
js 0x41ae31
mov edi, dword [ebp - 0x54]
mov esi, ebx
mov ecx, dword [ebp - 0x30]
sub esi, edi
sub ecx, edi
mov dword [ebp - 0x30], ecx
lea eax, [edi + 4]
lea eax, [eax + edx*4]
cmp dword [eax + esi], 1
jne 0x41ae1f
mov ecx, eax
jmp 0x41ae21
add ecx, eax
mov ecx, dword [ecx]
sub eax, 4
mov dword [ebx + edx*4], ecx
sub edx, 1
mov ecx, dword [ebp - 0x30]
jns 0x41ae15
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004575d6
mov esp, ebp
pop ebp
ret