Function at 0x538dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, edx
shl eax, 4
sub eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
push edi
mov edi, ecx
mov dword [ebp - 0x30], edi
cmp esi, eax
jl 0x53922b
cmp dword [ebp + 0x24], 0
jne 0x53922b
cmp esi, 0x28
jge 0x538e19
mov dword [ebp - 0x20], 0xc
jmp 0x538e35
cmp esi, 0x3c
jge 0x538e27
mov dword [ebp - 0x20], 6
jmp 0x538e35
xor eax, eax
cmp esi, 0x64
setl al
add eax, 3
mov dword [ebp - 0x20], eax
lea esi, [ebx*4]
mov eax, esi
mov dword [ebp - 0x44], esi
call fcn.0056f990
mov eax, dword [edi + 0x20]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x28], esp
movsx ecx, word [eax + ebx*2 - 2]
movsx eax, word [eax + ebx*2]
sub eax, ecx
mov ecx, edi
shl eax, cl
shl eax, 2
call fcn.0056f990
mov eax, esi
mov dword [ebp - 0x14], esp
call fcn.0056f990
mov eax, esi
mov dword [ebp - 0x40], esp
call fcn.0056f990
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x3c], esp
mov dword [eax], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x53913d
xor ecx, ecx
test esi, esi
cmovne ecx, edi
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 0
mov ebx, dword [ecx + 0x20]
mov ecx, edi
movsx esi, word [ebx + eax*2 + 2]
movsx eax, word [ebx + eax*2]
sub esi, eax
shl esi, cl
mov dword [ebp - 0xc], esi
cmp esi, 4
jl 0x538f4b
lea eax, [esi - 3]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 8], eax
lea esp, [esp]
movsx eax, word [ebx + esi*2]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
fld dword [ecx + eax*4]
mov ecx, edi
mov eax, dword [ebp - 8]
fstp dword [eax - 8]
movsx eax, word [ebx + esi*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
fld dword [ecx + eax*4 + 4]
mov ecx, edi
mov eax, dword [ebp - 8]
fstp dword [eax - 4]
movsx eax, word [ebx + esi*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
fld dword [ecx + eax*4 + 8]
mov ecx, edi
mov eax, dword [ebp - 8]
fstp dword [eax]
movsx eax, word [ebx + esi*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
add edx, 4
fld dword [ecx + eax*4 + 0xc]
mov eax, dword [ebp - 8]
fstp dword [eax + 4]
add eax, 0x10
mov dword [ebp - 8], eax
cmp edx, dword [ebp - 0x10]
jl 0x538ee0
mov esi, dword [ebp - 0xc]
cmp edx, esi
jge 0x538f70
nop
mov eax, dword [ebp - 0x1c]
mov ecx, edi
movsx eax, word [ebx + eax*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
fld dword [ecx + eax*4]
mov eax, dword [ebp - 0x14]
fstp dword [eax + edx*4]
inc edx
cmp edx, esi
jl 0x538f50
jmp 0x538f73
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], 2
jne 0x53906a
xor edx, edx
cmp esi, 4
jl 0x539035
lea ecx, [esi - 3]
add eax, 8
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
movsx eax, word [ebx + esi*2]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
add eax, dword [ebp + 0x1c]
movss xmm0, dword [ecx + eax*4]
mov ecx, edi
mov eax, dword [ebp - 8]
addss xmm0, dword [eax - 8]
movss dword [eax - 8], xmm0
movsx eax, word [ebx + esi*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
add eax, dword [ebp + 0x1c]
movss xmm0, dword [ecx + eax*4 + 4]
mov ecx, edi
mov eax, dword [ebp - 8]
addss xmm0, dword [eax - 4]
movss dword [eax - 4], xmm0
movsx eax, word [ebx + esi*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
add eax, dword [ebp + 0x1c]
movss xmm0, dword [ecx + eax*4 + 8]
mov ecx, edi
mov eax, dword [ebp - 8]
addss xmm0, dword [eax]
movss dword [eax], xmm0
movsx eax, word [ebx + esi*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
add eax, dword [ebp + 0x1c]
add edx, 4
movss xmm0, dword [ecx + eax*4 + 0xc]
mov eax, dword [ebp - 8]
addss xmm0, dword [eax + 4]
movss dword [eax + 4], xmm0
add eax, 0x10
mov dword [ebp - 8], eax
cmp edx, dword [ebp - 0x10]
jl 0x538f97
mov esi, dword [ebp - 0xc]
cmp edx, esi
jge 0x53906a
lea esp, [esp]
mov eax, dword [ebp - 0x1c]
mov ecx, edi
movsx eax, word [ebx + eax*2]
shl eax, cl
mov ecx, dword [ebp + 0x18]
add eax, edx
add eax, dword [ebp + 0x1c]
movss xmm0, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x14]
addss xmm0, dword [ecx + edx*4]
movss dword [ecx + edx*4], xmm0
inc edx
cmp edx, esi
jl 0x539040
mov ecx, edi
mov eax, esi
sar eax, cl
mov edx, esi
mov ecx, dword [ebp - 0x14]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
call fcn.00538c80
add esp, 8
xor ebx, ebx
fstp dword [ebp - 8]
test edi, edi
jle 0x539116
mov eax, 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], eax
mov ecx, edi
mov edi, edi
cmp dword [ebp + 0xc], 0
mov edx, esi
je 0x5390b7
lea eax, [ecx - 1]
mov dword [ebp - 0xc], eax
mov eax, 1
shl eax, cl
jmp 0x5390bf
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], ecx
mov ecx, ebx
sar edx, cl
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00544010
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, esi
push dword [ebp - 0x38]
push dword [ebp - 0xc]
call fcn.00538c80
fst dword [ebp - 0xc]
fld dword [ebp - 8]
add esp, 8
fcompi st(1)
fstp st(0)
jbe 0x539102
movss xmm0, dword [ebp - 0xc]
lea eax, [ebx + 1]
movss dword [ebp - 0xc], xmm0
fld dword [ebp - 0xc]
fstp dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x24]
inc ebx
mov eax, dword [ebp - 0x10]
dec ecx
rol eax, 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], eax
cmp ebx, edi
jl 0x5390a0
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
test esi, esi
jne 0x539122
neg ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov dword [edx + eax*4], ecx
inc eax
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
add dword [edx], ecx
cmp eax, dword [ebp - 0x2c]
jl 0x538ea0
mov ebx, dword [ebp - 0x20]
xor eax, eax
xor edx, edx
test esi, esi
cmovne ebx, eax
cmp dword [ebp - 0x2c], 1
jle 0x5391ea
lea eax, [edi*8 + 0x5e8b30]
movsx ecx, byte [eax + esi*4]
movsx eax, byte [eax + esi*4 + 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
sub dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
lea esi, [ecx + 4]
dec eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
mov edi, edx
add ecx, ebx
cmp edx, ecx
cmovge edi, ecx
xor eax, eax
cmp edx, ecx
mov ecx, dword [ebp - 0x38]
setge al
mov dword [ecx + esi], eax
mov ecx, dword [ebp - 0x20]
add ecx, edx
cmp ecx, ebx
mov esi, ecx
cmovge esi, ebx
xor eax, eax
cmp ecx, ebx
mov ecx, dword [ebp - 0x18]
setge al
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + ecx]
mov eax, ecx
sub eax, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x30]
cdq
xor eax, edx
sub eax, edx
add eax, edi
mov dword [ebp - 0x24], eax
mov eax, ecx
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov edx, dword [ebp - 0x24]
add ebx, esi
mov esi, dword [ebp - 0x18]
add esi, 4
sub dword [ebp - 0x10], 1
mov dword [ebp - 0x18], esi
jne 0x539184
mov ecx, dword [ebp - 0x44]
xor eax, eax
cmp edx, ebx
mov edx, dword [ebp + 0x10]
setge al
mov dword [ecx + edx - 4], eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffffe
js 0x539242
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
lea esp, [esp]
cmp dword [edx + eax*4 + 4], 1
jne 0x53921d
mov ecx, dword [esi + eax*4 + 4]
jmp 0x539221
mov ecx, dword [edi + eax*4 + 4]
mov dword [edx + eax*4], ecx
sub eax, 1
jns 0x539210
jmp 0x539242
mov eax, dword [ebp + 0x28]
mov dword [eax], 0
test ebx, ebx
jle 0x539242
mov edi, dword [ebp + 0x10]
mov ecx, ebx
mov eax, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
xor eax, eax
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret