Function at 0x45d570
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub esp, 0x9c
push ebp
mov ebp, dword [esp + 0xa8]
lea eax, [esp + 0x3c]
push eax
push ecx
push ebp
push edx
call fcn.00496340
add esp, 0x10
test eax, eax
je 0x45d5a7
mov eax, 1
pop ebp
add esp, 0x9c
ret
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
imul ecx, ebx
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x60]
sub eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
lea ecx, [ecx + eax*4]
add ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
imul eax, edi
sub edx, esi
lea eax, [eax + esi*4]
mov esi, dword [esp + 0xbc]
add eax, dword [esi + 8]
cmp byte [esp + 0x48], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], ebx
je 0x45daf2
mov ebp, dword [esp + 0x54]
mov esi, edx
sar esi, 3
mov edi, edx
mov dword [esp + 0x18], esi
and edi, 7
mov esi, edi
sub esi, ebp
add esi, dword [esp + 0x4c]
lea esi, [ebx + esi*4]
mov dword [esp + 0x1c], esi
mov esi, edi
sub esi, edx
test edi, edi
mov edx, dword [esp + 0x14]
lea edx, [edx + esi*4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], edi
jne 0x45d86e
test edx, edx
jle 0x45dc19
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
test ebp, ebp
jle 0x45d846
mov edi, edi
mov edi, dword [eax]
mov esi, dword [ecx]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and edx, 0xfefefe
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, edi
or ebx, esi
sub edx, ebx
mov dword [eax], edx
mov edi, dword [eax + 4]
mov esi, dword [ecx + 4]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and edx, 0xfefefe
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, edi
or ebx, esi
sub edx, ebx
mov dword [eax + 4], edx
mov edi, dword [eax + 8]
mov esi, dword [ecx + 8]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and edx, 0xfefefe
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, edi
or ebx, esi
sub edx, ebx
mov dword [eax + 8], edx
mov edi, dword [eax + 0xc]
mov esi, dword [ecx + 0xc]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and edx, 0xfefefe
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, edi
or ebx, esi
sub edx, ebx
mov dword [eax + 0xc], edx
mov edi, dword [eax + 0x10]
mov esi, dword [ecx + 0x10]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and ebx, esi
and edx, 0xfefefe
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, edi
or ebx, esi
sub edx, ebx
mov dword [eax + 0x10], edx
mov edi, dword [eax + 0x14]
mov esi, dword [ecx + 0x14]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and edx, 0xfefefe
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, edi
or ebx, esi
sub edx, ebx
mov dword [eax + 0x14], edx
mov edi, dword [eax + 0x18]
mov esi, dword [ecx + 0x18]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and edx, 0xfefefe
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, edi
or ebx, esi
sub edx, ebx
mov dword [eax + 0x18], edx
mov edi, dword [eax + 0x1c]
mov esi, dword [ecx + 0x1c]
mov edx, edi
not edx
mov ebx, edx
xor edx, esi
and edx, 0xfefefe
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or ebx, esi
or edx, edi
sub edx, ebx
mov dword [eax + 0x1c], edx
add eax, 0x20
add ecx, 0x20
dec ebp
jne 0x45d670
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add eax, edi
add ecx, esi
dec edx
mov dword [esp + 0x14], edx
jne 0x45d666
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x9c
ret
test edx, edx
jle 0x45dc19
mov dword [esp + 0x10], edx
lea ebx, [ebx]
mov ebx, dword [esp + 0x18]
test ebx, ebx
jle 0x45da66
lea esp, [esp]
mov edi, dword [eax]
mov esi, dword [ecx]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and edx, 0xfefefe
and ebp, esi
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or edx, edi
or ebp, esi
sub edx, ebp
mov dword [eax], edx
mov edi, dword [eax + 4]
mov esi, dword [ecx + 4]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and edx, 0xfefefe
and ebp, esi
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or edx, edi
or ebp, esi
sub edx, ebp
mov dword [eax + 4], edx
mov edi, dword [eax + 8]
mov esi, dword [ecx + 8]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and edx, 0xfefefe
and ebp, esi
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or edx, edi
or ebp, esi
sub edx, ebp
mov dword [eax + 8], edx
mov edi, dword [eax + 0xc]
mov esi, dword [ecx + 0xc]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and edx, 0xfefefe
and ebp, esi
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or edx, edi
or ebp, esi
sub edx, ebp
mov dword [eax + 0xc], edx
mov edi, dword [eax + 0x10]
mov esi, dword [ecx + 0x10]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and ebp, esi
and edx, 0xfefefe
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or edx, edi
or ebp, esi
sub edx, ebp
mov dword [eax + 0x10], edx
mov edi, dword [eax + 0x14]
mov esi, dword [ecx + 0x14]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and edx, 0xfefefe
and ebp, esi
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or edx, edi
or ebp, esi
sub edx, ebp
mov dword [eax + 0x14], edx
mov edi, dword [eax + 0x18]
mov esi, dword [ecx + 0x18]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and edx, 0xfefefe
and ebp, esi
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or edx, edi
or ebp, esi
sub edx, ebp
mov dword [eax + 0x18], edx
mov edi, dword [eax + 0x1c]
mov esi, dword [ecx + 0x1c]
mov edx, edi
not edx
mov ebp, edx
xor edx, esi
and edx, 0xfefefe
and ebp, esi
lea edx, [edx + ebp*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebp, edx
or ebp, esi
or edx, edi
sub edx, ebp
mov dword [eax + 0x1c], edx
add eax, 0x20
add ecx, 0x20
dec ebx
jne 0x45d890
mov edi, dword [esp + 0x24]
test edi, edi
jle 0x45daca
mov ebx, ecx
sub ebx, eax
mov esi, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
jmp 0x45da80
mov ebx, dword [esp + 0x28]
mov edi, edi
mov edi, dword [ebx + esi]
mov edx, dword [esi]
not edx
mov ebp, edi
xor ebp, edx
mov ebx, edi
and ebx, edx
and ebp, 0xfefefe
lea edx, [ebp + ebx*2]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or ebx, edi
or edx, dword [esi]
sub edx, ebx
mov dword [esi], edx
mov edx, dword [esp + 0x14]
add esi, 4
dec edx
mov dword [esp + 0x14], edx
jne 0x45da7a
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add eax, ebx
add ecx, esi
dec edx
mov dword [esp + 0x10], edx
jne 0x45d880
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x9c
ret
mov esi, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
shl esi, 2
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x90]
mov edi, ebx
imul edi, dword [esp + 0x98]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x10]
test esi, esi
mov dword [esp + 0x30], edi
jle 0x45dc19
mov dword [esp + 0x20], esi
jmp 0x45db60
mov ebp, dword [esp + 0x1c]
nop
add ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
js 0x45db76
mov esi, dword [esp + 0x24]
add ecx, ebx
sub ebp, esi
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
xor esi, esi
test edx, edx
mov dword [esp + 0x3c], ecx
jle 0x45dbfe
lea esp, [esp]
mov edx, dword [esp + 0x10]
add edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
js 0x45dbab
mov edi, dword [esp + 0x40]
add ecx, 4
sub edx, edi
mov dword [esp + 0x10], edx
mov edi, dword [ecx]
mov edx, dword [eax + esi*4]
not edx
mov ebp, edi
xor ebp, edx
and ebp, 0xfefefe
mov ebx, edi
and ebx, edx
lea edx, [ebp + ebx*2]
mov ebp, dword [eax + esi*4]
shr edx, 8
and edx, 0x10101
add edx, 0x7f7f7f
xor edx, 0x7f7f7f
mov ebx, edx
or edx, ebp
mov ebp, dword [esp + 0x38]
or ebx, edi
sub edx, ebx
mov dword [eax + esi*4], edx
mov edx, dword [esp + 0x44]
add ecx, ebp
inc esi
cmp esi, edx
jl 0x45db90
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
add ecx, edi
add eax, ebp
dec esi
mov dword [esp + 0x20], esi
jne 0x45db5b
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x9c
ret