Function at 0x473f30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x60]
mov ebp, dword [eax]
or ecx, 0xffffffff
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x28], ebp
cmp ebp, ecx
jne 0x473f65
cmp dword [eax + 8], ecx
jne 0x473f65
cmp dword [eax + 0xc], ecx
jne 0x473f65
cmp dword [eax + 4], ecx
je 0x4747d9
cmp dword [edi + 0x10], 0
je 0x4747d9
lea eax, [esp + 0x68]
mov edx, edi
call fcn.004737c0
cmp eax, 3
je 0x4747d9
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x68]
call fcn.0043d270
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x68], eax
jge 0x4747d9
mov ecx, dword [esp + 0x6c]
cmp ecx, dword [esp + 0x74]
jge 0x4747d9
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x64]
mov edx, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], eax
sub eax, ebp
mov dword [esp + 0x30], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
dec edx
sar eax, 1
shr edx, 1
mov dword [esp + 0x64], eax
cmp edx, eax
ja 0x473fdf
mov dword [esp + 0x64], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], eax
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
dec edx
sar eax, 1
shr edx, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
cmp edx, eax
ja 0x474007
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x64]
lea eax, [edx + ebp]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x60], eax
lea eax, [ecx + edx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
sub eax, edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
cmp ebp, eax
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ecx
mov dword [esp + 0x48], ebp
jge 0x474047
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x474057
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x50], ecx
jg 0x47406b
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x54], ecx
jg 0x47407f
mov dword [esp + 0x54], eax
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.00473d40
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x68]
cmp eax, ecx
mov dword [esp + 0x48], eax
jge 0x4740cb
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x4740df
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x50], eax
jg 0x4740f3
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x54], eax
jg 0x474107
mov dword [esp + 0x54], ecx
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.00473d40
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], ebp
mov dword [esp + 0x34], eax
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x68]
cmp ebp, eax
mov dword [esp + 0x48], ebp
jge 0x47414b
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x47415f
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov dword [esp + 0x50], eax
jg 0x474173
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov dword [esp + 0x54], eax
jg 0x474187
mov dword [esp + 0x54], ecx
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.00473d40
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x60]
cmp eax, ecx
mov dword [ebx + 0x18], edx
mov dword [esp + 0x48], eax
jge 0x4741cb
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x4741df
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x50], eax
jg 0x4741f3
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov dword [esp + 0x54], eax
jg 0x474207
mov dword [esp + 0x54], ecx
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.00473d40
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x14]
shr eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xc]
shr eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
cmp ecx, eax
mov dword [esp + 0x48], ecx
jge 0x474251
mov ecx, eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x24]
cmp eax, edx
mov dword [esp + 0x4c], edx
jl 0x474265
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x474279
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
cmp edx, eax
jle 0x474287
mov edx, eax
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
jge 0x47437e
mov eax, dword [esp + 0x4c]
cmp eax, edx
jge 0x47437e
mov dword [esp + 0x34], eax
sub eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
jmp 0x4742b4
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x24]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov ebp, eax
shr ebp, 0x18
imul ebp, esi
shr ebp, 8
mov edx, 0xff
sub edx, ebp
mov ebp, eax
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
imul eax, esi
imul ebp, esi
and eax, 0xff00ff00
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
jmp 0x474305
mov ebp, dword [esp + 0x3c]
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [edi + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x44], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, ebp
shr ecx, 8
mov ebp, ecx
and ebp, 0xffff00ff
and ecx, 0xff00ff
imul ebp, edx
imul ecx, edx
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
jl 0x474301
mov eax, dword [esp + 0x34]
inc dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x4742b0
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
cmp ecx, eax
mov dword [esp + 0x48], ecx
jge 0x474394
mov ecx, eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
cmp eax, edx
mov dword [esp + 0x4c], edx
jl 0x4743a8
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x4743bc
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x74]
cmp edx, eax
jle 0x4743ca
mov edx, eax
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
jge 0x4744ce
mov eax, dword [esp + 0x4c]
cmp eax, edx
jge 0x4744ce
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
sub eax, dword [esp + 0x64]
lea eax, [eax + edx + 1]
mov dword [esp + 0x24], eax
jmp 0x474404
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x24]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov ebp, eax
shr ebp, 0x18
imul ebp, esi
shr ebp, 8
mov edx, 0xff
sub edx, ebp
mov ebp, eax
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
imul eax, esi
imul ebp, esi
and eax, 0xff00ff00
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], eax
jmp 0x474455
mov ebp, dword [esp + 0x44]
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [edi + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, ebp
shr ecx, 8
mov ebp, ecx
and ebp, 0xffff00ff
and ecx, 0xff00ff
imul ebp, edx
imul ecx, edx
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
jl 0x474451
mov eax, dword [esp + 0x34]
inc dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x474400
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
cmp ebp, eax
mov dword [esp + 0x48], ebp
jge 0x4744de
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
cmp edx, eax
jge 0x4744ec
mov edx, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x70]
jg 0x4744fc
mov eax, ecx
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x64], ecx
mov dword [esp + 0x50], eax
jg 0x47450e
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x48], eax
mov dword [esp + 0x54], ecx
jge 0x4745fc
cmp edx, ecx
jge 0x4745fc
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jmp 0x474544
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jmp 0x474544
mov ebp, dword [esp + 0x28]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x10]
sub edx, ebp
add edx, eax
mov ecx, dword [ecx + edx*4]
mov edx, dword [edi + 4]
imul edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [edi + 0x10]
lea eax, [eax + edx*4]
mov edx, ecx
shr edx, 0x18
imul edx, esi
mov dword [esp + 0x44], eax
mov eax, dword [eax]
shr edx, 8
mov ebp, ecx
mov edi, 0xff
sub edi, edx
mov edx, eax
and eax, 0xff00ff
imul eax, edi
and ebp, 0xff00ff
imul ebp, esi
add eax, ebp
shr edx, 8
mov ebp, edx
shr ecx, 8
and ebp, 0xffff00ff
imul ebp, edi
and ecx, 0xff00ff
and edx, 0xff00ff
imul ecx, esi
imul edx, edi
mov edi, dword [esp + 0x5c]
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
and ecx, 0xff00ff00
add eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
jl 0x474540
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x474532
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
mov edx, eax
mov dword [esp + 0x48], edx
jge 0x474614
mov edx, ecx
mov dword [esp + 0x48], edx
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
cmp ebp, eax
jge 0x474622
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jg 0x474630
mov ecx, eax
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x64], eax
mov dword [esp + 0x50], ecx
jg 0x474642
mov eax, dword [esp + 0x64]
cmp edx, ecx
mov dword [esp + 0x54], eax
jge 0x47472f
cmp ebp, eax
jge 0x47472f
mov dword [esp + 0x34], ebp
jmp 0x474664
mov edx, dword [esp + 0x48]
mov ecx, edx
mov dword [esp + 0x38], ecx
lea ebx, [ebx]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x60]
mov eax, dword [ebx + 0x10]
add edx, ecx
add edx, dword [esp + 0x30]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [edi + 4]
imul edx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [edi + 0x10]
lea ecx, [ecx + edx*4]
mov edx, eax
shr edx, 0x18
imul edx, esi
shr edx, 8
mov dword [esp + 0x44], ecx
mov ebp, eax
and ebp, 0xff00ff
mov edi, 0xff
imul ebp, esi
sub edi, edx
mov edx, dword [ecx]
mov ecx, edx
and edx, 0xff00ff
imul edx, edi
add ebp, edx
shr ecx, 8
mov edx, ecx
and edx, 0xffff00ff
shr eax, 8
imul edx, edi
and ecx, 0xff00ff
imul ecx, edi
mov edi, dword [esp + 0x5c]
and eax, 0xff00ff
imul eax, esi
shr ebp, 8
xor ebp, edx
and ebp, 0xff00ff
xor ebp, ecx
mov ecx, dword [esp + 0x38]
and eax, 0xff00ff00
add ebp, eax
mov eax, dword [esp + 0x44]
inc ecx
cmp ecx, dword [esp + 0x50]
mov dword [eax], ebp
mov dword [esp + 0x38], ecx
jl 0x474670
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x474660
mov ecx, dword [ebx + 4]
imul ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + ecx*4]
mov ecx, eax
mov edx, eax
and ecx, 0xff00ff
shr edx, 8
imul ecx, esi
and edx, 0xffff00ff
shr eax, 8
imul edx, esi
and eax, 0xff00ff
imul eax, esi
shr ecx, 8
xor ecx, edx
mov edx, dword [esp + 0x68]
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, edx
mov dword [esp + 0x48], eax
jge 0x474788
mov eax, edx
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x6c]
cmp esi, ebp
jl 0x474796
mov ebp, esi
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x70]
cmp esi, edx
mov dword [esp + 0x4c], ebp
jle 0x4747a8
mov esi, edx
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x74]
cmp edx, ebx
mov dword [esp + 0x50], esi
jle 0x4747ba
mov edx, ebx
cmp eax, esi
mov dword [esp + 0x54], edx
jge 0x4747d9
cmp ebp, edx
jge 0x4747d9
cmp ecx, 0x1000000
jb 0x4747d9
push ecx
push edi
lea edi, [esp + 0x50]
call fcn.00474950
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0x1c